Pre loader

How to get back the data from the data series object

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



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

Full of hope for positive answer,

  • You must to post comments

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,

  • Andrew Burnett-Thompson
    .. 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.

Try SciChart Today

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

Start TrialCase Studies