소스 검색
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 키 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, |
|
|
|