]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update the docs to reflect the new feature
authorDamian Silbergleith Cunniff <dcunniff@gmail.com>
Sat, 26 Dec 2015 16:47:59 +0000 (09:47 -0700)
committerDamian Silbergleith Cunniff <dcunniff@gmail.com>
Sat, 26 Dec 2015 16:47:59 +0000 (09:47 -0700)
docs/05-Pie-Doughnut-Chart.md

index d50e2867cd45a039dcdb70b5ae42f9346928b032..23dedd0f57edf9e40750eb3058bde86513eca1f3 100644 (file)
@@ -137,6 +137,8 @@ myDoughnutChart.update();
 
 Calling `addData(segmentData, index)` on your Chart instance passing an object in the same format as in the constructor. There is an optional second argument of 'index', this determines at what index the new segment should be inserted into the chart.
 
+If you don't specify a color and highliht, one will be chosen from the global default array: segmentColorDefault and the corresponding segmentHighlightColorDefault.  The index of the addded data is used to lookup a corresponding color from the defaults.
+
 ```javascript
 // An object in the same format as the original data source
 myDoughnutChart.addData({