• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFreechart Item Data Labels are Not Rotating

 
Steve Dyke
Ranch Hand
Posts: 1621
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1621
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could still use some help on this issue.
 
Paul Clapham
Sheriff
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the API documentation:
The API documentation wrote:angle - the rotation angle (in radians)


 
Steve Dyke
Ranch Hand
Posts: 1621
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1621
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic