anirudhb029 / flot

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

Selection does not work properly for Bar charts in Firefox and Opera #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am doing a POC with the Flot r146 and jQuery 1.3.2 and testing it in IE7,
FF 3.0.7, Safari 3.2.2 and Opera 9.64. The POC works OK in IE and Safari,
but behaves weirdly in FF and Opera. 

The POC retrieves data from a Web service and displays a Bar chart with
selection. The bifurcation point when the problem occurs seems to be
setting a bars.barWidth property to a value other then null.

Then when you start the selection (mouse left-click and hold and start
dragging) the selection box suddenly jumps to the dragging direction and
becomes smaller. As you keep dragging a mouse the selection box jumps
further and gets smaller and smaller end finally disappears completely (see
a screen shot attached).

If not setting the value of the bars.barWidth property or setting it to
null selection seems to work normally.

Original issue reported on code.google.com by cdt...@gmail.com on 10 Mar 2009 at 3:29

GoogleCodeExporter commented 9 years ago
A Screen shot and a test Visual Studio 2008 web project demonstrating the 
problem are
attached.

Original comment by cdt...@gmail.com on 10 Mar 2009 at 3:35

Attachments:

GoogleCodeExporter commented 9 years ago
On a screen shot a red cross shows a point where the selection started (mouse 
click).
The selection box has moved far to the right and is smaller than it's supposed 
to be:
it should start from the red cross and take all the height since the selection 
mode
is "x".

Original comment by cdt...@gmail.com on 10 Mar 2009 at 3:43

GoogleCodeExporter commented 9 years ago
Would you mind posting an example of HTML+JS rendered from your ASP application 
that
causes the problem? I'd like to investigate the problem, but I don't have an ASP
development environment handy.

Original comment by jbleb...@gmail.com on 13 Mar 2009 at 4:45

GoogleCodeExporter commented 9 years ago
It's not technically possible to create such an output since the page is 
dynamic and
data for the chart is being queried dynamically from the web service. However I 
can
host the example at my web site and send you the link. Please let me know if 
this
would work for you.

Original comment by cdt...@gmail.com on 30 Mar 2009 at 6:18

GoogleCodeExporter commented 9 years ago
This is really weird. If you haven't resolved it yet, one way forward would be 
if you
could dump the HTML and JS as jblebrun hinted. As for the data, you can output 
it,
then put it in statically in the file.

I have done this myself a couple of times to debug something. It's much easier 
when
it's static. Running Visual Studio 2008 on this machine is simply not feasible 
for me
right now.

The barWidth shouldn't have any effect whatsoever on this, if it's null, then 
Flot
just uses a value of 1.

Original comment by olau%iol...@gtempaccount.com on 7 May 2009 at 6:44

GoogleCodeExporter commented 9 years ago
No progress for some months. I'm going to close the issue. If you find some 
time to
make a small reproducible-without-Visual Studio 2008 example, feel free to 
comment
and we can reopen and have a look.

Original comment by olau%iol...@gtempaccount.com on 22 Oct 2009 at 3:20

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:39