drawBarHighlight or findNearbyItem error serie align left #1189

Closed
SBLANCKILA opened this Issue Nov 12, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@SBLANCKILA

Release /* Javascript plotting library for jQuery, version 0.8.1.
When setup serie with left alignement and hoverable to true, the overlay of the bar is displayed has align center. in script only 2 case are managed.

Fix example:
1 Add function
function computeBarLeft(series){
if(series.bars.align == "right")
return -series.bars.barWidth;
if(series.bars.align == "center")
return -series.bars.barWidth/2;
return 0;
}

2 Fix drawBarHighlight method line 3007
barLeft = computeBarLeft(series);

3 Fix findNearbyItem method line 2008
var barLeft = computeBarLeft(s),

@dnschnur

This comment has been minimized.

Show comment Hide comment
@dnschnur

dnschnur Nov 12, 2013

Owner

This was already fixed in #1120. Please try with the latest master and let me know if you still see the problem.

Owner

dnschnur commented Nov 12, 2013

This was already fixed in #1120. Please try with the latest master and let me know if you still see the problem.

@dnschnur dnschnur closed this Nov 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment