Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hide YAxis numbers in QChartView
Forum Update on Monday, May 27th 2025

Hide YAxis numbers in QChartView

Scheduled Pinned Locked Moved Unsolved General and Desktop
qchartview
3 Posts 2 Posters 2.5k 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.
  • N Offline
    N Offline
    nzur
    wrote on last edited by
    #1

    Hi, I need a simple chart with a single vertical bar. I found a nice example in http://doc.qt.io/qt-5/qtcharts-stackedbarchart-example.html
    I would like to hide the numbers which appear near the Y axis, how do I do that?
    Thx

    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @nzur
      The doc says http://doc.qt.io/qt-5/qtcharts-stackedbarchart-example.html

      For the y-axis we use default axis, which is created and scaled to series data by calling createDefaultAxes of the chart.
      

      So remove chart->createDefaultAxes() ?

      --Alles ist gut.

      1 Reply Last reply
      2
      • N Offline
        N Offline
        nzur
        wrote on last edited by
        #3

        Worked, THX!!!

        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