Chartjs-How to rotate a linear graphic in chart.js?

0👍

To rotate the entire chart element, as in your image, you can use the CSS rotate transform function:

#chart-zone {
  transform: rotate(90deg);
}

Note that the chart might get clipped so you would need to set the bounding size (height/width) of your container appropriately.

Leave a comment