wood burning stoves 2.0*
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 Android Security Essentials Live Lessons 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: 1394
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: 1394
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: 1394
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: 1394
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JFreechart Item Data Labels are Not Rotating
 
Similar Threads
Displaying scalable vector graphics on ibm aix
Create JFreeChart with Stacked Area and Stacked Bar Combination
jfreechart bar chart - show item value
Scales on Dual Axis Chart
Item Labels are Not Rotating in My jFreeChart