]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update 05-Pie-Doughnut-Chart.md
authorChristopher Weiss <cmweiss@gmail.com>
Mon, 26 Jan 2015 21:33:24 +0000 (16:33 -0500)
committerChristopher Weiss <cmweiss@gmail.com>
Mon, 26 Jan 2015 21:33:24 +0000 (16:33 -0500)
docs/05-Pie-Doughnut-Chart.md

index 9c2b8a777ce70f140bd44aaca00638a69ffd7793..84bc08a81332d690412881b3bcb06d84fee7968f 100644 (file)
@@ -55,7 +55,7 @@ var data = [
 ]
 ```
 
-For a pie chart, you must pass in an array of objects with a value and a color property. The value attribute should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each. The color attribute should be a string. Similar to CSS, for this string you can use HEX notation, RGB, RGBA or HSL.
+For a pie chart, you must pass in an array of objects with a value and an optional color property. The value attribute should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each. The color attribute should be a string. Similar to CSS, for this string you can use HEX notation, RGB, RGBA or HSL.
 
 ### Chart options
 
@@ -155,4 +155,4 @@ Calling `removeData(index)` on your Chart instance will remove segment at that p
 ```javascript
 myDoughnutChart.removeData();
 // Other segments will update to fill the empty space left.
-```
\ No newline at end of file
+```