I'm trying to place a chart using Chart.js on a row with span6
. Chart.js uses <canvas>
and needs a height
and width
property. I've set the height
to what I need and the width
to 100% but it doesn't stretch to fill the div which is set to span6
.
Any ideas?
<div class="row" style="padding-top: 20px;">
<div class="span6">
<div id="daily">
<canvas id="daily-chart" width="100%" height="400px"></canvas>
</div>
</div>
</div>