Home › Forums › Chart Support › Zooming does not work in production environment › Reply To: Zooming does not work in production environment
Thanks. it is not about zoomEnabled. The example code is not complete.
I have fixed this issue as a work around by importing canvasjs in the way below:
if (process.env.NODE_ENV === 'development') { require('../../third/canvasjs/canvasjs.min'); } else { require('../../third/canvasjs/canvasjs'); }
If the webpack makes bundle with canvasjs.min.js in production environment, this issue occurs.
If the webpack makes bundle with canvasjs.js in production environment, it would be okay.
I don’t know the specific reason.