This topic contains 5 replies, has 3 voices, and was last updated by Dimitar 11 years ago.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › Chart › Click Legend
This topic contains 5 replies, has 3 voices, and was last updated by Dimitar 11 years ago.
Hi,
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?
Hello simcon94,
This can be achieved by calling the method hideSerie for the bars or lines you wish to hide.
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/
O tried this but could not get it to work. How would you hide the “Swimming” series in the following chart:
http://jsfiddle.net/jqwidgets/dScZf/
Tried several options in cluding; $(‘#jqxChart’).jqxChart(‘hideSerie’, 1);
Hi rayh34,
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).
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/
Thanks Dimitar, that worked. Is there a way to hide more then one series?
Hi rayh34,
You would have to call the method multiple times to hide more series.
Best Regards,
Dimitar
jQWidgets team
http://www.jqwidgets.com/
You must be logged in to reply to this topic.