Including different types (with values) in each Bar of chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
sumaya.baig
Posts: 12
Joined: Tue Nov 07, 2006 6:53 am
Contact:

Including different types (with values) in each Bar of chart

Post by sumaya.baig » Tue Nov 07, 2006 10:45 am

Hi, i need to include to make a bar chart which shows how different errors contribute to all the error for a particular tool . In simple words , a bar chart , having 1 bar for each tool , each bar having the magnitude of the contribution of that tool to the total number of errors , and each bar divided into different sections showing the contribution of the different errors for the total errors of that tool. Please help ![/img]

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Nov 07, 2006 10:47 am

From your description, it sounds like a stacked bar chart - but perhaps I'm missing something. Can you post an example?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

sumaya.baig
Posts: 12
Joined: Tue Nov 07, 2006 6:53 am
Contact:

Post by sumaya.baig » Tue Nov 07, 2006 10:51 am

[img]https://www.quickbase.com/help/chart_view_type.html[/img]

yes it is a stacked bar chart like on this page .. but it is horizontal .. sorry i dunno how to paste images in a reply !

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue Nov 07, 2006 10:54 am

Have a look at ChartFactory.createStackedBarChart(). Set the orientation to PlotOrientation.HORIZONTAL.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

sumaya.baig
Posts: 12
Joined: Tue Nov 07, 2006 6:53 am
Contact:

Post by sumaya.baig » Tue Nov 07, 2006 10:59 am

thanks ! :) , i will try that and get back to you !

Locked