Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. array append to scatter chart
Forum Update on Monday, May 27th 2025

array append to scatter chart

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 801 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MohsenNz
    wrote on 21 Mar 2019, 20:29 last edited by MohsenNz
    #1

    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?

    J 1 Reply Last reply 21 Mar 2019, 21:10
    0
    • M MohsenNz
      21 Mar 2019, 20:29

      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?

      J Offline
      J Offline
      JonB
      wrote on 21 Mar 2019, 21:10 last edited by
      #2

      @MohsenNz
      Read https://www.qtcentre.org/threads/69429-SOLVED-QLineSeries-extremely-slow, and the OP's solution? Do you create the QScatterSeries and then add that?

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MohsenNz
        wrote on 22 Mar 2019, 08:46 last edited by MohsenNz
        #3

        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.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MohsenNz
          wrote on 22 Mar 2019, 09:39 last edited by MohsenNz
          #4

          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).

          C 1 Reply Last reply 23 Apr 2021, 02:01
          0
          • M MohsenNz
            22 Mar 2019, 09:39

            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).

            C Offline
            C Offline
            Crawl.W
            wrote on 23 Apr 2021, 02:01 last edited by
            #5

            @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 QQuickPaintedItem to paint qwt chart canvas.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved