chuang
Posts: 13
Joined: Tue Feb 20, 2024 1:58 am

Treemap Legend in Dashboard

While researching different ways to create a legend for the treemap, I came across a method to use series.legendType = "point" to be able to display each treemap grouping. However using it with dashboard breaks the parent child mapping and the colors as well. Is this a bug?

Here's a js fiddle showing the issue: https://jsfiddle.net/chuang_acumen/acs0x719/20/
chuang
Posts: 13
Joined: Tue Feb 20, 2024 1:58 am

Re: Treemap Legend in Dashboard

If you remove legendType on Line 80, it should work reguarly
User avatar
dawid.d
Site Moderator
Posts: 1197
Joined: Thu Oct 06, 2022 11:31 am

Re: Treemap Legend in Dashboard

Hi,

Thanks for the question!

The problem has identical source as this one: viewtopic.php?p=195191#p195191 and requires the same fix solution.

Here’s a demo showing how to use that workaround: https://jsfiddle.net/BlackLabel/yqozfa06/

Best regards,
Dawid Draguła
Highcharts Developer
chuang
Posts: 13
Joined: Tue Feb 20, 2024 1:58 am

Re: Treemap Legend in Dashboard

Thank you that fixed it,.

Return to “Highcharts Dashboards”