Unplanned
Last Updated: 24 Nov 2026 17:14 by Anthony
Anthony
Created on: 24 Nov 2026 17:14
Category: Chart
Type: Bug Report
1
Two DataSource-bound charts calling redraw() share series data.

Bug report

If a page has two or more Charts bound to a DataSource, calling redraw() on one chart writes its data into an array that every chart shares. After that, findSeriesByIndex(0).data() on a different chart returns the data of whichever chart was redrawn last. That chart's next redraw() also draws with the wrong data.

Reproduction of the problem

  1. Go to this Progress Kendo UI Dojo, and open the console
  2. Click Chart 1. The console logs sue (correct).
  3. Click Chart 2. The console logs fred (correct).
  4. Click Chart 1 again. The console logs fred (wrong, should be sue).

Current behavior

  • After Chart 2 calls redraw(), Chart 1's options.series[0].data holds Chart 2's records. The next chart1.redraw() draws Chart 1 with Chart 2's data: 1 point instead of 2. The category labels still show sue/ted, because the axis is bound separately.
  • Each chart's DataSource is unaffected. chart1.dataSource.view() still returns sue, ted.

Expected/desired behavior

Each Chart instance keeps its own series data. redraw() on one chart should never change the options or data of another chart. In the demo, clicking Chart 1, Chart 2, Chart 1 should log sue, fred, sue, and Chart 1 should keep 2 points after any number of redraws.

TicketID:

1720719

Workaround:

// give each chart its own default array
$(selector).kendoChart({ seriesDefaults: { data: [] }, /* ... */ });

Example of Workaround: Kendo UI Dojo

Environment

  • Kendo/Telerik version: 2026.4.1111
  • jQuery version: All Supported Versions
  • Browser: all
0 comments