Why is there a 1px gap between the background fill and the canvas edge in my Chart.js line chart?
I’m using Chart.js and react-to create a line chart, but I’ve noticed a small issue with the background fill. The line chart extends to the edges of the canvas as expected, but the background fill leaves a tiny gap of about 1px from the edge on all sides (top, bottom, left, and right). It almost looks like there is a 1px padding, but I haven’t set any padding properties. How can I ensure the background fill extends all the way to the edges of the canvas?
I have tried explicitly adding padding as 0. Changing beginAtZero
values and much more but with no luck.
React Chart Js 2 , x axes value not my value
i try formatting my x axis value in chart js