Chartjs-HTML5 Canvas expanding the draw area after drawing

0👍

Solved it by saving the first canvas as a base64 string, with two variables for its width and height. Added 200px to the height and created a new canvas with the .png created from the base64 and placed on the new canvas offsetting its y coordinates by 100px.

Using the padding built in to chartJS only squashed my graphs height causing it to be illegible.

Leave a comment