Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 1390
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: 1390
I could still use some help on this issue.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18115
    
    8

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


Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1390
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: 18115
    
    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: 1390
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: 18115
    
    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
 
Similar Threads
Create JFreeChart with Stacked Area and Stacked Bar Combination
Scales on Dual Axis Chart
Item Labels are Not Rotating in My jFreeChart
Displaying scalable vector graphics on ibm aix
jfreechart bar chart - show item value