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. How to create a barchart without any space between bars
Forum Updated to NodeBB v4.3 + New Features

How to create a barchart without any space between bars

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 769 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.
  • M Offline
    M Offline
    manugoel
    wrote on last edited by
    #1

    Hi,

    I am trying to create a bar chart using QChart, I am able to create something like below -
    bargraph.PNG

    I want to remove the space between the bars. Is there any way I can achieve this? Or is there any other Qt class which I can use to achieve the desired behavior?

    Thanks,
    Manu

    1 Reply Last reply
    0
    • A.A.SEZENA Offline
      A.A.SEZENA Offline
      A.A.SEZEN
      wrote on last edited by
      #2

      @manugoel said in How to create a barchart without any space between bars:

      space between the bars

      or bar width

      setBarWidth()
      
      M 1 Reply Last reply
      0
      • A.A.SEZENA A.A.SEZEN

        @manugoel said in How to create a barchart without any space between bars:

        space between the bars

        or bar width

        setBarWidth()
        
        M Offline
        M Offline
        manugoel
        wrote on last edited by
        #3

        @A-A-SEZEN, Thanks, I could achieve the desired result.

        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