Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Vertical orientation in char labels

Open mazzimi opened this issue 10 years ago • 1 comments

Hello,

I'm using this code: ctx.fillText(points.value, points.x + 15, points.y - 3); to show the values for each point on a line chart.

is it possible to show these labels with a vertival text orientation, so that the text willnot overlap in case there are many values in the chart?

Thank you.

mazzimi avatar Mar 02 '16 10:03 mazzimi

@mazzimi you're either going to need to rotate the canvas and draw the text or fill each character on it's own line. Unfortunately the canvas has no built in way to do this.

etimberg avatar Mar 04 '16 13:03 etimberg