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. QML Polarchart axis labels in all directions
Qt 6.11 is out! See what's new in the release blog

QML Polarchart axis labels in all directions

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

    Hi,
    maybe I just don't see the answer but let me explain.
    I am looking for a way to display the axis labels within a polar-chart in all four directions.

    For example i copied the given one for polar chart. But as we can see, we only have labels from the center to the top of the chart. I would like to show the values for all four directions.

    Is that possible?

    PolarChartView {
        title: "Two Series, Common Axes"
        anchors.fill: parent
        legend.visible: false
        antialiasing: true
    
        ValueAxis {
            id: axisAngular
            min: 0
            max: 20
            tickCount: 9
        }
    
        ValueAxis {
            id: axisRadial
            min: -0.5
            max: 1.5
        }
    
        SplineSeries {
            id: series1
            axisAngular: axisAngular
            axisRadial: axisRadial
            pointsVisible: true
        }
    
        ScatterSeries {
            id: series2
            axisAngular: axisAngular
            axisRadial: axisRadial
            markerSize: 10
        }
    
        // Add data dynamically to the series
        Component.onCompleted: {
            for (var i = 0; i <= 20; i++) {
                series1.append(i, Math.random());
                series2.append(i, Math.random());
            }
        }
    }
    

    Thank you in advance :)

    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