New to Kendo UI for jQuery? Start a free 30-day trial

FindSeries

methods

Returns a series determined from the passed function. The function is called with the options of each series until it returns true.

Parameters:callbackFunction

The function that will be called for each series.

Returns:kendo.dataviz.ChartSeries

The chart series.

<div id="chart"></div>
<script>
  var chart = $("#chart").kendoChart({
    series: [{ data: [1, 2] }, { data: [3, 4] }],
  }).getKendoChart();

  var series = chart.findSeries(function(series) {
    return $.inArray(3, series.data) >= 0;
  });
</script>
Not finding the help you need?
Contact Support