[charts] update charts API

This commit is contained in:
Prateeksha Singh
2018-03-12 09:54:56 +05:30
parent fd75d554d2
commit 9362cf37e0
7 changed files with 13 additions and 15 deletions

View File

@@ -64,8 +64,7 @@ erpnext.ProductionAnalytics = frappe.views.GridReportWithPlot.extend({
var chart_data = this.get_chart_data ? this.get_chart_data() : null;
this.chart = new Chart({
parent: ".chart",
this.chart = new Chart(".chart", {
data: chart_data,
type: 'line'
});