I use amcharts for chart
My code is :
$(document).on('click', '.click', function(){
var chartData = [
{
"date": "12:08",
"distance": 500,
"duration": 350
},
{
"date": "12:09",
"distance": 400,
"duration": 3100
},
];
var chart;
AmCharts.ready(function () {
...
// WRITE
chart.write("chartdiv");
});
});
But this code not work !
How fixed it ?
I want after click on .click class , load charts