Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
array append to scatter chart
i can just add points in scatter chart in Qt/Qml with append one by one.
i need to add 1000000 point to scatter. adding one by one with append method take too time. what can i do? is any way to add array of points to scatter? or any other option is there instead of scatter?
JonB last edited by
Read https://www.qtcentre.org/threads/69429-SOLVED-QLineSeries-extremely-slow, and the OP's solution? Do you create the
QScatterSeriesand then add that?
Thanks , it's good reference. but i use char-view and scatter-series in qml. and they have no api to append a list of points. now i gonna to write customize scatter in qml.
Now with use openGL flag , it has a good performance, now my problem is rendering CSV file that take 30 second time. (with use QByteArray and .split method).
Crawl.W last edited by
@MohsenNz Still, it shouldn't be so slow. When I was faced with this problem, I am using qml too. As far as I know, using the method mentioned by @JonB in QML, use the item provided by QML, still very slow.
Then, I transferred to
QWT, which provide the chart component. I used
QQuickPaintedItemto paint qwt chart canvas.