Hi im currently trying to show multiple charts with angular-charts.js framework. My problem is that i need the same scale on each chart. At the moment each chart has its own scale based upon the data displayed. I can not predict the data before the charts are rendered. So I need something like a Callback function...
Is there any solution?
Using Angular 1.6.1
EDIT:
$scope.options = {
scales: {
yAxes: [{
ticks: { min: 0, max: },
}]
}
};
Markup:
<div ng-repeat="i in getNumberOfSprints(numberOfSprints) track by $index">
<h3>
Sprint {{$index+1}}
</h3>
<div ng-controller="MyCtrl">
<canvas class="chart-bar"
chart-data="GetData($index)"
chart-dataset-override="datasetOverride" chart-options="options">
</canvas>
</div>
</div>
GetData calculates Data for each chart based on index