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)
}
- Yatharth Chhabra asked 5 years ago
- last edited 5 years ago
- You must login to post comments
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/
- Andriy P answered 5 years ago
- 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 login to post comments
Please login first to submit.