Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148596 | Oct 26,2019 12:30 AM UTC | Oct 28,2019 11:16 AM UTC | Blazor | 1 |
![]() |
Tags: Heatmap Chart |
<EjsHeatMap DataSource="@Data">
<HeatMapEvents TooltipRendering="@TooltipRendering"></HeatMapEvents>
…
</EjsHeatMap>
@code{
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};
}
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.