Skip to content

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

Closed
nicolaskruchten opened this issue Jan 9, 2020 · 5 comments · Fixed by #4620
Closed

unified hoverlabels #4477

nicolaskruchten opened this issue Jan 9, 2020 · 5 comments · Fixed by #4620
Assignees
Labels
feature something new
Milestone

Comments

@nicolaskruchten
Copy link
Contributor

nicolaskruchten commented Jan 9, 2020

We need a new hovermode like xunified/yunified that would produce a single hoverlabel that would contain info about all the points at a given x/y ... similar to hovermode=x but with a single hover. Like this:

image

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)

@nicolaskruchten nicolaskruchten added this to the v1.53.0 milestone Jan 9, 2020
@nicolaskruchten
Copy link
Contributor Author

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.

@nicolaskruchten
Copy link
Contributor Author

C3 also does this with vertical follow-me only https://c3js.org/samples/chart_bar.html

@etpinard etpinard added the feature something new label Jan 27, 2020
@etpinard etpinard self-assigned this Jan 30, 2020
@etpinard etpinard assigned antoinerg and unassigned etpinard Feb 20, 2020
@antoinerg
Copy link
Contributor

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?

cc @nicolaskruchten

@antoinerg
Copy link
Contributor

Also, I can't remember what decision was made about the positioning of the unified hover label. Where should it be positioned?

cc @nicolaskruchten

@nicolaskruchten
Copy link
Contributor Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants