From: Evert Timberg Date: Sat, 23 Apr 2016 14:45:23 +0000 (-0400) Subject: Fix #2324 X-Git-Tag: 2.1.0~51 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d583a7bf192681124604e6dc6a0a62f467ee0c81;p=thirdparty%2FChart.js.git Fix #2324 --- diff --git a/docs/06-Pie-Doughnut-Chart.md b/docs/06-Pie-Doughnut-Chart.md index b1fef2288..0919874f1 100644 --- a/docs/06-Pie-Doughnut-Chart.md +++ b/docs/06-Pie-Doughnut-Chart.md @@ -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