rickshaw icon indicating copy to clipboard operation
rickshaw copied to clipboard

hoverDetail has infinite loop bug

Open bnormoyle opened this issue 14 years ago • 2 comments

In Rickshaw.Graph.HoverDetail.js, in the loop from lines 62 to 73, it will loop infinitely if domainX is a value in stackedData[0] and approximateIndex is an index to the left of its position. Instead of incrementing the index to domainX's position in the list, the final check will fail as it is < and not <=, and it will decrement instead, continually bouncing between the two indices to the left of domainX's position in the list. I have an example available if need be.

bnormoyle avatar Aug 01 '12 19:08 bnormoyle

Thanks -- fixed with 2fee4cef23498656443063d9d6b256306fa95542.

dchester avatar Aug 07 '12 01:08 dchester

COOL TNX FOR THE FIX

bohan avatar Jan 27 '13 18:01 bohan