diff --git a/docs/samples/wheel/click-zoom.md b/docs/samples/wheel/click-zoom.md index 512e3de9..20e0ba18 100644 --- a/docs/samples/wheel/click-zoom.md +++ b/docs/samples/wheel/click-zoom.md @@ -73,7 +73,7 @@ const borderPlugin = { id: 'chartAreaBorder', beforeDraw(chart, args, options) { const {ctx, chartArea: {left, top, width, height}} = chart; - if (chart.options.plugins.zoom.zoom.enabled) { + if (chart.options.plugins.zoom.zoom.wheel.enabled) { ctx.save(); ctx.strokeStyle = 'red'; ctx.lineWidth = 1; @@ -84,7 +84,7 @@ const borderPlugin = { }; // -const zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.enabled ? 'enabled' : 'disabled'); +const zoomStatus = () => 'Zoom: ' + (zoomOptions.zoom.wheel.enabled ? 'enabled' : 'disabled'); // const config = {