File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week 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: 1475
    
    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: 1475
    
    1
I could still use some help on this issue.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18860
    
    8

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


Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1475
    
    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: 18860
    
    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: 1475
    
    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: 18860
    
    8

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