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

array append to scatter chart

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.2k Views 1 Watching
  • 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.
  • MohsenNzM Offline
    MohsenNzM Offline
    MohsenNz
    wrote on 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?

    JonBJ 1 Reply Last reply
    0
    • MohsenNzM 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?

      JonBJ Online
      JonBJ Online
      JonB
      wrote on 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
      • MohsenNzM Offline
        MohsenNzM Offline
        MohsenNz
        wrote on 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
        • MohsenNzM Offline
          MohsenNzM Offline
          MohsenNz
          wrote on 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).

          Crawl.WC 1 Reply Last reply
          0
          • MohsenNzM 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).

            Crawl.WC Offline
            Crawl.WC Offline
            Crawl.W
            wrote on 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