kurkle / chartjs-chart-treemap

Chart.js module for creating treemap charts
MIT License
139 stars 34 forks source link

The values of the Key attribute appears in the labels of the treeMap by default, cannot be deleted. Issue of the version 1.0.0.2, this issue does not exist in previous version (0.2.3)) #41

Closed Ariel-55 closed 3 years ago

Ariel-55 commented 3 years ago

I want to edit the labels of my treemap, however I ca not do this because there is a default value which can not be deleted. The value is the one that is written next to the key attribute. This issue happens on the version 1.0.0.2, I checked the version 0.0.23. and runs well var topTags =[{ tag: "tag1", value: 123 }]

datasets:[{ tree: topsTags, key: "value", groups: ['Tag'] }]

kurkle commented 3 years ago

You should be able to override the default (group) label by providing label: 'something' for each tag