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. [QChart] The Spline chart has an overshoot in displaying the change in value
Forum Updated to NodeBB v4.3 + New Features

[QChart] The Spline chart has an overshoot in displaying the change in value

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 216 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.
  • G Offline
    G Offline
    giusdbg
    wrote on last edited by giusdbg
    #1

    Hi.

    I am testing a dynamic line chart, and I have an overshoot problem in displaying the value change (Y from 6 to 4).

    And I can't figure out what is causing it and how to avoid it.

    In the image you can see the series of values ​​(without problems) loaded into the chart with

    auto xySeries = static_cast<QtCharts::QXYSeries *>(series);
    
    xySeries->replace( dataList );
    

    Schermata_20250131_205921.png

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giusdbg
      wrote on last edited by giusdbg
      #2

      I changed the title, because the problem is related to QSplineSeries, QLineSeries does not have overshoots for value changes.

      From what I understand QSplineSeries tries to smooth out value changes, and the overshoots are a side effect of the filter applied to do so.

      With QLineSeries

      Schermata_20250201_113234.png

      1 Reply Last reply
      0
      • G giusdbg has marked this topic as solved on
      • G giusdbg has marked this topic as solved on

      • Login

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