Legend for treemaps like in pie
Add a point legend for a treemap. So that this treemap http://jsfiddle.net/kzoon/fgjt659a/2/ can have a legend just like this pie chart http://jsfiddle.net/kzoon/Ltndgv27/1/
There are 3 reasons for wanting this:
1 To enable users to add/remove points using the legend
2 Data labels don't fit in the smaller data points. If you have several smaller data points the labels either overlap or get suppressed
3 When a treemap and other chart types are presented side by side, they should look the same as much as possible. Having a legend on all chart types does just that.
Thanks for your suggestion! I did some refactoring to allow this functionality with more series types than just pie and its derivatives. For example it makes sense for columns with colorByPoint also.
The commit is available at https://github.com/highslide-software/highcharts.com/commit/a20dd76eb207defc1df92efd5a91738835e4f595.
- The second case uses a little override which filters the items: http://jsfiddle.net/7fx65949/1/
When you use 2 levels the labels of the first level and the second level soon overlap/suppress each other. Like in this fiddle: http://jsfiddle.net/kzoon/7fx65949/
Using a legend for the top level would solve this issue.
It would be comparable with a legend on a stacked pie: http://jsfiddle.net/kzoon/od6dpypv/