Chartjs-Chart.js dynamically add y axes from json

1👍

You can update chart options and then call update() method on your chart instance.

For example:

  1. initially create a secondary Y axe with display: false;
  2. update secondary Y axe options when needed and then update chart

See my fiddle: https://jsfiddle.net/beaver71/hw8ozgh4/

Leave a comment