瀏覽代碼
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
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 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, |
|
|
|