Label size?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Rahan
Posts: 12
Joined: Fri Jul 08, 2005 3:30 pm

Label size?

Post by Rahan » Fri Sep 23, 2005 5:28 pm

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Mon Sep 26, 2005 10:24 am

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

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Rahan
Posts: 12
Joined: Fri Jul 08, 2005 3:30 pm

Post by Rahan » Mon Sep 26, 2005 3:09 pm

david.gilbert wrote: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?
I use version 1.0.0!
Can you give me an example?

kianfatt1982

I have the same problem too

Post by kianfatt1982 » Thu Sep 29, 2005 10:13 am

this is urgent I have the same probelm too can you provide us with more example :)

I use version 1.0.0! too

Rahan
Posts: 12
Joined: Fri Jul 08, 2005 3:30 pm

ok so gehts

Post by Rahan » Fri Oct 28, 2005 6:03 pm

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 :D

Locked