Chartjs-Auto center ticks and values on graph when there's only one with chart.js

0👍

got it:

const options = {
     scales: {
        xAxes: [
           {
              offset: true, // <-- THIS
              ticks: { fontColor: "rgba(10, 31, 68, 1)", fontStyle: "bold" }
           }
        ],        
     }
  };

Leave a comment