SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

Answered
0
0

Hello,

I have a heatmap that I pass two mapping functions to the Heatmap2DArrayDataSeries (one for x indices and one for y indices).

That is working great.

The user can set the amount of intervals they want to see (as major gridlines). So what I want is to manually control the MajorDelta and MinorDelta, and also set the AutoTicks=false.

When I do this, it renders all the frame for the SciChart Surface, but it seems that it starts making calculations and never draws the heatmap not the gridlines, and finally it throws an OutOfMemory exception.

My data set is not that large: 60×112

What alternative do I have for controlling the amount of intervals shown?

Thank you.
Sebastian

  • You must to post comments
Best Answer
0
0

I suspect that your choice of MajorDelta / MinorDelta is resulting in millions of tick/grid lines to be generated and hence WPF is throwing an OutOfMemoryException drawing the lines or the labels.

Can you please share the setting of MajorDelta, MinorDelta?

Also please share what is the XAxis.VisibleRange and YAxis.VisibleRange in the case where you do not apply Major/Minor delta?

Best regards,
Andrew

  • Sebastian de Ugarriza
    Thank you Andrew. The moment you wrote it I realized what was happening. I was still using values for Major/Minor delta from “before” I applied the mapping, so the values were ranging between the indices min and max, and since my new data mapping is in the range of 400.000 — 700.000 it was drawing a lot of lines.
  • Andrew
    No problems! If you want a slightly more dynamic approach to generating grid / tick lines please take a look at the TickProvider API. https://www.scichart.com/documentation/v4.x/Axis%20Ticks%20-%20TickProvider%20and%20DeltaCalculator%20API.html PS: Your other request on the forums, I have notified the team. Best regards, Andrew
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.