Legend visiblity

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vance_arik

Legend visiblity

Post by vance_arik » Sun May 29, 2005 3:01 pm

Hi all,

I have a problem which I don't know its reason.
I'm using jcommon-0.9.6, jfreechart-0.9.21.
When I'm setting the legend's visibility to false (in the JFreeChart object), I cannot see the category axis as well, is it a bug? or am I doing something wrong?

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 May 30, 2005 6:11 am

It's not a problem that I've seen before. Do you know if it still occurs with later releases? Can you post a small sample app that reproduces the problem?
David Gilbert
JFreeChart Project Leader

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

arik
Posts: 12
Joined: Mon Feb 21, 2005 7:20 pm

Post by arik » Mon May 30, 2005 8:50 am

I didn't try a newer version, I'm in a middle of a major release.
I'll try to post a piece of a code as soon as I can.

Guest

Post by Guest » Mon May 30, 2005 3:31 pm

Ok, I have figured this out.
I think it was my fault, I set the plot(category) insets to 0 and the legend flag to false. It was long time ago :) Now, I had to make the category axis visible and I couldn't because of the insets.
In short when the legend was visible it overrides the insets and I could see the categry axis as well, though the legend was over the labels.
Sorry about that.

P.S.
David I just wanted you to know that you are the man!!!
I havn't seen that kind of (fast) response even in the HTTP :-)

arik
Posts: 12
Joined: Mon Feb 21, 2005 7:20 pm

Post by arik » Mon May 30, 2005 3:32 pm

Oops, I forgot to login, it's me Arik.

Locked