'Declaration
Public Class Heatmap Inherits Series Implements Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender, Microsoft.AspNetCore.Components.IHandleEvent
'Declaration
Public Class Heatmap Inherits Series Implements Microsoft.AspNetCore.Components.IComponent, Microsoft.AspNetCore.Components.IHandleAfterRender, Microsoft.AspNetCore.Components.IHandleEvent
var hmap = new Heatmap(); hmap.ItemsSource = new double [,] { { 0, 0.5 }, {0.5, 1 }, { 1, 0.4 }, { 0.5, 1 } }; hmap.ColorScale = new GradientColorScale() { Min = 0, Max = 1, Colors = new List<Color> { Color.White, Color.Red } }; chart.Series.Add(hmap); chart.AxisX.ItemsSource = new string[] {"Q1", "Q2", "Q3", "Q4" }; chart.AxisY.ItemsSource = new string[] { "Region 1", "Region 2" };
System.Object
Microsoft.AspNetCore.Components.ComponentBase
C1.Chart.SeriesBase
C1.Blazor.Chart.Series
C1.Blazor.Chart.Heatmap