Improved code

This commit is contained in:
Andrés Santibáñez
2020-11-07 19:21:19 -05:00
parent 0af61a2997
commit e11c5ca375

View File

@@ -53,8 +53,7 @@
return
}
const seriesName = Object.keys(data)[Object.keys(data).findIndex((el, index) => index === seriesIndex)]
const point = data[seriesName][dataPointIndex]
const point = data[series[seriesIndex].name][dataPointIndex]
component.call('onPointClick', point)
}
}