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

0
0

I’m trying to clear a SCIUniformHeatmapDataSeries after connecting it to a SCIChartSurface, but it is very slow and energy consuming. However, if I clear the data series before it is connected to the sci chart, then the clearing is pretty fast. How can I clear the data series after it is connected to the chart surface quickly? Do I have to make a new data series, clear it, and connect to the scichartsurface every time I want to clear a data series? This is for iOS by the way.
EDIT: code

for i in 0..<data.MATRIX_COLUMNS {
        for j in 0..<data.MATRIX_ROWS  {
            data.ecm2DMatrix[i][j] = Double.nan
            SCIUpdateSuspender.usingWith(charts.ecmSurface) {
                self.data.ecmDataSeries.update(z:self.data.ecm2DMatrix[i][j], atX: i, y: j)
            }
Version
3.1.0.5175
  • You must to post comments
1
0

Hi, there.

Could you provide more details about how and when do you clear your dataSeries? Probably it is better not to clear it but update zValues in SCIUpdateSuspender.usingWith(surface) {} block.

Please provide any test example if it is possible so we stay on the same page, trying to help you.

Meanwhile, please take a look at the Heatmap chart example here: https://www.scichart.com/example/ios-heatmap-chart-demo/

  • Yatharth Chhabra
    for i in 0..<data.MATRIX_COLUMNS { for j in 0..<data.MATRIX_ROWS { data.ecm2DMatrix[i][j] = Double.nan SCIUpdateSuspender.usingWith(charts.ecmSurface) { self.data.ecmDataSeries.update(z:self.data.ecm2DMatrix[i][j], atX: i, y: j) } } This is the code I'm using to set the values of a Dataseries to double.nan. The dataseries is stored in the wrapper object "data"
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.