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.
gantt chart like stacked horizontal
Re: gantt chart like stacked horizontal
Hi Francesco,
There is a program called GanttDemo.java in the com.jrefinery.chart.demo package. Give that a try...
Regards,
Dave Gilbert
There is a program called GanttDemo.java in the com.jrefinery.chart.demo package. Give that a try...
Regards,
Dave Gilbert
Re: gantt chart like stacked horizontal
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() )
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() )