Why Zoom plugin is not working of chart js?

๐Ÿ‘:0

It seems to me that your zoom options should be under the key plugins.

See this example for the basic config.

Something like this:

options: {
plugins: {
  zoom: {
    zoom: {
      wheel: {
        enabled: true,
      },
      pinch: {
        enabled: true
      },
      mode: 'xy',
    }
  }
}

Leave a comment