angular-chart.js
angular-chart.js copied to clipboard
Bar chart: how to the series click event?
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.
Without modifying the library itself, you need to do the follow:
- Hide the chart legend and the chart tooltip
- Create your own chart legend
- Bind to the mouse-hover event of the chart and create your own tooltip