This is a migrated thread and some comments may be shown as answers.

How to highlight series or markers via JavaScript

1 Answer 24 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Dirk
Top achievements
Rank 1
Dirk asked on 21 Nov 2013, 10:01 PM
Hello,

is there a simple way to highlight a series and/or it's markers like hovering over legend item from javascript?

What I'd like to do is to set up a custom legend (tabular) with almost the same functionality (showing hiding series/highlighting series) as the standard legend.


Thanks in advance
Dirk

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 25 Nov 2013, 03:42 PM
Hi Dirk,

Up to your requirements: 
  • showing/hiding series
In order to achieve this you could change series.visibility:
//get reference to the chart widget
var chart = $("#chart").data('kendoChart');
//set visibility of the second series to false
chart.options.series[1].visible= false
//refresh the chart
chart.refresh();
  • highlighting series
I am afraid this requirement is not supported and there is no a suitable workaround I can suggest at this point.

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Dirk
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or