NumberAxis Problem

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
gravitex
Posts: 3
Joined: Wed Jun 28, 2006 8:12 am

NumberAxis Problem

Post by gravitex » Wed Jun 28, 2006 9:26 am

Hello.

I have a chart like this :


sdfkjhjhsdf |++++++++++++++++++++
|
agdkjdf |+++++++++
|
sdklskkdkkdkff |+++++++++++++++
-----------------------------------------------
0% 50% 100%

In some cases, when the text items (sdfkjhjhsdf... etc) on the left get too long, the are displayed as something like sdfkjh... . How can i stop jfreechart doing this ?

thx,
stefan

pmarsollier
Posts: 49
Joined: Thu Jul 08, 2004 8:54 am
Location: France

Post by pmarsollier » Wed Jun 28, 2006 10:37 am

what graph do use use exactly ?

ellispses is done by the Jcommon TextUtilities.createTextBlock() function.

so find which of your axis does the call to it and override it with a greter width ...
for CategoryAxis, the key is in the createLabel() ....

Locked