Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix gridline color for graphs

Behrokh Satarnejad567cc9e08d46
diff --git a/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.ts b/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.ts
index 877d6675885..f75da7085aa 100644
--- a/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.ts
@@ -99,6 +99,7 @@ export class WorkPackageEmbeddedGraphComponent {
protected setChartOptions() {
const bodyFontColor= getComputedStyle(document.body).getPropertyValue('--body-font-color');
+ const gridLineColor= getComputedStyle(document.body).getPropertyValue('--borderColor-default');
const defaults:ChartOptions = {
color: bodyFontColor,
@@ -110,11 +111,17 @@ export class WorkPackageEmbeddedGraphComponent {
ticks: {
color: bodyFontColor,
},
+ grid: {
+ color: gridLineColor,
+ },
},
x: {
ticks: {
color: bodyFontColor,
},
+ grid: {
+ color: gridLineColor,
+ },
},
},
plugins: {