Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme settings don't work for bar charts and pie charts #85

Open
ddaaac opened this issue Nov 1, 2020 · 0 comments
Open

Theme settings don't work for bar charts and pie charts #85

ddaaac opened this issue Nov 1, 2020 · 0 comments
Labels
bug Something isn't working will accept PR

Comments

@ddaaac
Copy link

ddaaac commented Nov 1, 2020

Describe the bug
Theme settings don't work for bar charts and pie charts.
The chart is not rendered on the screen and an error like the screenshot below appears in the console window.
If I remove setTheme(~~), it works fine.

Steps or code example to Reproduce

ApexCharts().apply {
        setChart(Chart().apply { type = chartType })
        setLabels(*labels.toTypedArray())
        setTheme(Theme().apply {
            palette = "palette1"
            mode = Mode.light
            monochrome = Monochrome().apply { enabled = false }
        })
        ...

Expected behavior
I want to fill a palette color on my chart like below.
image

Screenshots
image
Maybe it is related to Monochrome#enabled.

@ddaaac ddaaac added the bug Something isn't working label Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working will accept PR
Projects
None yet
Development

No branches or pull requests

2 participants