Completed
Last Updated: 24 Jan 2020 16:21 by ADMIN
James
Created on: 13 Dec 2013 15:29
Category: Chart
Type: Feature Request
4
Public method for showing/hiding chart series
User clicking on legend currently hides/shows that series on the chart. Would be great to have a public method that does the same so we can show/hide a series programmatically. (Like the private _legendItemClick method currently does.)
2 comments
ADMIN
Alex Hajigeorgieva
Posted on: 24 Jan 2020 16:21

Hello,

The method is now available as part of the public API:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/chart/chart_series/methods/togglevisibility

Regards,
Alex Hajigeorgieva
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Frédéric
Posted on: 31 Jul 2015 15:13
series.visible = false (greyed-out legend item)

//Hide first series
$("#chart").data("kendoChart").options.series[0].visible = false;
$("#chart").data("kendoChart").redraw();