Kyvis-Labs / ignition-apexcharts-module

The module provides Perspective ApexCharts components
Apache License 2.0
59 stars 12 forks source link

background color not reflect in dark thems #16

Closed tamerplc closed 2 years ago

tamerplc commented 2 years ago

i am traying to change the background color for the chart to be #212429 but it not reflect . i am using dark mode . no.2 should be same color of no 1 but nothing change . chart: { background: #212429 }

issue1

attached the export file from the view .

barcharexport.zip

nikolai-wolterstorff commented 2 years ago

https://github.com/Kyvis-Labs/ignition-apexcharts-module/issues/12

traviscox commented 2 years ago

The problem is the example you copied from had "undefined" for a couple of properties. That is meant to be undefined in JavaScript which we can't set from the property. That translated to a string "undefined" in the component, resulting in a black color. See this picture:

image

Simply, remove "undefined" on the colors property inside of both column and row objects:

image

That will fix the issue.

tamerplc commented 2 years ago

@traviscox thanks a lot for usual support