|
@@ -535,14 +535,14 @@ frappe.ui.form.Dashboard = class FormDashboard { |
|
|
render_graph(args) { |
|
|
render_graph(args) { |
|
|
this.chart_area.show(); |
|
|
this.chart_area.show(); |
|
|
this.chart_area.body.empty(); |
|
|
this.chart_area.body.empty(); |
|
|
$.extend(args, { |
|
|
|
|
|
|
|
|
$.extend({ |
|
|
type: 'line', |
|
|
type: 'line', |
|
|
colors: ['green'], |
|
|
colors: ['green'], |
|
|
truncateLegends: 1, |
|
|
truncateLegends: 1, |
|
|
axisOptions: { |
|
|
axisOptions: { |
|
|
shortenYAxisNumbers: 1 |
|
|
shortenYAxisNumbers: 1 |
|
|
} |
|
|
} |
|
|
}); |
|
|
|
|
|
|
|
|
}, args); |
|
|
this.show(); |
|
|
this.show(); |
|
|
|
|
|
|
|
|
this.chart = new frappe.Chart('.form-graph', args); |
|
|
this.chart = new frappe.Chart('.form-graph', args); |
|
|