leonardoeloy / flot-valuelabels

Improvement of Flot Value Labels plugin
http://wiki.github.com/leonardoeloy/flot-valuelabels/
26 stars 40 forks source link

reverseAlignBelowZero bug - each even item resets valign #20

Open laura-kolcavova opened 3 years ago

laura-kolcavova commented 3 years ago

Each even item resets valign property. Here is my hot fix, which seems to work properly.

if (reverseAlignBelowZero && y < 0 && !series.bars.horizontal) { xdelta = xoffset; ydelta = -1 * yoffset; if (valign == 'above') { valignWork = 'below'; } else if (valign == 'below') { valignWork = 'above'; } }

reverseAlignBelowZero bug - each even item resets valign