79644512

Date: 2025-05-29 19:28:41
Score: 1.5
Natty:
Report link

Thanks @kikon for the answer (upvoted it). The final resolution as he mentioned was the ticks still having space to e drawn even though we were not drawing them.

scales.y.grid.drawticks = false was the final option that did it for us.

Thanks!

scales: {
    x: {
      stacked: true,
      min: 0,
      max: total.value,
      beginAtZero: true,
      grid: { display: false, drawBorder: false },
      ticks: { display: false },
      border: { display: false },
      barPercentage: 1.0,
      categoryPercentage: 1.0,
    },
    y: {
      stacked: true,
      beginAtZero: true,
      grid: { display: false, drawBorder: false, drawTicks: false },
      ticks: { display: false },
      border: { display: false },
      barPercentage: 1.0,
      categoryPercentage: 1.0,
    },
  },
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): upvote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @kikon
  • Self-answer (0.5):
Posted by: djneely