Y label is not displaying

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
JfreeFan
Posts: 13
Joined: Fri Mar 23, 2007 12:11 pm

Y label is not displaying

Post by JfreeFan » Thu May 10, 2007 9:26 am

Hi All,
i have very queer problem.My chart is not displaying Y-label. snippet of code is
NumberAxis3D yAxis = new NumberAxis3D();
CategoryPlot plot = new CategoryPlot(dataset,xAxis,yAxis,line3d);
chart = new JFreeChart(title, (new Font("", Font.BOLD,
12)), plot, true);
yAxis=(NumberAxis3D)plot.getRangeAxis();

yAxis.setLabel("Time to Answer");
Ideally it should display.I m using Jfree 1.0.5.jar
Is it bug/i m doing wrong way
All suggestions are welcome!!

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 » Fri May 11, 2007 11:20 am

I tried to reproduce this, but it works fine for me. Can you post a small self-contained demo that shows the problem?
David Gilbert
JFreeChart Project Leader

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

JfreeFan
Posts: 13
Joined: Fri Mar 23, 2007 12:11 pm

Post by JfreeFan » Mon May 14, 2007 11:21 am

david.gilbert wrote:I tried to reproduce this, but it works fine for me. Can you post a small self-contained demo that shows the problem?
David,
Here is imagehttp://img242.imageshack.us/my.php?imag ... ingkq8.jpg
You will notice that Y label is not displaying where its expected to do.I am exporting to chart to SVG format.
I will post code also
chart = new JFreeChart(title, (new Font("", Font.BOLD, 12)), plot,true);

yAxis=(NumberAxis)plot.getRangeAxis();
yAxis.setLabel("Times in Milli Seconds");
Where i m doing wrong??
Thanks in advance

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 » Tue May 15, 2007 10:43 am

I believe you that the y-axis label is not showing. What I can't do right now is reproduce the problem, which is why I asked you to post a small self-contained demo that shows the problem. I don't have anything else to go on, so I can't help you.
David Gilbert
JFreeChart Project Leader

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

Locked