const getSeries_Dis = (that: any, e: any) => { const __xAxis = that.xAxis[0] || that.xAxis; let x = Math.round(__xAxis.toValue(e.chartX)); let categories: any = __xAxis.categories[x]; let dis = []; if (x >= 1) { dis = that.series.map((single: any) => single.data[x].y - single.data[x - 1].y) } else { dis = that.series.map(() => 0) } return dis } const getChartClick_xAxis = (that: any, e: any) => { const __xAxis = that.xAxis[0] || that.xAxis; let x = Math.round(__xAxis.toValue(e.chartX)); let categories: any = __xAxis.categories[x]; return categories.replace(/-/g, '/').replace(/^20/g, ''); } const getChartClick_Ind = (that: any, e: any) => { const __xAxis = that.xAxis[0] || that.xAxis; let x = Math.round(__xAxis.toValue(e.chartX)); return x } export { getSeries_Dis, getChartClick_xAxis, getChartClick_Ind }