Results 1 to 8 of 8

Thread: Qwt Side-bySide bar charts/graphs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2012
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Qwt Side-bySide bar charts/graphs

    Is there any way in Qwt v5.2.1 to do side by side bar graphs with multiple sets of data colored differently to distinguish between the two? I'm trying to be specific in my question as possible. I'm right now using a HistogramItem but there is no way (that I know of) to attach more than one HistogramItem to a QwtPlot without upgrading to v.6.0.1 and using QwtBarItem and using that.

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

    Default Re: Qwt Side-bySide bar charts/graphs

    In fact you would need to upgrade to SVN trunk ( 6.1 ), where you find a QwtPlotMultiBarChart item. Its "Grouped" ( in opposite to "Stacked" ) mode should be what you are looking for. Check the barchart example.

    The redesign made in Qwt 6.0 was to primarily to make it possible to introduce new types of plot items - without having to duplicate too much code - and Qwt 6.1 will be the release that introduces them.

    Uwe

    PS1: I remember there was once ( years ago ) a patch for Qwt 5.x ( or even maybe Qwt 4.x ) - maybe you find it in the mailing list archive.
    PS2: Stay away from QwtPlotBarChart - its implementation is not finished.
    Last edited by Uwe; 17th April 2012 at 17:29.

Similar Threads

  1. Replies: 21
    Last Post: 8th December 2011, 02:18
  2. Manifest / Side by Side configuration.
    By hickscorp in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2010, 05:22
  3. side-by-side configuration is incorrect
    By trueqt in forum Qt Programming
    Replies: 1
    Last Post: 28th August 2009, 00:35
  4. Stack two QMenuBars instead of side by side?
    By killerwookie99 in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2008, 06:27
  5. Replies: 5
    Last Post: 15th February 2008, 02:54

Tags for this Thread

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.