youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

Mouseover with stacked Bars not showing correct #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Using the following values in the Playground:

var options = {"bars": {"show": true, "stacked": true}, "mouse": {"track": 
true}};

The red line-markings that show which bar the mouseover is for, is shown for 
the "original" bar, not 
the stacked bar. 

Original issue reported on code.google.com by boem...@gmail.com on 4 Jun 2009 at 8:12

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by fabien.menager on 23 Jul 2009 at 9:02

GoogleCodeExporter commented 8 years ago
Possibly related to issue 93

Original comment by peter....@solide-ict.nl on 21 Jul 2010 at 7:40

GoogleCodeExporter commented 8 years ago
bump

Original comment by spoon.re...@gmail.com on 10 Sep 2010 at 2:55

GoogleCodeExporter commented 8 years ago
There are two problems here: 1) the hit detection is wrong (it is detecting 
based on the position of where the un-stacked bar would be); and 2) the drawing 
of the outline of the bar is in the wrong place (it is drawing an outline 
around where the un-stacked bar would be, not the stacked location). Someone 
please fix this; I want to use markers but can't for my stacked bar graphs.

Original comment by spoon.re...@gmail.com on 20 Sep 2010 at 8:30

GoogleCodeExporter commented 8 years ago
Here is a patch that fixes this problem (or at least fixes the hit detection 
for stacked bar charts AND makes the outline drawn go from the x axis to the 
top of the selected bar)

I don't know if this is the most elegant way to do this but it works fine for 
me.

Also I based my code on the code for drawing stacked bar graphs.

Original comment by alla...@gmail.com on 25 Dec 2010 at 1:48

Attachments:

GoogleCodeExporter commented 8 years ago
Here is a replacement for my previous patch. It also draws the bottom of the 
highlighted section at the bottom of the stacked bar, not at the axis.

Not sure if it works for negative bars though (in fact pretty sure it doesn't).

Original comment by alla...@gmail.com on 25 Dec 2010 at 2:00

Attachments:

GoogleCodeExporter commented 8 years ago
Will try to introduce mouse tracking for stacked bars charts, this is conected 
to Issue 46

Original comment by macku30@gmail.com on 25 May 2011 at 6:38