Heatmap dynamic legend, grid column width

Hi,

I have tried to use your SfHeatmap control.

After user select what kind of data he wants to see in the control this is updated. I have a problem to dynamically update the legend of the heatmap. The range of values displayed can be anything between 0 - 100, 0-500, 0-1 etc.

I need to construct the legend dynamically from viewmodel, how can I do it?

In one case I need to have a legend that shows values etc. 0-25 white, 25-75 yellow, 75-125 green, and 125 and above red. Max values however could be as high as 1500, If I use "standard" legend mode the "high" values legend will dwarf all the rest (red in this case will take more than 90%). So I need to assign all values above 125 to be red. If I set legend ColorMapping Value="150" all values above 150 will be white, this is not desired.
How ca


2 Replies

AK Arun Kumar Sivakumar Syncfusion Team April 5, 2024 01:35 PM UTC

Hi Nicola, 


We are working on your requirements. We will update you with more details on or before April 8, 2024.


Regards,

Arun Kumar S



AK Arun Kumar Sivakumar Syncfusion Team April 8, 2024 01:28 PM UTC

Hi Nicola, 


Requirement: Need to update the legend in Runtime.


We have analyzed your requirements. SfHeatmap supports updating the legend while initialization. However, we do not have support to update the legend in Runtime. However, we have added it to our feature request list. But we don’t have any immediate plans to implement this feature. We review all open features at the planning stage for every release cycle. We will let you know when this feature is implemented. The status of implementation can be tracked through the following link. 


FR link: Need to update HeatMap ItemsMapping, ItemSource and ColorMapping collection in runtime in WPF | Feedback Portal (syncfusion.com)


We are closing this forum now. You can also communicate with us regarding the open features at any time using the “Contact” option.


Regards,

Arun Kumar S



Loader.
Up arrow icon