diff --git a/client/src/app/gauges/controls/html-graph/graph-bar/graph-bar.component.ts b/client/src/app/gauges/controls/html-graph/graph-bar/graph-bar.component.ts index 0b72198fc..4aa7c5589 100644 --- a/client/src/app/gauges/controls/html-graph/graph-bar/graph-bar.component.ts +++ b/client/src/app/gauges/controls/html-graph/graph-bar/graph-bar.component.ts @@ -298,6 +298,7 @@ export class GraphBarComponent extends GraphBaseComponent implements OnInit, Aft offline: false, decimals: 0, responsive: true, + backgroundColor: null, // to set in property maintainAspectRatio: false, indexAxis: 'x', gridLinesShow: true, // to set in property @@ -313,6 +314,10 @@ export class GraphBarComponent extends GraphBaseComponent implements OnInit, Aft } // suggestedMin: 0 }, + grid: { + color: 'rgba(0, 0, 0, 0.2)', + display: true + } }, x: { display: true, @@ -322,6 +327,10 @@ export class GraphBarComponent extends GraphBaseComponent implements OnInit, Aft size: 12 } }, + grid: { + color: 'rgba(0, 0, 0, 0.2)', + display: true + } } }, plugins: { diff --git a/client/src/app/gauges/controls/html-graph/graph-base/graph-base.component.ts b/client/src/app/gauges/controls/html-graph/graph-base/graph-base.component.ts index 149829225..3d5324304 100644 --- a/client/src/app/gauges/controls/html-graph/graph-base/graph-base.component.ts +++ b/client/src/app/gauges/controls/html-graph/graph-base/graph-base.component.ts @@ -55,4 +55,5 @@ export interface GraphOptions extends ChartOptions { gridLinesColor?: string; plugins?: any; scales?: any; + backgroundColor?: string; } diff --git a/client/src/app/gauges/controls/html-graph/graph-property/graph-property.component.html b/client/src/app/gauges/controls/html-graph/graph-property/graph-property.component.html index cfe72161c..35a56db4a 100644 --- a/client/src/app/gauges/controls/html-graph/graph-property/graph-property.component.html +++ b/client/src/app/gauges/controls/html-graph/graph-property/graph-property.component.html @@ -160,7 +160,7 @@