Chartjs-How to add left padding for my charts done in ChartJs and my Google Map so it is not glued to the limit of the page on the left

0👍

Just add a width to 100% and not u have a full screen map:

<div id="map_canvas" style="width:100%; height:500px"></div> 

Or if u want just move use in there margin-left: (your vaule)

0👍

try my trick, from

labels: [ 'label_a', 'label_b', 'label_c' ],

to

labels: [ '       label_a', 'label_b', 'label_c' ],

Leave a comment