Thanks. I tried your solution and it works but the side effect is there is obvious image distortion. I think it is because the algorithm is too simple. Is there algorithm to reduce the number of data points at the same time with less image distortion?
Thanks for your prompt reply, it is exact what I want.
The picture link is http://123.58.3.129:8000/f/8a85ad9613/
Unnecessary to export chart1 and chart2 to one png file. I did it by screen capturing.
Thanks. I have one more question, is it possible to export chart1 and chart2 to one png file?
Thanks. I think it is an issue more involved with electron and reported it in electron project.
https://github.com/chentsulin/electron-react-boilerplate/issues/991
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.
I tried the jsfiddle, it works. Thanks very much for your prompt response. But how can it support zooming in this case? The axisY chart is not zoomed with the main chart.