New Charts

    Dataset controllers must implement the following interface.

    Extending Existing Chart Types

    Extending or replacing an existing controller type is easy. Simply replace the constructor for one of the built in types with your own.

    • Chart.controllers.bar
    • Chart.controllers.doughnut

    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 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.