Parcourir la source

fix: allow to override dashboard chart properties type/color

version-14
Anupam il y a 4 ans
Parent
révision
cdd3bb3761
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      frappe/public/js/frappe/form/dashboard.js

+ 2
- 2
frappe/public/js/frappe/form/dashboard.js Voir le fichier

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

this.chart = new frappe.Chart('.form-graph', args);


Chargement…
Annuler
Enregistrer