Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Straigt line over zero-axis in PolarChartView?

    QML and Qt Quick
    1
    1
    65
    Loading More Posts
    • 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.
    • P
      pga4711 last edited by pga4711

      Hello,

      I wonder how to make the lines in a PolarChartView to go over the zero-axis. How to do this?

      I have the code here

      import QtQuick 2.13
      import QtQuick.Window 2.13
      import QtQuick.Controls 2.5
      import QtCharts 2.13
      
      Window {
          visible: true
          width: 600
          height: 600
      
          PolarChartView {
              anchors.fill: parent
              legend.visible: false
      
              ValueAxis {
                  id: axisAngular
                  min: 0
                  max: 360
                  tickCount: 5
              }
      
              ValueAxis {
                  id: axisRadial
                  min: 0
                  max: 10
              }
      
              SplineSeries {
                  id: series1
                  axisAngular: axisAngular
                  axisRadial: axisRadial
                  pointsVisible: true
      
                  Component.onCompleted: {
                      append(354, 3)
                      append(17.8, 3.6)
                  }
              }
          }
      }
      

      Here on the left we can see how the QtCharts 2.13 PolarChartView seems to work today and to the right we have the expected result.
      0_1565785073860_LineCrossingZeroInPolarChart.jpg

      Someone who have ideas to establish this "make the line go over zero-axis"-behavior? :)

      1 Reply Last reply Reply Quote 0
      • First post
        Last post