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 Updated to NodeBB v4.3 + New Features

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 8 Nov 2016, 13:17 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
    • R Offline
      R Offline
      Ratzz
      wrote on 8 Nov 2016, 13:23 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 8 Nov 2016, 13:57 last edited by
        #3

        Worked, THX!!!

        1 Reply Last reply
        0

        2/3

        8 Nov 2016, 13:23

        • Login

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