mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-07 04:39:06 +02:00
93f4e6e4e8
Add functionality to give pie & doughnut datasets a weight attribute, which affects the relative thickness of the dataset when there are multiple datasets in pie & doughnut charts. The default weight of each dataset is 1, providing any other numerical value will allow the pie or doughnut dataset to be drawn with a thickness relative to its default size. For example a weight of 2 will allow the dataset to be drawn double its typical dataset thickness. Note that the weight attribute will only affect a pie or doughnut chart if there is more than one visible dataset. Using weight on a pie or doughnut dataset when there is only one dataset on the chart will have no affect. |
||
---|---|---|
.. | ||
backgroundColor | ||
borderAlign | ||
borderColor | ||
borderWidth | ||
doughnut-border-align-center.json | ||
doughnut-border-align-center.png | ||
doughnut-border-align-inner.json | ||
doughnut-border-align-inner.png | ||
doughnut-weight.json | ||
doughnut-weight.png | ||
pie-border-align-center.json | ||
pie-border-align-center.png | ||
pie-border-align-inner.json | ||
pie-border-align-inner.png | ||
pie-weight.json | ||
pie-weight.png |