
Label size?
Label size?
Can you help me. I need a bigger size for my Label


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can control this with the width ratio setting in the CategoryLabelPosition class. But there was a bug in a fairly recent version that caused a problem with this...which version are you using?
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


I have the same problem too
this is urgent I have the same probelm too can you provide us with more example
I use version 1.0.0! too

I use version 1.0.0! too
ok so gehts
JFreeChart chart = ChartFactory.createBarChart(...)
CategoryPlot plot = chart.getCategoryPlot();
CategoryAxis axis = plot.getDomainAxis();
axis.setMaximumCategoryLabelWidthRatio(50);
Mann kann zwar jetzt noch vorher berechnen lassen wie groß das Label ist oder so aber 50 reicht mir erst mal
CategoryPlot plot = chart.getCategoryPlot();
CategoryAxis axis = plot.getDomainAxis();
axis.setMaximumCategoryLabelWidthRatio(50);
Mann kann zwar jetzt noch vorher berechnen lassen wie groß das Label ist oder so aber 50 reicht mir erst mal
