mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Update 07-Pie-Doughnut-Chart.md
Fixed example in pie chart docs.
This commit is contained in:
parent
ecc35c527b
commit
6255131156
@ -102,9 +102,11 @@ For example, we could have a doughnut chart that animates by scaling out from th
|
|||||||
```javascript
|
```javascript
|
||||||
new Chart(ctx,{
|
new Chart(ctx,{
|
||||||
type:"doughnut",
|
type:"doughnut",
|
||||||
|
options: {
|
||||||
animation:{
|
animation:{
|
||||||
animateScale:true
|
animateScale:true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
// This will create a chart with all of the default options, merged from the global config,
|
// This will create a chart with all of the default options, merged from the global config,
|
||||||
// and the Doughnut chart defaults but this particular instance will have `animateScale` set to `true`.
|
// and the Doughnut chart defaults but this particular instance will have `animateScale` set to `true`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user