Search found 5 matches

by svenn
Fri Oct 22, 2010 5:15 pm
Forum: JFreeChart
Topic: iReport x jFreeChart
Replies: 3
Views: 3924

Re: iReport x jFreeChart

lelopieri sorry but I don't understand your question?

JRAbstractChartCustomizer is a Jasper Report class that allows you to get the chart object and change it's properties.
by svenn
Thu Oct 21, 2010 6:01 pm
Forum: JFreeChart
Topic: iReport x jFreeChart
Replies: 3
Views: 3924

Re: iReport x jFreeChart

Are you using the same version of JFreeChart within iReport to create your chart as the one created straight from the library? If you are another option is to create your own class that extends JRAbstractChartCustomizer. You then modify the chart objcet that Jasper produces so that it looks the same...
by svenn
Tue Oct 12, 2010 8:31 pm
Forum: JFreeChart
Topic: Horiziontal Bar, largest Bar label lost
Replies: 3
Views: 3001

Re: Horiziontal Bar, largest Bar label lost

CategoryAxis categoryAxis = categoryplot.getDomainAxis();

categoryAxis.setMaximumCategoryLabelWidthRatio(some float value);
by svenn
Mon Oct 04, 2010 1:32 am
Forum: JFreeChart
Topic: Left justify multi line label on Bar Chart
Replies: 0
Views: 2373

Left justify multi line label on Bar Chart

I've set the following values in my bar chart so the y axis label values will have two lines categoryAxis.setMaximumCategoryLabelWidthRatio(25.0f); categoryAxis.setMaximumCategoryLabelLines(2); Now the problem I have is the default behavior when you do this is for the two values to be centered. I wo...
by svenn
Wed Sep 29, 2010 12:21 am
Forum: JFreeChart
Topic: Gridline color on bar chart based on range
Replies: 0
Views: 1924

Gridline color on bar chart based on range

Is it possible to render the gridlines of a bar chart with different colors based on a range of values. i.e. 0 to 20 gridline will be red 21 to 50 gridline will be orange 51+ gridline will be blue I found categoryplot.setRangeGridlinePaint(Color.red); but it sets the value for all the gridlines on t...