Pre loader

Change metadata in heatmap



I would like to customize the values displayed on the tooltip, when rollover is enabled on my heatmap. After some searching in the examples and in the forum, I realized that there is no answer to my question.

I tried to follow the example in Series With Metadata, but then realized that there is no Append method for heatmap2DArrayDataSeries class. I then, tried to set a new Metadata object to the series, but it is read only.

May I know if there is a way to change/update the metadata in a heatmap?

  • You must to post comments

Hi Vladimir,

I’m afraid there is no metadata for the heatmap, only for X,Y data series.

May I suggest you can access from the TooltipTemplate the RenderableSeries.DataSeries.Tag property, and place a two-dimensional array of metadata on there.

The HeatmapSeriesInfo has XIndex, YIndex, as well as RenderableSeries.DataSeries.Tag so it is possible to lookup the metadata value by index.

The DataSeries.Tag property is available in v4.2 of SciChart and up.

Let me know if this helps,

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies