For dark themes, there's the tooltip.theme option. It looks nice, but it would be very cool if the whole thing could have a dark mode.

With some minor tweaks like setting the text color to white and adding dark colors to the menu, it could look like this

I would suggest to use a top-level theme (or chart.theme) option, add a class dark to .apexcharts-canvas and style all other elements with css selectors accordingly.
I could send a PR for this if my proposal seems like a good idea (although not in the next few days).
BTW, huge thanks to this project. The charts are so clean and even mobile touch "swiping" of the charts always renders the correct tooltip. This is so cool!
Thanks for the kind words!
Sure, there is already a property called theme in the main configuration - https://apexcharts.com/docs/options/theme/
Maybe we can add theme.mode: 'light' / 'dark' in the same property and carry on that.
Has this been released yet? Looking for an easy way to switch dark/light themes aswell, using with Vuetify atm.
Not released yet, but coming soon.
@junedchhipa any chance you can explain how to modify the charts to show properly when using vuetify dark mode?
I have the problem @steebchen shows in the first pic, but I cannot find the proper options I need to modify to create the layout in the second picture above (where you can see the text).
Thank you in advance
I abandoned this project so I'm not sure but I'm sure you can use:
svg text {
fill: white;
}
@steebchen May I know the reason why you abandoned?
@pilotaids What have you tried to change the theme? Did you updated this option theme.mode?
Also, the tooltip is an HTML element, so directly modifying the background/color options will work too.
I meant I abandoned my own project, not using apexcharts (although that results in it). In general, it seems I'm quickly transitioning into Angular (100% Typescript, powerful testing, DI, intellisense, ...).
Ah! thanks for clarifying!
Good luck with Angular. I'm sure you'll enjoy it too along with ng-apexcharts ;)
Ah well, good to know ;) Will definitely use it when I need charts in Angular!
i want to add background image on the chart. Do anyone know how
@bubuamu Please create a new ticket for it.
You can now achieve this by setting the theme property inside tooltip property to dark.
tooltip: {
theme: 'dark',
}


question. how come the background for the charts is not dark gray? i didnt set any background color either.
the dark gray color below is a material table in dark mode which is correct.
question. how come the background for the charts is not dark gray? i didnt set any background color either.
the dark gray color below is a material table in dark mode which is correct.
Hello, did you find a solution ?
question. how come the background for the charts is not dark gray? i didnt set any background color either.
the dark gray color below is a material table in dark mode which is correct.Hello, did you find a solution ?
no. not going to. this is a personal project anyway so ill just wait for them to fix it.
I have changed the default dark color to #424242
I have changed the default dark color to
#424242
Ok thank you very much for the quick response.
But, is there any way to change this color ourselves?
I would like to put it transparent so that the background color is the same as the vuetify color.
It doesn't work when I do :
chart: {
background: 'transparent'
}
Anyway, great job on that library.
Yeah is there a way to remove the dark mode background? I have my charts on dark already.

For those that came here, like myself or the previous comment, using other style means, such as e.g. material-design, put
div.apexcharts-canvas.apexcharts-theme-dark {
background: transparent !important;
}
in your css file somewhere (in case of an angular app, style.css).
svg.apexcharts-svg {
background: transparent !important;
}
Most helpful comment
Thanks for the kind words!
Sure, there is already a property called
themein the main configuration - https://apexcharts.com/docs/options/theme/Maybe we can add
theme.mode: 'light' / 'dark'in the same property and carry on that.