Would it be possible to hide the legend only when drilling down certain levels? I have tried the below code and the browser freezes and becomes unresponsive for several seconds when the legends get hidden.
args.treemap.legendSettings.visible = false;
The datasource used is quite large with around 5000 records.
IRIndumathi Ravi Syncfusion Team October 19, 2022 11:20 AM
Thank you for contacting Syncfusion support.
As given in the provided code snippet, you can hide the legend in "drillStart" event of the TreeMap component. We are unable to reproduce the performance slowness with 5000 data. Please find the sample, in which we tried to reproduce the reported performance slowness, below.
We suspect that the performance slowness is due to the data source that you have used in your application. Please modify the above sample or share the data source to reproduce the performance slowness. It will be helpful for us to analyze and assist you further.
Marked as answer
BDBrainweber DevOctober 27, 2022 07:24 AM
Using a hierarchical datasource solved the issue
IRIndumathi Ravi Syncfusion Team October 28, 2022 07:46 AM
Thank you for the update.
Please get back to us if you need
any further assistance.