TanTayBui / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Extra points created with the steps option enabled conveys erroneous information #628

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using the "steps:true" option, the extra data points that are apparently 
added in order properly draw the chart with steps are erroneously treated as 
normal/legitimate data points. Specifically, they are hoverable and clickable 
when they should not be, thus providing false information when tooltips or 
click actions are implemented.

Flot v0.7, all browsers.
Similar to issue #258.

Example screenshot attached.  The data series only includes the point (14:10, 
3), but Flot also adds the point (14:10, 4), which is false data.  Not only is 
incorrect information conveyed in the tooltip depending on where the user 
hovers, but this chart is part of a master-detail relationship -- clicking on a 
data point retrieves and displays record details below.  By clicking on the 
(extra) data point (14:10,4), a user would expect to see 4 records displayed 
when there are only 3.

Possible solution: extra data points added by Flot for drawing purposes could 
be specially flagged so they are not treated as part of the data series and are 
not afforded the same attributes as legitimate data points (such as hoverable 
and clickable, others?). 

Original issue reported on code.google.com by Feldhac...@gmail.com on 9 Nov 2011 at 2:45

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 7:35

GoogleCodeExporter commented 9 years ago
Hi! We've attempted a patch that solves this problem. 

The pull request is @
https://github.com/flot/flot/pull/59

Do let us know if there is a better way of going about it. 

Original comment by vu2...@gmail.com on 10 Jul 2012 at 11:23