Results 1 to 2 of 2

Thread: newbie help: stacked bar-chart/histogram

  1. #1
    Join Date
    Dec 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face newbie help: stacked bar-chart/histogram

    Hi All,

    I'm trying to adapt the example histogram contained in the qwt source to be able to make a stacked histogram/bar-chart with multiple datasets.

    I have managed to adapt the example for a single dataset in my application, but I need up to four or five values per element, and to display them as a stacked bar chart.

    I'm very new to Qt and C++ for that matter, and haven't the foggiest idea how I can proceed to adapt this any further

    Any help, tutorial, or pointers would be appreciated..

    Thanks

    Leland

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: newbie help: stacked bar-chart/histogram

    Qwt doesn't have a plot item for stacked bar graphs, but an implementation had been posted on the Qwt mailing list for a earlier version. See the attachments here: http://sourceforge.net/mailarchive/f...e=qwt-interest.

    Qwt 5.3 ( code in SVN trunk ) will come with some templates, that makes it much easier to implement new types of plot items ( curves, histograms .. ) and comes with a couple of new implementations. Unfortunately stacked bargraphs are special because they needs special layout code for aligning the bars on the x-axis.

    Uwe

Similar Threads

  1. Stacked Layout. & Widget.
    By csvivek in forum Qt Programming
    Replies: 1
    Last Post: 13th May 2008, 08:56

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.