We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Use POCO[] instead of double[]

Thread ID:





148596 Oct 26,2019 12:30 AM UTC Oct 28,2019 11:16 AM UTC Blazor 1
Tags: Heatmap Chart
Asked On October 26, 2019 12:30 AM UTC

All the examples bind the heatmap to a double[] (or int[]).

Is it possible to instead bind to a POCO[], tell it a numeric property to use, and then display a templated tooltip.

Kanagambigai Murugan [Syncfusion]
Replied On October 28, 2019 11:16 AM UTC

Hi Patrick, 
Thanks for contacting Syncfusion. 
We have validated your requirement and prepared a sample accordingly. Here, we have rendered the Heatmap by binding it to the “HeatmapData” and used TooltipRendering Event to display the templated tooltip. 
<EjsHeatMap DataSource="@Data"> 
        <HeatMapEvents TooltipRendering="@TooltipRendering"></HeatMapEvents> 
    class HeatmapData 
        public string RowId { get; set; } 
        public string ColumnId { get; set; } 
        public string Value { get; set; } 
    HeatmapData[] Data = new HeatmapData[] { 
               new HeatmapData  { RowId= "France", ColumnId= "2010", Value= "77.6" }, 
               new HeatmapData  { RowId= "France", ColumnId= "2011", Value= "79.4" }, 
public void TooltipRendering(ITooltipEventArgs args) 
        args.Content = new string[] { "In " + args.YLabel + ", " + args.Value + "M" + " visited " + args.XLabel}; 
Please check the above sample and get back to us if you need any further assistance. 
Kanagambigai M.   


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon