Display label horizontally in x-axis
http://i.stack.imgur.com/7iT0a.png
Drawing a line chart with ChartJS 1.0.1 as above. As it shows, the label in the x-axis is not horizontal although there are enough space. How can I make it horizontal?
A side question, noticed the y label, there are 1-2px clipped. How to fix that?
- This is because space for label is calculated from distance between two x value. IMO it's good
ad 2. Suggested fix (chart.core.js): line 1543 original:
if (firstRotated + this.fontSize / 2 > this.yLabelWidth + 8){
fix
if (firstRotated + this.fontSize / 2 > this.yLabelWidth + 10){
@dany28 Can you submit a pr?
@tiaozi0912 Huzzah! The first alpha of Chart.js 2.0 has landed and should fix this issue. Check out the release and try it out! We've got a lot of momentum right now, so please help us test so we can launch 2.0 Gold by the end of the month. https://github.com/nnnick/Chart.js/releases/tag/v2.0-alpha
I'm closing this issue for now, but if you have implementation questions or find bugs, please create a jsfiddle and post the link here and we'll reopen this issue and get it fixed.