Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Straigt line over zero-axis in PolarChartView?

Straigt line over zero-axis in PolarChartView?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 153 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.
  • P Offline
    P Offline
    pga4711
    wrote on last edited by pga4711
    #1

    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
    0

    • Login

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