Skip to content

Conversation

@eunomie
Copy link
Contributor

@eunomie eunomie commented Nov 18, 2013

When a chart as negative values, the tooltips are not well displayed. It's like negative values add a sort of padding.

You can see examples here : http://eunomie.github.io/flot.tooltip.bug. On each page there's two set of datas. One starting with negative values, one only with positive values.

In the first page, if you hover negative values, no tooltip is displayed. And the tooltip over the first positive values displayed negative values.
base version

The second page contains same datas but use a patched version of flot.tooltip which use item.datapoint instead of item.series.data[item.dataIndex] to access datas of the point. And with this modification all tooltips are well displayed.
fixed version

krzysu pushed a commit that referenced this pull request Nov 19, 2013
@krzysu krzysu merged commit 0399891 into krzysu:master Nov 19, 2013
@eunomie eunomie deleted the negative-values branch November 19, 2013 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants