79673916

Date: 2025-06-20 20:26:50
Score: 0.5
Natty:
Report link

You're specifying only the y scale. Update your options to specify both the x and y scales.

options: {
  scales: {
    x: {
      beginAtZero: true,
    },
    y: {
      beginAtZero: true,
    },
  },
}

Also, put the whole code in the window.onload, to ensure the script loads before the JS executes.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: UncleBigBay