javascript - Chart Js - Wasting Graph Space -
does know why chart js wastes graph space? why not take full width of graph?
the graph sitting in bootstrap container > row if makes difference?
this code:
<canvas id="mostpopularproductionapps" width="100" height="150"></canvas>
javascript:
barchartcreator(prodchart, prodlabels, proddata, '# heorku addons', 'number of addons per applications'); barchartcreator: function(domlocation, labels, data, label, title) { var createdchart = new chart(domlocation, { type: 'bar', data: { labels: labels, datasets: [{ label: label, data: data, backgroundcolor: 'rgba(54, 162, 235, 0.2)', bordercolor: 'rgba(255, 255, 255, 1)', borderwidth: 1 }] }, options: { scales: { yaxes: [{ ticks: { beginatzero: true } }] }, title: { display: true, text: title } } }); return createdchart; },
Comments
Post a Comment