syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.46k stars 680 forks source link

Treemap minimum weight #1781

Closed Andre-Coelhoo closed 1 month ago

Andre-Coelhoo commented 2 months ago

Hey everyone, I would like to know if there is a way to define a minimum weight (size). Since if I have a big weight and another small I get a rectangle too small

Best regards, André.

LokeshPalani commented 1 month ago

Hi @Andre-Coelhoo,

We would like to inform you that the tile’s weight will be calculated based on the given values in the wightValueMapper. Currently, there is no option to define the minimum weight in the SfTreemap. This is the expected behavior of SfTreemap.

We suggest increasing the weight of the smaller tiles to address this case. For example, if you have two tiles with weights of 1000 and 10, you can map duplicate data as 100 to 10 but show the actual value from your data source in the tooltip and label builder.

Regards, Lokesh P.