ipsapps
Posts: 23
Joined: Tue Jul 16, 2024 12:51 pm

Treemap Styled mode

hi - i want to be able to use the color indicator for the treemap to come from my data.

but I also always set my "styledmode = true" on my defaults, so that way my chart labels, etc are controlled via my css with my colors/labels/ etc

If I am in styledmode - how can i apply specific colors to chart points or even just have the points be different colors?

Example with the styled mode on where the whole chart is black
https://jsfiddle.net/jmac88/ov3sy4hm/34/

if i turn styledmode off and await for standard colors:

Everything comes in as black in the chart:

https://jsfiddle.net/jmac88/6boag9sp/3/
User avatar
dawid.d
Site Moderator
Posts: 1222
Joined: Thu Oct 06, 2022 11:31 am

Re: Treemap Styled mode

Hello,

thanks for the question!

The easiest approach would be to define CSS classes with that colors and applying them to the points, like in the demo below.

Demo: https://jsfiddle.net/sa04jokb/

If that's not enough, let me know, I'll try to find a more customized solution for your use case.

Best regards,
Dawid Draguła
Highcharts Developer

Return to “Highcharts Dashboards”