Selaa lähdekoodia

fix: allow to override dashboard chart properties type/color

version-14
Anupam 4 vuotta sitten
vanhempi
commit
cdd3bb3761
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      frappe/public/js/frappe/form/dashboard.js

+ 2
- 2
frappe/public/js/frappe/form/dashboard.js Näytä tiedosto

@@ -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);


Ladataan…
Peruuta
Tallenna