array append to scatter chart
-
wrote on 21 Mar 2019, 20:29 last edited by MohsenNz
Hi guys.
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? -
Hi guys.
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?wrote on 21 Mar 2019, 21:10 last edited by@MohsenNz
Read https://www.qtcentre.org/threads/69429-SOLVED-QLineSeries-extremely-slow, and the OP's solution? Do you create theQScatterSeries
and then add that? -
wrote on 22 Mar 2019, 08:46 last edited by MohsenNz
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.
-
wrote on 22 Mar 2019, 09:39 last edited by MohsenNz
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).
-
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).
wrote on 23 Apr 2021, 02:01 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 toQWT
, which provide the chart component. I usedQQuickPaintedItem
to paint qwt chart canvas.