From: etimberg Date: Wed, 16 Dec 2015 01:19:32 +0000 (-0500) Subject: Updated docs X-Git-Tag: 2.0.0-beta2~18^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aee15fe6cd6b0817a34214600483e5814def820;p=thirdparty%2FChart.js.git Updated docs --- diff --git a/docs/07-Advanced.md b/docs/07-Advanced.md index d040d4584..8bc94cc1f 100644 --- a/docs/07-Advanced.md +++ b/docs/07-Advanced.md @@ -360,6 +360,9 @@ The built in controller types are: * `Chart.controllers.polarArea` * `Chart.controllers.bubble` +#### Bar Controller +The bar controller has a special property that you should be aware of. To correctly calculate the width of a bar, the controller must determine the number of datasets that map to bars. To do this, the bar controller attaches a property `bar` to the dataset during initialization. If you are creating a replacement or updated bar controller, you should do the same. This will ensure that charts with regular bars and your new derived bars will work seamlessly. + ### Building Chart.js Chart.js uses gulp to build the library into a single JavaScript file.