(currentPoints, opts)
| 748 | } |
| 749 | |
| 750 | function findMapChartCurrentIndex(currentPoints, opts) { |
| 751 | var currentIndex = -1; |
| 752 | var cData=opts.chartData.mapData; |
| 753 | var data=opts.series; |
| 754 | var tmp=pointToCoordinate(currentPoints.y, currentPoints.x,cData.bounds,cData.scale,cData.xoffset,cData.yoffset); |
| 755 | var poi=[tmp.x, tmp.y]; |
| 756 | for (var i = 0, len = data.length; i < len; i++) { |
| 757 | var item = data[i].geometry.coordinates; |
| 758 | if(isPoiWithinPoly(poi,item)){ |
| 759 | currentIndex = i; |
| 760 | break; |
| 761 | } |
| 762 | } |
| 763 | return currentIndex; |
| 764 | } |
| 765 | |
| 766 | function findPieChartCurrentIndex(currentPoints, pieData) { |
| 767 | var currentIndex = -1; |
no test coverage detected