Hi Lakshitha,
Thanks for using Syncfusion products,
We have analyzed your query and found that the data bind are working for Axis, Title, Tooltip, theme, ChartArea, Size, legend, zooming, selection features in chart. But for changes in series property after the component is initialized, we have to refresh the chart. For example, if you want change the series collection data source in the button click, you can bind the data source to chart series and refresh the charts.
Please find the code snippet below to achieve this requirement,
|
@ViewChild('chart')
public chart: ChartComponent;
public PlotChart(): void {
this.chart.series[0].dataSource = ChartData.prototype.getScatterData().series1;
this.chart.series[1].dataSource = ChartData.prototype.getScatterData().series2;
this.chart.refresh()
}
} |
Screenshot:
Sample for your reference can be find from below link,
http://www.syncfusion.com/downloads/support/forum/137595/ze/sample1986882101
Kindly revert us, if you have any concerns.
Thanks,
Baby