Chartjs-In Chart.js 3.8 (latest release) how to show labels on axis

0๐Ÿ‘

i found the solution by myself ๐Ÿ™‚

  const config = {
    type: 'line',
    data: data,
    options: {
          scales: {
            x: {
              title: {
                display: true,
                text: 'Date'
              },
            },
            y: {
              title: {
                display: true,
                text: 'value'
              }
            }
          }
        }
  };

Leave a comment