This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes JFreechart Item Data Labels are Not Rotating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "JFreechart Item Data Labels are Not Rotating" Watch "JFreechart Item Data Labels are Not Rotating" New topic
Author

JFreechart Item Data Labels are Not Rotating

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1439
    
    1
Can someone help me figure out why the following will not produce a chart where the data labels are rotated 45 degrees. They appear to be in the default position.

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1439
    
    1
I could still use some help on this issue.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

From the API documentation:
The API documentation wrote:angle - the rotation angle (in radians)


Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1439
    
    1
Paul Clapham wrote:From the API documentation:
The API documentation wrote:angle - the rotation angle (in radians)




Changing the value of the last parameter to a smaller number that would be more realistic(4) does not seem to make any difference. It is like the rotation code is being ignored.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Even 4 isn't realistic for a number which is in radians. You seemed to be assuming that "45.0" would mean 45 degrees. It doesn't.
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1439
    
    1
Paul Clapham wrote:Even 4 isn't realistic for a number which is in radians. You seemed to be assuming that "45.0" would mean 45 degrees. It doesn't.


I changed the value = 0.5 and it still remains un-rotated.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I read the documentation but couldn't understand it. What is this "rotation anchor point" and how does it work?
 
 
subject: JFreechart Item Data Labels are Not Rotating