Pre loader

Change metadata in heatmap

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi,

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?

Version
4.x
  • You must to post comments
0
0

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,
Andrew

  • 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