Merge pull request #15897 from Alchez/dev-chart-options
fix: append chart options before render
This commit is contained in:
commit
80243d5e85
1 changed files with 2 additions and 2 deletions
|
|
@ -549,14 +549,14 @@ frappe.ui.form.Dashboard = class FormDashboard {
|
|||
render_graph(args) {
|
||||
this.chart_area.show();
|
||||
this.chart_area.body.empty();
|
||||
$.extend({
|
||||
$.extend(args, {
|
||||
type: 'line',
|
||||
colors: ['green'],
|
||||
truncateLegends: 1,
|
||||
axisOptions: {
|
||||
shortenYAxisNumbers: 1
|
||||
}
|
||||
}, args);
|
||||
});
|
||||
this.show();
|
||||
|
||||
this.chart = new frappe.Chart('.form-graph', args);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue