Hi,
i am trying to create a chart in version 10 but its not working, same code working in v9,v11 etc but not working in v10,
i tried many syntax but no luck, below is the code i tried
const graph = new frappeChart.Chart({
parent: "#chart",
data: chart_data,
type: 'bar'
});
setTimeout(function () {graph.refresh()}, 1);
error :
TypeError: Cannot read property 'type' of undefined
also below is the code of production_analytics.js
this.chart = new frappeChart.Chart(".chart", {
data: chart_data,
type: 'line'
});