SfHeatmap: formatting for CellMapping.Value

In your CellMapping sample, Value is a double. This should in principle allow for decimal values, but due to floating point, will result in the heatmap showing values like 2.73333333333333, which isn't a very useful heatmap display. :-)

In other XAML places, it's often possible to pass a parameter like StringFormat. I would like something like:

	<syncfusion:CellMapping.Value>
		<syncfusion:ColumnMapping 
			PropertyName="Value" StringFormat="{0:n2}cm" />
	</syncfusion:CellMapping.Value>

I.e., given a double, format it to two decimal places and append 'cm'.

Is something like that currently possible? I.e., specifying a format for a double value (especially to define the amount of decimal places desired, but also ideally to add a suffix).

1 Reply 1 reply marked as answer

KR Karkuvel Rajan Shanmugavel Syncfusion Team May 27, 2021 01:07 PM UTC

Hi Kuklau, 
 
Requirement: Format options in CellMapping value. 
 
Currently, we don’t have support to achieve your requirement with our SfHeatMap control. We have added it to our feature request list, but we don’t have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features. We will let you know when this feature is implemented. The status of implementation can be tracked through our Feedback portal.  
 
 
Regards, 
Karkuvel Rajan S 


Marked as answer
Loader.
Up arrow icon