I'm using angular-chart (and Angular, obviously) and chart.js to draw several charts on a single page. Presently, each chart takes up the entire width of the screen. I've tried many different variations to limit the width based on a ratio of "window.innerWidth", and many different structural variations. All of my efforts are ignored. It draws a perfectly fine chart, but with an unwavering width (except for changing when I expand/narrow the overall window).
Here is an excerpt of my current HTML:
<div ng-repeat="dataCenterData in dataCenterDataList">
<div ng-style="{'width': windowWidth / 2}">
<canvas id="daily-chart-{{dataCenterData.dataCenter}}"
class="chart chart-bar" chart-data="dataCenterData.data"
chart-labels="dataCenterData.labels"
chart-series="dataCenterData.series"
chart-options="dataCenterData.options"></canvas>
</div>
<div ng-style="{'width': windowWidth / 2}">
<canvas id="last30Minutes-chart-{{dataCenterData.dataCenter}}"
class="chart chart-line"
chart-data="last30MinutesDataCenterDataList[$index].data"
chart-labels="last30MinutesDataCenterDataList[$index].labels"
chart-series="last30MinutesDataCenterDataList[$index].series"
chart-options="last30MinutesDataCenterDataList[$index].options"></canvas>
</div>
</div>
Where I have "$scope.windowWidth = window.innerWidth" in my controller. I determined in my current test case, it's setting "$scope.windowWidth" to 1432.