Add elements.arc.angle in documentation#6491
Conversation
docs/configuration/elements.md
Outdated
|
|
||
| | Name | Type | Default | Description | ||
| | ---- | ---- | ------- | ----------- | ||
| | `angle` | `number` | `circumference / (arc count)` - for polar only | Arc angle to cover. |
There was a problem hiding this comment.
what does "for polar only" mean? That the option is available only for the polar chart or that default is circumference / (arc count) only for the polar chart? If the latter, what is the default for other chart types?
There was a problem hiding this comment.
We have two types of chart using elements.arc :
- Polar area
- Pie/Doughnut
I tried to set elements.arc.angleoption in Pie/Doughnut chart. It doesn't override the natural angles computation.
So it seems that this option is available only for polar chart, and I think it's a good thing.
There was a problem hiding this comment.
Ok. I think it might be clearer to put "for polar only" next to the option name rather than the default value. How about:
angle (polar area chart only)
There was a problem hiding this comment.
Rather than stating its for polar only, why not move it to
Lines 58 to 68 in f68b8ad
Like weight in pie/doughnut
Add elements.arc.angle in documentation
Using elements.arc.angle option can be a workaround for #4751 and make #6472 useless.
Demo here : https://jsfiddle.net/h1e78vbq/