0

Is there a configuration within ngx-chart to remove the grey background in the following chart: https://embed.plnkr.co/2eQ9jheOTm8i74vp2EmP?show=preview

crtjer
  • 125
  • 1
  • 7

2 Answers2

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