Chartjs-Chartjs: I only want left and right padding in pie chart

1👍

Set maintainAspectRatio to false.

const options = {
  maintainAspectRatio: false,
  layout: {
    padding: {
      left: 100,
      right: 100
    }
  }
}

Leave a comment