Straigt line over zero-axis in PolarChartView?



  • 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? :)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.