MCPcopy Create free account
hub / github.com/CoderOpen/waimai / findFunnelChartCurrentIndex

Function findFunnelChartCurrentIndex

front/components/u-charts/u-charts.js:726–736  ·  view source on GitHub ↗
(currentPoints, funnelData)

Source from the content-addressed store, hash-verified

724}
725
726function 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
738function findWordChartCurrentIndex(currentPoints, wordData) {
739 var currentIndex = -1;

Callers 1

u-charts.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected