Skip to content
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

What replaces y-axis with v 2.4 mode upgrades? #3905

Closed
arxpoetica opened this issue Feb 14, 2017 · 1 comment · Fixed by #4458
Closed

What replaces y-axis with v 2.4 mode upgrades? #3905

arxpoetica opened this issue Feb 14, 2017 · 1 comment · Fixed by #4458

Comments

@arxpoetica
Copy link

With the mode and intersect changes in v. 2.4.0, it's not clear what to replace y-axis with. (See #3400 for history on this.)

Steps to Reproduce

See: https://jsbin.com/bevabi/4/edit?html,css,js,output

  1. Hover above the bars on the (vertical) bar chart.

  2. Note that with mode: 'index' and intersect: false set, the whole region highlights both sets of data.
    image

  3. Now hover to the right of the horizontal bars not on the bar themselves. Note that they do not get updated, unlike the vertical bar chart.
    image

Context

In the past, I just used x-axis and y-axis. With index replacing x-axis, what replaces y-axis now?

Environment

@etimberg
Copy link
Member

We should provide a similar mode but that works in the Y direction, perhaps 'index-y'. I tried the y mode but it didn't have good results.

As a work around, you could define your own mode by adding a handler to the Chart.Interaction.modes map. https://github.com/chartjs/Chart.js/blob/master/src/core/core.interaction.js

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

Successfully merging a pull request may close this issue.

2 participants