Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131120

GraphPointAnimation doesn't work with ScatterSeries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.8.2, 6.9.0 FF
    • 6.8.0
    • Graphs: 2D
    • None
    • All
    • fdcf12083 (dev), eb8297be1 (6.8)

      Minimal reproducible example:

      import QtQuick
      import QtGraphs
      
      Window {
        width: 640
        height: 480
        visible: true
        title: qsTr("Graphs 2D - Scatter Graph")
      
        GraphsView {
          anchors.fill: parent
      
          axisX: ValueAxis {}
          axisY: ValueAxis {}
      
          ScatterSeries {
            id: scatterSeries
      
            GraphTransition {
              GraphPointAnimation { duration: 1000; easingCurve.type: Easing.OutCubic }
            }
      
            XYPoint { x: 0.0; y: 9.0 }
            XYPoint { x: 1.0; y: 3.0 }
            XYPoint { x: 2.0; y: 7.0 }
            XYPoint { x: 3.0; y: 1.0 }
            XYPoint { x: 4.0; y: 8.5 }
            XYPoint { x: 5.0; y: 2.4 }
            XYPoint { x: 6.0; y: 6.0 }
            XYPoint { x: 7.0; y: 1.6 }
            XYPoint { x: 8.0; y: 9.5 }
            XYPoint { x: 9.0; y: 3.9 }
            XYPoint { x: 10.0; y: 9.9 }
          }
        }
      
        Timer {
          property int index: 0
          interval: 1000
          running: true
          repeat: true
          onTriggered: {
            if (index >= scatterSeries.count || index < 0) {
              index = 0
            }
            scatterSeries.replace(index, index, Math.random() * 10) // Replace data with random for animation demonstration
            index++
          }
        }
      }
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            owaisakhtar Owais Akhtar
            bartoszrudzki Bartosz Rudzki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes