krzysu/flot.tooltip — pull request #52 by eunomie (2013-11-18 12:49:24+00:00)
Title: Negative values

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](https://f.cloud.github.com/assets/1542321/1562736/a9be3c0e-504f-11e3-87e9-0fcbd2ec84d7.png)

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](https://f.cloud.github.com/assets/1542321/1562741/d010627e-504f-11e3-917c-8002ced30aa8.png)