This question is locked. New answers and comments are not allowed.
Hello,
I'm having trouble changing the series type of just one pane in a paneChart. I have the documentation for changing the series type and can achieve that fine, but I'm having trouble accessing just one pane.
I'm having trouble changing the series type of just one pane in a paneChart. I have the documentation for changing the series type and can achieve that fine, but I'm having trouble accessing just one pane.
<div id="chart1" data-win-control="Telerik.UI.RadChart" data-win-options="{ dataSource: { data: [ {value: 10}, {value: 20}, {value: 30}, {value: 40}, {value: 50} ]}, series: [ { field: 'value' }] }"></div>var radioButtonGroup = document.getElementById("radioButtonGroup");var inputs = radioButtonGroup.getElementsByTagName("input");var radioButtons = Array.prototype.slice.call(inputs);//attach the click event on each of the radio buttonsradioButtons.forEach(function (item) { item.addEventListener("click", function () { var chart = document.getElementById("chart1").winControl; //clear the chart series chart.series = []; var newSeries; //based on the selected button, instantiate new series switch (this.value) { case "bar": newSeries = new Telerik.UI.Chart.BarSeries(); break; case "column": newSeries = new Telerik.UI.Chart.ColumnSeries(); break; default: newSeries = null; } if (newSeries) { //assign a field to the series and add them to the chart newSeries.field = "value"; chart.series.push(newSeries); chart.refresh(); } });});