echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Emphasis everywhere on live data

Open GitHubWebStudioMakerPerfect opened this issue 1 year ago β€’ 5 comments

Version

Last On Online Editor

Link to Minimal Reproduction

Link to online Apache ECharts editor

Steps to Reproduce & Current Behavior

Sorry, I don't mean to be stressful. This is the second bug post in 3 days. But, if you move the mouse slowly on the graph you will notice that already with 300 points (even with 100) you get emphasis that is not eliminated.

Is there a way to solve the problem (other than eliminating the points of course)?

I also removed the color gradients to make it thinner, but nothing.

Expected Behavior

The emphasis should go away if you are on top of another point

Environment

- OS: macOS, Windows, Linux (Each one)
- Browser: Mozilla Firefox, Google Chrome, Safari (Each one)
- Framework: NONE

Any additional comments?

When it's zoomed in it's easier than it could possibly happen

** you get emphasis that is not eliminated**. Is there a way to solve the problem (other than eliminating the points of course)?

Yes, there is a way to eliminate previous emphasis, but it will work only for live data - Demo

helgasoft avatar Dec 15 '24 19:12 helgasoft

hey @GitHubWebStudioMakerPerfect are you talking about the multiple yellow point Screenshot 2024-12-16 at 03 46 20

Adarsh-Dhar avatar Dec 15 '24 22:12 Adarsh-Dhar

@Adarsh-Dhar

hey @GitHubWebStudioMakerPerfect are you talking about the multiple yellow point

Yes. Perceptive. Yellow points are everywhere. You liked this graph so much that you took a screenshot of it in your browser! (Nice plugins. Very nice that fox.) πŸ˜‰πŸ˜πŸ˜œ

@helgasoft

Yes, there is a way to eliminate previous emphasis, but it will work only for live data - Demo

Bad. Should work even on static data, otherwise it's a mess.

With the code you wrote when the javascript loop that inserts the dots stops I no longer see the emphasis. All disappears into the most extreme nothingness of this supreme universe.

So? Is this a bug?

Let first say/confirm that emphasis works on a static line chart tooltip - example in #20584. Here, on a dynamic line, the tooltip emphasis works only after moving the mouse. When mouse is motionless and points are added, the X-axis changes, and we see the tooltip.trigger:'axis' doing its job by updating tooltip content. But line point emphasis is not activated for the new tooltip. So I would venture to call it a bug. It could be fixed in two ways:

  • Add an explanation in API: "Tooltip changes series emphasis on mouseover only."
  • Or update code to activate series' emphasis when tooltip content changes.

OTOH, I do not understand how this dynamic tooltip is useful, especially when data is updated every half-second...

helgasoft avatar Dec 16 '24 22:12 helgasoft

@helgasoft

With all due respect, but I didn't understand anything about the explanation! Maybe because I'm not that into the topic.

Or update code to activate series' emphasis when tooltip content changes.

MMMMM... at this point I would like this bug to be fixed in the next version. It might seem like a silly thing to you, but the same error is also obtained for graphs updated with 2, 3 seconds (not just 500ms) and everyone could move the mouse on the graph.

Many graphs are updated with a reduced interval and people do not use markers because on many values ​​they graphically create a mess at a visible level, so emphasis is preferable in these cases (I'm not talking about the tooltip. I'm talking about the point itself). I say this, and until 4 days ago I didn't know about the existence of emphasis.

Add an explanation in API: "Tooltip changes series emphasis on mouseover only."

Sorry, but this is not a fixing.

I'm waiting for the new version and I believe that for a graph (a line that is basically the most used by everyone) nothing is more important than the quality of the display for live data & static data.