]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix #2324
authorEvert Timberg <evert.timberg+github@gmail.com>
Sat, 23 Apr 2016 14:45:23 +0000 (10:45 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Sat, 23 Apr 2016 14:45:23 +0000 (10:45 -0400)
docs/06-Pie-Doughnut-Chart.md

index b1fef22887b7d5565b3710fdbdbcb3683b99f5e8..0919874f10273b871c4cb510c1bd0be8f1c0dd65 100644 (file)
@@ -66,7 +66,7 @@ var data = {
 };
 ```
 
-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.
+For a pie chart, datasets need to contain an array of data points. The data points should be a number, Chart.js will total all of the numbers and calculate the relative proportion of each. You can also add an array of background colors. The color attributes should be a string. Similar to CSS, for this string you can use HEX notation, RGB, RGBA or HSL.
 
 ### Chart options