Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143010 | Feb 28,2019 12:52 PM UTC | Mar 1,2019 10:14 AM UTC | ASP.NET Core - EJ 2 | 1 |
![]() |
Tags: Charts |
[ChartFeatures.cshtml]
<button id="add" onclick="addChart()">Add Chart</button>
function addChart() {
//Create div element dynamically and append to DOM
var chartEle = document.createElement('div');
chartEle.id = 'chartContainer' + window.count;
document.getElementsByTagName('body')[0].appendChild(chartEle);
//Configured chart here
var chart = new ej.charts.Chart({
//Specify the required paramaters
});
//Append chart to dynamically created div element
chart.appendTo('#' + chartEle.id);
}
|
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.