Is there a configuration within ngx-chart to remove the grey background in the following chart: https://embed.plnkr.co/2eQ9jheOTm8i74vp2EmP?show=preview
Asked
Active
Viewed 711 times
0
-
why don't just use css? .ngx-charts .grid-panel.odd rect { fill: rgba(0, 0, 0, 0.05); } etc. – ABOS Jan 18 '19 at 14:37
-
If you try that css selection, it doesn't seem to apply. – crtjer Jan 18 '19 at 15:40
-
I tried it, it worked for me.... – ABOS Jan 18 '19 at 15:43
2 Answers
1
To avoid using !important
, just define a more specific selector. Also, you might need to use ng-deep to get over angular view encapsulation, but keep in mind that it is marked as something which will eventualy be deprecated.
::ng-deep
.ngx-charts g .grid-panel.odd rect {
fill: none;
}

Fjut
- 1,314
- 12
- 23
0
I thnk you just need to use css rule
.ngx-charts .grid-panel.odd rect {
fill: none;
}
there is no option to disable this one in their api.

Kraken
- 1,905
- 12
- 22
-
Tried in the demo about and they still appear, it doesn't seem to apply it. – crtjer Jan 18 '19 at 15:42
-
1