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. Qt chart scroll according to coming data
QtWS25 Last Chance

Qt chart scroll according to coming data

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 174 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.
  • F Offline
    F Offline
    firsnur96
    wrote on last edited by
    #1

    I want to scroll my chart, according to new datas.
    Im using the code below but it is too fast. When i change the numbers, chart does not catch the new datas.
    Is there any idea for scrolling the my charts according to coming datas?

            ```
            chart->scroll(0.15,0);
            chart->scale();
            chart->update();
            ```
    
    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      cache your data and use a timer to update your chart at a proper pace.

      F 1 Reply Last reply
      1
      • JoeCFDJ JoeCFD

        cache your data and use a timer to update your chart at a proper pace.

        F Offline
        F Offline
        firsnur96
        wrote on last edited by
        #3

        @JoeCFD I have a timer but i used timer for adding values on a chart. is it wrong?

        JoeCFDJ 1 Reply Last reply
        0
        • F firsnur96

          @JoeCFD I have a timer but i used timer for adding values on a chart. is it wrong?

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on last edited by
          #4

          @firsnur96 If your data comes too fast, update may not be able to catch up with it. Store the data in a queue and slow down your timer while feeding the data one after another from the queue into your chart.

          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