Pie Chart Custom Legend
I am using highcharts to build a Pie chart, I am hiding the default legend that comes with highcharts and making my own. I am able to build one for line graphs, but when I do it fo
Solution 1:
A similar mechanism exists for pie. It operates on each individual Point
. You just have use setVisible(boolean)
on the point you want to show/hide, for example like this:
chart.series[0].points[0].setVisible(false);
See this JSFiddle demonstration for tips on how to show/hide using a clickable div
.
Post a Comment for "Pie Chart Custom Legend"