This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFreechart Item Data Labels are Not Rotating

 
Steve Dyke
Ranch Hand
Posts: 1602
1
  • 0
  • 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: 1602
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could still use some help on this issue.
 
Paul Clapham
Sheriff
Pie
Posts: 20185
26
MySQL Database
  • 0
  • 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: 1602
1
  • 0
  • 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
Pie
Posts: 20185
26
MySQL Database
  • 0
  • 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: 1602
1
  • 0
  • 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
Pie
Posts: 20185
26
MySQL Database
  • 0
  • 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?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic