Преглед изворни кода
fix(minor): Use colors passed to `render_graph` on form dashboards (#18132) (#18134)
(cherry picked from commit 529e8ebde1
)
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
version-14
mergify[bot]
пре 2 година
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са
1 додато и
1 уклоњено
-
frappe/public/js/frappe/form/dashboard.js
|
|
@@ -568,7 +568,7 @@ frappe.ui.form.Dashboard = class FormDashboard { |
|
|
|
this.chart_area.body.empty(); |
|
|
|
$.extend(args, { |
|
|
|
type: "line", |
|
|
|
colors: ["green"], |
|
|
|
colors: args.colors || ["green"], |
|
|
|
truncateLegends: 1, |
|
|
|
axisOptions: { |
|
|
|
shortenYAxisNumbers: 1, |
|
|
|