jQuery UI Widgets › Forums › Chart › Click Legend
Tagged: bar, chart, click, hide, hideSerie, jqxChart, legend, line, series
This topic contains 5 replies, has 3 voices, and was last updated by Dimitar 9 years, 1 month ago.
when i “clicked” the legend, i can show or hide the bar or line and so on.
Is it possible, when i load the chart, some lines hide default?
This can be achieved by calling the method hideSerie for the bars or lines you wish to hide.
O tried this but could not get it to work. How would you hide the “Swimming” series in the following chart:
Tried several options in cluding; $(‘#jqxChart’).jqxChart(‘hideSerie’, 1);
It should actually be:
$('#jqxChart').jqxChart('hideSerie', 0, 1);
The first parameter is the series group index (0) and the second one – the index of the series itself (1).
Thanks Dimitar, that worked. Is there a way to hide more then one series?
You would have to call the method multiple times to hide more series.
You must be logged in to reply to this topic.