This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread 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 Head First Android this week in the Android 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: 1533
    
    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: 1533
    
    1
I could still use some help on this issue.
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19691
    
  10

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


Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1533
    
    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
Sheriff

Joined: Oct 14, 2005
Posts: 19691
    
  10

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: 1533
    
    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
Sheriff

Joined: Oct 14, 2005
Posts: 19691
    
  10

I read the documentation but couldn't understand it. What is this "rotation anchor point" and how does it work?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JFreechart Item Data Labels are Not Rotating
 
It's not a secret anymore!