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. Plotting histogram using barcharts

Plotting histogram using barcharts

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

    HI

    i have a set of data like the fallowing
    10
    10
    10
    20
    20
    20
    30
    30
    30 and so on

    i want to create histogram using the bar chart (QBarSeries) but i am unable to figure out how to set the Barset what values to give and what to give as x and y axis values

    i have only worked with QLineseries in Qtcharts i read the documentation for barchart but still was unable to figure out

    please give some suggestion on how should i start looking forward to your valuable suggestion thanks in advance

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

      To sum it up briefly...
      Think of each data as a bar. As many bars as the number of data... You must add these bars to the barseries. Complete with other (axis...) chart requirements .

      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