Function
findFunnelChartCurrentIndex
(currentPoints, funnelData)
Source from the content-addressed store, hash-verified
| 724 | } |
| 725 | |
| 726 | function findFunnelChartCurrentIndex(currentPoints, funnelData) { |
| 727 | var currentIndex = -1; |
| 728 | for (var i = 0, len = funnelData.series.length; i < len; i++) { |
| 729 | var item = funnelData.series[i]; |
| 730 | if (currentPoints.x > item.funnelArea[0] && currentPoints.x < item.funnelArea[2] && currentPoints.y > item.funnelArea[1] && currentPoints.y < item.funnelArea[3]) { |
| 731 | currentIndex = i; |
| 732 | break; |
| 733 | } |
| 734 | } |
| 735 | return currentIndex; |
| 736 | } |
| 737 | |
| 738 | function findWordChartCurrentIndex(currentPoints, wordData) { |
| 739 | var currentIndex = -1; |
Tested by
no test coverage detected