I am currently facing a challenge with displaying multiple charts using the angular-charts.js framework. The issue is that I require all the charts to have the same scale, but each chart currently has its own scale based on the displayed data. Unfortunately, I cannot predict the data beforehand, so I am looking for a solution that involves a Callback function...
Is there any way to achieve this?
Working with 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 function calculates Data for each individual chart based on index number