Chartjs-Responsive canvas extends beyond div

3👍

The problem stems from the fact that ChartJS doesn’t take into account that the display-box on your elements is border-box. It is sizing the chart to the full width of the div without taking into account the padding.

In order to fix it, just put a div without any bootstrap column classes inside your column and target that with ChartJS.

Leave a comment