Checklist
Affected version
2.5.0
Steps to reproduce the bug
For the latest spec see: https://www.chartjs.org/docs/latest/charts/doughnut.html#config-options
Expected behavior
example expected api:
PieOptions pieOptions = new PieOptions()
.setResponsive(true)
.setMaintainAspectRatio(true)
.setCutout("50%")
.setAnimation(new PieAnimation()
.setAnimateRotate(true)
.setAnimateScale(false))
);
Generates:
"options": {
"responsive": true,
"maintainAspectRatio": true,
"cutout": "50%",
"animation": {
"animateRotate": true,
"animateScale": false
}
Actual behavior
example current api:
PieOptions pieOptions = new PieOptions()
.setResponsive(true)
.setMaintainAspectRatio(true)
.setCutoutPercentage(50)
.setAnimations(new Animations<>(AnimationType.X, new PieAnimation()
.setAnimateRotate(true)
.setAnimateScale(false))
);
Generates:
"options": {
"responsive": true,
"maintainAspectRatio": true,
"cutoutPercentage": 50,
"animations":{"animationTypes":{"x":{"animateRotate":true,"animateScale":false}},"x":{"animateRotate":true,"animateScale":false}}
}
Additional information
No response
Checklist
Affected version
2.5.0
Steps to reproduce the bug
For the latest spec see: https://www.chartjs.org/docs/latest/charts/doughnut.html#config-options
Expected behavior
example expected api:
Generates:
Actual behavior
example current api:
Generates:
Additional information
No response