gantt chart like stacked horizontal

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

gantt chart like stacked horizontal

Post by Francesco Mascarello » Wed Dec 18, 2002 7:54 pm

Hi!

I’m reading the complete documentation of JFreeChart, it is new for me.

I like to create a Gantt chart with the bar in the horizontal position ( like the horizontal stacked bar chart), or a horizontal stacked bar chart with the timeline in the horizontal axis.

Any idea?

Thanks,
Francesco Mascarello.

David Gilbert

Re: gantt chart like stacked horizontal

Post by David Gilbert » Wed Dec 18, 2002 8:08 pm

Hi Francesco,

There is a program called GanttDemo.java in the com.jrefinery.chart.demo package. Give that a try...

Regards,

Dave Gilbert

Francesco Mascarello

Re: gantt chart like stacked horizontal

Post by Francesco Mascarello » Thu Dec 19, 2002 3:49 pm

Hi Dave,
I've tried a lot with GanttDemo without result.
I don' t know how to change the code for display the series in the same line, now the series are displayed under the previous one.
With a lot of series is necessary to reduce the number of categories.


Any other idea?
Thanks,
Francesco Mascarello.



P.s.:

I' ve try the StackedHorizontalBarChart, but is not the good solution because I need to create also some empty bar; the code is:


public static JFreeChart createStackedHorizontalBarChart ....
....

DateAxis rangeAxis = new HorizontalDateAxis(rangeAxisLabel);
//ValueAxis rangeAxis = new HorizontalNumberAxis(rangeAxisLabel);

(In the data is necessary to put the long value of the Date() )

Locked