Hi,
1> Is it possible to get stacked horizontal bar instead of single color horizontal bar with intervals in Gantt chart? Can somebody explain how to do it?
2> How do I add null values in GanttSeries?
eg. I have following procedure to create dataset
private IntervalCategoryDataset createDataset() {
// tasks...
Object task1 = new String("BusinessPlan");
Object task2 = new String("CompetitiveMatrix");
GanttSeries s1 = new GanttSeries("Approved");
s1.add(task1, new TimeAllocation(date( 15, Calendar.JANUARY, 2002), date(15, Calendar.JUNE, 2002)));
s1.add(task2, null,null); // This gives error - I do not want to show task2 for S1
GanttSeries s2 = new GanttSeries("Initiated");
s2.add(task1, new TimeAllocation(date( 0, Calendar.JANUARY, 2002), date(0, Calendar.JANUARY, 2002)));
s2.add(task2, new TimeAllocation(date( 0, Calendar.JANUARY, 2002), date(0, Calendar.JANUARY, 2002)));
GanttSeriesCollection collection = new GanttSeriesCollection();
collection.add(s1);
collection.add(s2);
return collection;
}
Thanks in advance.
gantt chart
Re: gantt chart
Geetanjali wrote:
> Hi,
> 1> Is it possible to get stacked horizontal bar instead of
> single color horizontal bar with intervals in Gantt chart?
> Can somebody explain how to do it?
No. But a developer (Brent Roman) has sent me some code to add multiple intervals for each task in a Gantt chart. I haven't looked at the code yet, but if you want to try it out, I'm just uploading it now to:
http://www.object-refinery.com/jfreechart/jbuild6.jar
The jar file contains source code.
> 2> How do I add null values in GanttSeries?
> eg. I have following procedure to create dataset
> private IntervalCategoryDataset createDataset() {
> // tasks...
> Object task1 = new String("BusinessPlan");
> Object task2 = new String("CompetitiveMatrix");
>
> GanttSeries s1 = new GanttSeries("Approved");
> s1.add(task1, new TimeAllocation(date( 15,
> Calendar.JANUARY, 2002), date(15, Calendar.JUNE,
> 2002)));
> s1.add(task2, null,null); // This gives error - I do
> not want to show task2 for S1
>
> GanttSeries s2 = new GanttSeries("Initiated");
> s2.add(task1, new TimeAllocation(date( 0,
> Calendar.JANUARY, 2002), date(0, Calendar.JANUARY,
> 2002)));
> s2.add(task2, new TimeAllocation(date( 0,
> Calendar.JANUARY, 2002), date(0, Calendar.JANUARY,
> 2002)));
>
> GanttSeriesCollection collection = new
> GanttSeriesCollection();
> collection.add(s1);
> collection.add(s2);
>
> return collection;
>
> }
I think some work needs to be done to handle null values in a sensible way.
Regards,
DG.
> Hi,
> 1> Is it possible to get stacked horizontal bar instead of
> single color horizontal bar with intervals in Gantt chart?
> Can somebody explain how to do it?
No. But a developer (Brent Roman) has sent me some code to add multiple intervals for each task in a Gantt chart. I haven't looked at the code yet, but if you want to try it out, I'm just uploading it now to:
http://www.object-refinery.com/jfreechart/jbuild6.jar
The jar file contains source code.
> 2> How do I add null values in GanttSeries?
> eg. I have following procedure to create dataset
> private IntervalCategoryDataset createDataset() {
> // tasks...
> Object task1 = new String("BusinessPlan");
> Object task2 = new String("CompetitiveMatrix");
>
> GanttSeries s1 = new GanttSeries("Approved");
> s1.add(task1, new TimeAllocation(date( 15,
> Calendar.JANUARY, 2002), date(15, Calendar.JUNE,
> 2002)));
> s1.add(task2, null,null); // This gives error - I do
> not want to show task2 for S1
>
> GanttSeries s2 = new GanttSeries("Initiated");
> s2.add(task1, new TimeAllocation(date( 0,
> Calendar.JANUARY, 2002), date(0, Calendar.JANUARY,
> 2002)));
> s2.add(task2, new TimeAllocation(date( 0,
> Calendar.JANUARY, 2002), date(0, Calendar.JANUARY,
> 2002)));
>
> GanttSeriesCollection collection = new
> GanttSeriesCollection();
> collection.add(s1);
> collection.add(s2);
>
> return collection;
>
> }
I think some work needs to be done to handle null values in a sensible way.
Regards,
DG.
Re: gantt chart
Hi David,
Per the jbuild6.jar file, I'm getting a java/class file definition conflict when importing the jbuild6 jar file into my visual age environment. I was wondering if youwere able to compile the source without a hitch.
Error message when importing jar file into VA 4.0 -
"Add failed: A member type CombinedDataset$DatasetInfo in com.jrefinery.data(7/12/2002 5:37:56 PM) is defined by a .java and a .class file."
Regards,
Manny
Per the jbuild6.jar file, I'm getting a java/class file definition conflict when importing the jbuild6 jar file into my visual age environment. I was wondering if youwere able to compile the source without a hitch.
Error message when importing jar file into VA 4.0 -
"Add failed: A member type CombinedDataset$DatasetInfo in com.jrefinery.data(7/12/2002 5:37:56 PM) is defined by a .java and a .class file."
Regards,
Manny