Reputation: 1136
I'm trying to replicate the rotated labels example at http://www.jqplot.com/tests/rotated-tick-labels.php using:
axesDefaults: {
tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
tickOptions: {
angle: -30,
fontSize: '11pt'
}
},
But I can't get the rotated labels... I think I've included all the relevant js files...
The "fontSize" option works as expected.
Upvotes: 1
Views: 1750
Reputation: 2335
Your jqplot files aren't correct. Try to include those instead :
You need to increase div height too in order to see ticks well fitted :
<div id="chart2" style="height:400px;width:300px"></div>
Please see working example here
Upvotes: 1