diff --git a/src/lib/utils/ChartDataUtil.js b/src/lib/utils/ChartDataUtil.js index 1e5a34733..b388c873a 100644 --- a/src/lib/utils/ChartDataUtil.js +++ b/src/lib/utils/ChartDataUtil.js @@ -52,6 +52,7 @@ var ChartDataUtil = { var eventCapture = this.getChildren(children, /EventCapture$/); if (eventCapture.length > 1) throw new Error("only one EventCapture allowed"); if (eventCapture.length > 0) return eventCapture[0].props.mainChart; + if (eventCapture.length === 0) return this.getChildren(children, /Chart$/)[0].props.id; }, getClosestItem(plotData, mouseXY, chartData) { // console.log(chartData);