when the ticks of xaxis is consisted of a array with number, like[0,1,2,3...], it shows the error.
I temporarily choose to change
content = content.replace(xPattern, item.series.xaxis[ticks][tickIndex].label.replace(/\$/g, '$$$$'));
to
content = content.replace(xPattern, String(item.series.xaxis[ticks][tickIndex].label).replace(/\$/g, '$$$$'));
when the ticks of xaxis is consisted of a array with number, like[0,1,2,3...], it shows the error. I temporarily choose to change
content = content.replace(xPattern, item.series.xaxis[ticks][tickIndex].label.replace(/\$/g, '$$$$'));
tocontent = content.replace(xPattern, String(item.series.xaxis[ticks][tickIndex].label).replace(/\$/g, '$$$$'));