A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
lifeline2
- Posts: 11
- Joined: Wed Oct 21, 2009 10:04 am
- antibot: No, of course not.
Post
by lifeline2 » Thu Dec 10, 2009 2:15 pm
Hi,
Is it possible to create a column chart (Similar to a barchart with variable width ) through jfreechart ?
I am searching for a quite some time no clue....
Please help.. It sould be similar to
http://peltiertech.com/Utility/CascadeUtility.html . As I told same height 'll bw ok for me..
Advance thanks..
-
skunk
- Posts: 1087
- Joined: Thu Jun 02, 2005 10:14 pm
- Location: Brisbane, Australia
Post
by skunk » Thu Dec 10, 2009 2:54 pm
Create an XYBarChart
Use an instance of org.jfree.chart.renderer.xy.StackedXYBarRenderer as the renderer
You dataset will be an instance of org.jfree.data.xy.IntervalXYDataset -- this dataset allows you to specify the start and end X values which allows for different widths of each bar
-
lifeline2
- Posts: 11
- Joined: Wed Oct 21, 2009 10:04 am
- antibot: No, of course not.
Post
by lifeline2 » Fri Dec 11, 2009 11:14 am
skunk wrote:Create an XYBarChart
Use an instance of org.jfree.chart.renderer.xy.StackedXYBarRenderer as the renderer
You dataset will be an instance of org.jfree.data.xy.IntervalXYDataset -- this dataset allows you to specify the start and end X values which allows for different widths of each bar
Hi Skunk thanks for the reply.. Seems I am struggling with my plot. could you guide me for a demo program ?
Advance thanks..
-
lifeline2
- Posts: 11
- Joined: Wed Oct 21, 2009 10:04 am
- antibot: No, of course not.
Post
by lifeline2 » Wed Dec 16, 2009 10:44 am
lifeline2 wrote:skunk wrote:Create an XYBarChart
Use an instance of org.jfree.chart.renderer.xy.StackedXYBarRenderer as the renderer
You dataset will be an instance of org.jfree.data.xy.IntervalXYDataset -- this dataset allows you to specify the start and end X values which allows for different widths of each bar
Hi Skunk thanks for the reply.. Seems I am struggling with my plot. could you guide me for a demo program ?
Advance thanks..
Being done..through jfreechart forum only..