How to change Gantt chart sub task color?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
nayan
Posts: 4
Joined: Tue Mar 15, 2005 12:56 pm
Location: india
Contact:

How to change Gantt chart sub task color?

Post by nayan » Mon Mar 21, 2005 10:45 am

hi,,,

HOw can i change color of Gantt chart sub task ....


by
nayan

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 » Mon Mar 21, 2005 11:40 pm

It isn't supported, you would need to customise the renderer to do this.
David Gilbert
JFreeChart Project Leader

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

nayan
Posts: 4
Joined: Tue Mar 15, 2005 12:56 pm
Location: india
Contact:

Which part? in jfree library

Post by nayan » Tue Mar 22, 2005 10:48 am

sir,


YOu tell me that which part of code i.e. which *.java file i need to change

ev
Posts: 11
Joined: Fri Jan 28, 2005 10:39 am
Location: Stuttgart (DE)

GanttRenderer

Post by ev » Tue Mar 22, 2005 11:32 am

try write and use xxxGanttRenderer extends GanttRenderer ...

GanttRenderer has 2 Paints, and you need more as 2 ...

/** The paint for displaying the percentage complete. */
private Paint completePaint;

/** The paint for displaying the incomplete part of a task. */
private Paint incompletePaint;

Locked