Skip to content

Commit

Permalink
fix for #6 use the first chart as main chart if no EventCapture is de…
Browse files Browse the repository at this point in the history
…fined
  • Loading branch information
rrag committed Aug 13, 2015
1 parent 46be632 commit de08d56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/ChartDataUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit de08d56

Please sign in to comment.