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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
show grid lines and ticks only for bar charts
Behrokh Satarnejad818e4d8bd651
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.tsindex f75da7085aa..280cdbf36bf 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@@ -109,18 +109,18 @@ export class WorkPackageEmbeddedGraphComponent {scales: {y: {ticks: {- color: bodyFontColor,+ color: this.isBarChart() ? bodyFontColor : 'transparent',},grid: {- color: gridLineColor,+ color: this.isBarChart() ? gridLineColor : 'transparent',},},x: {ticks: {- color: bodyFontColor,+ color: this.isBarChart() ? bodyFontColor : 'transparent',},grid: {- color: gridLineColor,+ color: this.isBarChart() ? gridLineColor : 'transparent',},},},@@ -187,4 +187,8 @@ export class WorkPackageEmbeddedGraphComponent {this.chartHeight = '100%';}}++ private isBarChart() {+ return this.chartType === 'bar' || this.chartType === 'horizontalBar' || this.chartType === 'line';+ }}