Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143332 | Mar 14,2019 10:32 AM UTC | Mar 18,2019 07:27 AM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: Charts |
<ejs-accumulationchart id="pieChart">
<e-accumulation-series-collection>
Initialized the empty series
<e-accumulation-series></e-accumulation-series>
</e-accumulation-series-collection>
</ejs-accumulationchart>
function addSeries(args) {
var chart = document.getElementById('pieChart').ej2_instances[0];
var seriesData = { type: 'Pie', dataSource: [{ x: 'X1', y: 14 },
//...
], xName: 'x', yName: 'y'
};
Assign the properties to chart from your data source and refresh the chart
chart.series[0].dataSource = seriesData.dataSource;
//...
chart.refresh();
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.