Hello all,
I am working with the Gantt charts and was wondering if the task labels could be drawn in different colors. Also is it possible to insert an icon beside the text?
Thanks,
Matt
Colored text labels
Re: Colored text labels
Hi Matt,
The task labels are drawn using category axes, which at present don't offer the features you mentioned. But you ought to be able to create a custom category axis that does what you want. Just subclass VerticalCategoryAxis and override the draw(...) method. Depending on what you do in that method, you might also need to override the reserveAxisArea() and reserveWidth() methods.
Regards,
DG.
The task labels are drawn using category axes, which at present don't offer the features you mentioned. But you ought to be able to create a custom category axis that does what you want. Just subclass VerticalCategoryAxis and override the draw(...) method. Depending on what you do in that method, you might also need to override the reserveAxisArea() and reserveWidth() methods.
Regards,
DG.
Re: Colored text labels
Thanks a lot. I will post the code to this thread once I have it working.
Tip o' the cap to ye!
Matt
Tip o' the cap to ye!
Matt