IntensityGridSeries (heatmap)
IntensityGridSeries allows visualizing M x N array of nodes, colored by assigned value-range palette. The colors between nodes are interpolated. IntensityGridSeries is an evenly spaced, rectangular series in X and Y dimension. This series allows rendering contour lines, contour line labels, and wireframe as well.
To see feature demonstration as example, check Heat map, Spectrogram, Intensity grid mouse control from our Demo.

IntensityGridSeries properties.
The data is stored in Data property as two-dimensional array. Each array item is of type IntensityPoint. Store the data value of each node in Value field of IntensityPoint structure, which tells what color should be used from the ValueRangePalette.

IntensityGrid series showing a heat map presentation. Legend box shows the value-range color palette.
Setting intensity grid data

IntensityGridSeries nodes. SizeX = 5, SizeY = 7.
Node distances are automatically calculated as

- Set X range by using RangeMinX and RangeMaxX properties, to order the minimum and maximum value of assigned X axis.
- Set Y range by using RangeMinY and RangeMaxY properties, to order the minimum and maximum value of assigned Y axis.
- Set SizeX and SizeY properties to give the grid a size as columns and rows.
- Set Value for each node:
// Method, with Data array index
for (int nodeIndexX = 0; nodeIndexX < columnCount; nodeIndexX ++)
{
for (int nodeIndexY = 0; nodeIndexY < rowCount; nodeIndexY ++)
{
intensityValue =//some height value.
gridSeries.Data[iNodeX, iNodeY].Value = intensityValue;
}
}
gridSeries.InvalidateData(); //Notify new values are ready and to refresh
// Alternative method, usage of SetDataValue
for (int nodeIndexX = 0; nodeIndexX < columnCount; nodeIndexX ++)
{
for (int nodeIndexY = 0; nodeIndexY < rowCount; nodeIndexY ++)
{
intensityValue =//some height value
gridSeries.SetDataValue(nodeIndexX, nodeIndexY,
0, //X value ís irrelevant in grid
0, //Y value is irrelevant in grid
intensityValue,
Color.Green); //Source point colors are not used in this example, so use any color here
}
}
gridSeries.InvalidateData(); //Notify new values are ready and to refresh
Setting Values only to existing grid
When the geometry of IntensityMesh, or SizeX or SizeY for IntensityGrid series doesn’t change while data is changing rapidly, it is most advantageous to use SetValuesData method. Since it accepts Double[][] format data array, scrolling or re-ordering rows or columns is quick. Especially when combined with PixelRendering property (see here), it is a very effective approach for high-resolution scrolling spectrogram visualization. Note that when PixelRendering is disabled with external data array set by SetValuesData, Data property can’t be null.
Setting Colors only to existing grid
When the geometry of IntensityMesh, or SizeX or SizeY for IntensityGrid series doesn’t change while data is changing rapidly, it is most advantageous to use SetColorsData method. It accepts int[][] format values, i.e. ARGB values that GPU accepts directly. With this kind of data array, scrolling or re-ordering rows or columns is quick. Especially when combined with PixelRendering property (see here), it is a very effective approach for high-resolution scrolling spectrogram visualization. Note that when PixelRendering is disabled with external data array set by SetColorsData, Data property can’t be null.