Search found 5 matches

by samtuen
Fri Aug 15, 2008 1:44 pm
Forum: JFreeChart
Topic: How to change font of legend in bar chart?
Replies: 5
Views: 16872

Hi david,

you're right. Thank you!

Hi leyla,

try to change

Code: Select all

LegendTitle legend = new LegendTitle(plot.getRenderer()); 
by samtuen
Thu Aug 14, 2008 11:01 am
Forum: JFreeChart
Topic: How to change font of legend in bar chart?
Replies: 5
Views: 16872

hi kruthin,

there isn't the class StandardLegend. I can not found it in API.
I use the following code:

Code: Select all

LegendTitle legend = chart.getLegend();
Font labelFont = new Font("Arial", Font.BOLD, 12);
legend.setItemFont(labelFont);
It appears NullPointerException. Do you know why?
by samtuen
Mon Jul 07, 2008 4:28 pm
Forum: JFreeChart
Topic: how do i print categoryitem labels in allternative lines....
Replies: 7
Views: 11774

Hi avanidhar,

could it be, that you mean y-axis (... an additional axis on the right side of the chart ...)
by samtuen
Mon Jul 07, 2008 11:43 am
Forum: JFreeChart
Topic: how do i print categoryitem labels in allternative lines....
Replies: 7
Views: 11774

Hi Sreehari Ojili,

thank you for your reply. With the method

Code: Select all

categoryAxis.setMaximumCategoryLabelLines(lines)
overlapping can be avoided (the text break in line 2) , but I want that the category texts are displayed alternate on 2 lines. Can you do it?
by samtuen
Mon Jun 30, 2008 2:19 pm
Forum: JFreeChart
Topic: how do i print categoryitem labels in allternative lines....
Replies: 7
Views: 11774

Hi sreehari.ojili,

did you solve the problem? If yes, can u tell me, how to do it. I thanks you in advance.

I use category line chart. Because the category text is too long, so i want that they are displayed alternate in 2 lines.