SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & 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.

0
0

Hi,

Is there any way to get back the 2D data array from the Heatmap2DArrayDataSeries object?

Full of hope for positive answer,
Mark

  • You must to post comments
0
0

Hi Mark,

Thanks for your inquiry. Although there is a way to retrieve the array, which is reserved for internal usage.

If you take a look at the IHeatmap2DArrayDataSeries interface, it exposes the GetArray2D() method which returns a copy of the array. You need to cast Heatmap2DArrayDataSeries to IHeatmap2DArrayDataSeries to call it.

Please be aware that it performs a full copy of the initial array. Also you don’t want to make any changes to it, because this may cause unexpected results. If you need to change something, the only option is to recreate the Heatmap2DArrayDataSeries.

Hope this helps!

Best regards,
Yuriy

  • Andrew
    .. Another way is to keep a reference to the double[,] array when you create the Heatmap2DArrayDataSeries! :)
  • Marek Sienczak
    Thx everyone. I did it by a reference of my own exchange object but I was eager to know whether there is a better solution. And this one by the IHeatmap2DArrayDataSeries interface it is a perfect way because without any additional effort I have access to all the properties I need.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.