So I have simple chart which plots real time data.Wanted to know the best practices for the same
Currently my questions are based on real time plotting of a line chart.
1. Is there any other way to update the user interface other than using replot -----'ui->chartPlot->replot();' . Replot cleans the palate and plots the whole data again,if there is any optimization which can be done here?
2. On re plotting data beyond the current axis ,the new axis have to be updated each time..I am calculating the highest and lowest point in my data and updating the axis each time.Is this the best approach? Or there are other approaches?
3. While the use has zoomed and pan ,if there is a re plot called with new data the user is taken out of the zoom and pan suddenly and the whole re plotted axis shows .This effect looks very shaky..is there any way to better it?
4. Does the performance matter if
i)new data added is absolutely different from the last plot
ii)new data is a superset of the last plotted data