Updating Charts

    Adding and removing data is supported by changing the data array. To add data, just add data into the data array as seen in this example.

    • If created as a new object, it would be like creating a new chart with the options - old options would be discarded.

    Scales can be updated separately without changing other options. To update the scales, pass in an object containing all the customization including those unchanged ones.

    You can also update a specific scale either by its id.

    Sometimes when a chart updates, you may not want an animation. To achieve this you can call with as mode.