Chartjs-ChartJS keeps resizing canvas to the default size

1πŸ‘

βœ…

The styles you apply via css are lost when you getContext. You should try using prop too/instead.

canvas.prop({ width: 700, height: 400 });

Leave a comment