findSeries

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

Parameters

callback Function

The function that will be called for each series.

Returns

kendo.dataviz.ChartSeries The chart series.

Example - find series that contain 3 in the data

<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>
In this article