Time Bar Chart (multiple) NOT OVER or ON each other

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Zane

Time Bar Chart (multiple) NOT OVER or ON each other

Post by Zane » Thu Jun 09, 2005 11:47 am

I am wondering if it is possible to make time series bar chart that has for examle
Regular period like Day.class and
it is not stacked or "overlaid".

Because I would like time bar chart like it is made in Excel.

With StackedXYBarRenderer() I get stacked bar and
with XYBarRenderer() I get bars that are drawn one on another (if colors are transparent you can see coverings), both with TimeTableXYDataset.
It is the same with TimeSeriesCollection dataset.

So I would like with three series with values in one Day that they are drawn beside each other and NOT OVER or ON.

Zane
Posts: 6
Joined: Thu Jun 09, 2005 12:11 pm

done it

Post by Zane » Thu Jun 09, 2005 4:07 pm

I have done it.

I wrote new class DynamicRegularTimePeriod that extends RegularTimePeriod.

It would be good that this would be in JfreeChart source.
Zane

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 » Thu Jun 09, 2005 4:09 pm

I think this is a presentation issue, better dealt with by the renderer than by changing your dataset. Someone contributed a renderer (ClusteredXYBarRenderer) that does what you want (I think).
David Gilbert
JFreeChart Project Leader

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

Zane
Posts: 6
Joined: Thu Jun 09, 2005 12:11 pm

Post by Zane » Fri Jun 10, 2005 8:34 am

David you are right.
The ClusteredXYBarRenderer is the right solution.
Zane

Locked