Pre loader

Live updates for 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

Hello,
I’m trying to use a heatmap to show live data as it’s being collected. The heatmap examples seem to show how to create and playback existing data.
Is there an example that shows how to update a single heat series as data is being measured? I’m measuring one point at a time and need to update the heatmap accordingly. I’m measuring and updating points at a rate of about 100us.
Creating a new UniformHeatmapDataSeries at each measurement updates the heatmap very slowly.

Version
6.3
  • You must to post comments
0
0

Hi Armando,

Yes there is, you can see our documentation here which talks about updating the heatmap cell by cell.

Updating Data in the Heatmap

The UniformHeatmapDataSeries and NonUniformHeatmapDataSeries do not
support Append, Insert, Update, Remove like the other DataSeries do.
You can however update the data and force a refresh by simply updating
the array passed in. To do this, use the following code:

int cellHeight = 200;
int cellWidth = 300;
var data = new double[cellHeight, cellWidth];
double startX = 0;
double stepX = 1;
double startY = 0;
double stepY = 1;
var heatmapDataSeries = new UniformHeatmapDataSeries<double, double, double>(data, startX, stepX, startY, stepY);

// ...


// Update some data and force a refresh of parent chart
data[5,10] = 123.45d;
heatmapDataSeries.InvalidatateParentSurface(RangeMode.None);

Please 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