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

Bar chart: how to the series click event? #702

Open
lujuliang opened this issue Nov 19, 2018 · 1 comment
Open

Bar chart: how to the series click event? #702

lujuliang opened this issue Nov 19, 2018 · 1 comment

Comments

@lujuliang
Copy link

Please use this plunker http://next.plnkr.co/edit/ivdCyq5YFOk4yT1l4tK3?preview
Now the happy bar chart will hidden when I click the 'happy' button, and the hover displayed "Neutral" and "Unhappy" charts.
I just want to keep all series type charts when I click the 'happy' ,the happy chart keep display and only hover display "Neutral" and "Unhappy" charts.
Is there any way to implements this ? thank you.

@adripanico
Copy link

Without modifying the library itself, you need to do the follow:

  1. Hide the chart legend and the chart tooltip
  2. Create your own chart legend
  3. Bind to the mouse-hover event of the chart and create your own tooltip

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

No branches or pull requests

2 participants