Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative values #52

Merged
merged 3 commits into from
Nov 19, 2013
Merged

Negative values #52

merged 3 commits into from
Nov 19, 2013

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.

None yet

2 participants