I'm trying to create a radar chart in angularjs.
With some tutorials I managed to create some charts but they all don't start with 0.
Depending on what values I load into the radar-data, the axes are different but never start with 0.
Here I uploaded a picture of my charts with different values.
This is how I create the chart in my angular app:
let values = crossfilterService.calculateRadar();
$scope.options = {
scale: {
beginAtZero: true,
min: 0
}
};
$scope.chartVisible = true;
$scope.labels = values[0]
$scope.data = [values[1]];
I managed to solve it thanks to this answer
All I had to do is change the chart options to this:
$scope.options = {
scale: {
ticks: {
min: 0,
//max: 100,
//stepSize: 10
}
}
};
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.