Search found 7 matches

by padhu
Mon Jun 13, 2005 3:58 pm
Forum: JFreeChart
Topic: Bar chart
Replies: 5
Views: 9235

Extend BarRenderer and override drawItem. Set color for each item before calling super.drawItem.


-- pady
by padhu
Fri Jun 10, 2005 8:53 pm
Forum: JFreeChart
Topic: Change the Category Color of a barchart
Replies: 2
Views: 4988

I created only one category, added all the tasks, created a custom bar renderer ( which set a color based on the item label ) and set this renderer to the plot. Here is the sample code for the renderer ( adapt this code to BarRenderer ): import org.jfree.chart.renderer.category.*; import java.awt.*;...
by padhu
Fri Jun 10, 2005 8:50 pm
Forum: JFreeChart
Topic: How to get chart like this
Replies: 5
Views: 8801

I posted a patch for category axis that will allow setting different fonts and paints by category. I am not sure how to get the multiple bars for the same task. Maybe as David said, the Gantt dataset supports this feature.

-- pady
by padhu
Thu Jun 09, 2005 8:39 pm
Forum: JFreeChart
Topic: Bar Chart label issue
Replies: 3
Views: 6533

I created only one category, added all the tasks, created a custom bar renderer ( which set a color based on the item label ) and set this renderer to the plot. Here is the sample code for the renderer ( this is for GanttRenderer but the same code should work for BarRenderer also ). import org.jfree...
by padhu
Thu Jun 09, 2005 6:40 pm
Forum: JFreeChart
Topic: Added support for individual tick label font and paint...
Replies: 2
Views: 3983

Posted in SourceForge...

Posted in Sourcefoge.


Thanks

-- pady
by padhu
Thu Jun 09, 2005 1:13 pm
Forum: JFreeChart
Topic: Added support for individual tick label font and paint...
Replies: 2
Views: 3983

Added support for individual tick label font and paint...

I have extended the CategoryAxis class to add support to setting font and paint to individual tick labels. The new methods are setTickLabelFont(Comparable category, Font font) setTickLabelPaint(Comparable category, Paint paint) If no font or paint is found for the category, the default font/paint is...
by padhu
Tue Jun 07, 2005 8:36 pm
Forum: JFreeChart
Topic: Annotation for 2 or more tasks in bar chart...
Replies: 0
Views: 1929

Annotation for 2 or more tasks in bar chart...

I would like to draw a box around a couple of bars in a bar chart and add a note ( like one can do in a UML tool or even in Word ). I know one can add annotations for a sinle item. Can an annotation be made to point to a group of items ?