drawing horizotal line on gantt chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Aniket_kedari
Posts: 17
Joined: Tue Jun 24, 2008 3:03 am

drawing horizotal line on gantt chart

Post by Aniket_kedari » Wed Aug 13, 2008 7:38 am

Hi all,
I am very new to JFreeChart so you may find the question to be childish :lol:
I am developing a normal gantt chart with different tasks. To seperate one task clearly from other I want to draw a horizontal line between two tasks.
I tried to use

Code: Select all

public CategoryLineAnnotation(java.lang.Comparable category1,
                              double value1,
                              java.lang.Comparable category2,
                              double value2,
                              java.awt.Paint paint,
                              java.awt.Stroke stroke)
But I failed as I dont what first four parameters mean.
Actually my domain axis represents time so category1 and category2 will be time values. Y-axis consists of task name I can not use them as value of parameters value1 and value2.
Please please please help me.
Last edited by Aniket_kedari on Thu Aug 14, 2008 2:42 am, edited 1 time in total.

Aniket_kedari
Posts: 17
Joined: Tue Jun 24, 2008 3:03 am

additional information

Post by Aniket_kedari » Wed Aug 13, 2008 7:42 am

I am using a Gantt chart so x-axis has got time values and Y-axis has got task names.
Last edited by Aniket_kedari on Thu Aug 14, 2008 2:42 am, edited 1 time in total.

Aniket_kedari
Posts: 17
Joined: Tue Jun 24, 2008 3:03 am

no replies

Post by Aniket_kedari » Thu Aug 14, 2008 2:25 am

Hey all,
Isnt there any way to draw the line on gantt chart?
Or is the solution so obvious that there is no reply.
I think it must be very easy but because of some silly mistakes I am not getting it.

Locked