-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
unified hoverlabels #4477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In terms of what goes into the hoverlabel, i'm partial to the idea of having it be essentially the legend, with another column of values to the right. |
C3 also does this with vertical follow-me only https://c3js.org/samples/chart_bar.html |
In echartjs, the order of the items is always the same (ie. it is ordered by trace index). In C3.js, it is ordered by the value of the hovered data point. I think we want the latter as a default. However, do you see a use case for supporting items ordered by trace index? |
Also, I can't remember what decision was made about the positioning of the unified hover label. Where should it be positioned? |
Ordering: let's make that a parameter, default to legend order. Positioning: median of the range in the Y dimension, and same X position as our current ones (in "unified x" mode) |
We need a new
hovermode
likexunified
/yunified
that would produce a single hoverlabel that would contain info about all the points at a givenx
/y
... similar tohovermode=x
but with a single hover. Like this:Other libraries which implement this include eCharts (ignore the "follow-me" aspect here, it's not in-scope for this issue and it's discussed here #3899 ) https://www.echartsjs.com/examples/en/editor.html?c=line-stack and https://www.fusioncharts.com/ (scroll down a bit)
The text was updated successfully, but these errors were encountered: