[Chartjs]-Angular chart.js not resizing (shinking) in a flexbox

6๐Ÿ‘

I found the solution here

Flex items not shrinking when window gets smaller

min-width: 0;

on the items ๐Ÿ™‚

3๐Ÿ‘

That did not work for my linechart, I had to use :

canvas
{
    width: 100% !important;
}

from https://github.com/jtblin/angular-chart.js/issues/614

Leave a comment