angular-chart.js icon indicating copy to clipboard operation
angular-chart.js copied to clipboard

Bar chart: how to the series click event?

Open lujuliang opened this issue 6 years ago • 1 comments

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.

lujuliang avatar Nov 19 '18 10:11 lujuliang

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

adripanico avatar Jan 09 '19 13:01 adripanico