Chartjs-How to correctly use "yAxisID" for a Chart.js

0👍

Try this:

scales: {
      Y: 
        {
          position: 'left',
          id: 'y',
          display: true,
        },

        Y1{
          display: 'auto',
           id: 'y1',
          position: 'right',         
          grid: {
            drawOnChartArea: false,
          }
                   
        }   
    },

Leave a comment