gauravkumar13337 / flot

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

Massive axis range doesn't work #614

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have a Flot graph that has a default x-axis range with min 0 and max 300.

I then load data via AJAX and add it to the graph. My intent is to have all the 
data visible in the graph once it is added, so I change the x-axis range using 
this:

plot.getXAxes()[0].max = data.length; // dealing with a raw-value timeseries, 
so we use data.length.
plot.draw();

That works perfectly when data.length is something small, like 500. However, 
the data I'm working with now has a length of 250000. When I set the max to 
that, the plot resets the x-axis range to my default range of 0-300.

Is there a workaround to this bug?

Original issue reported on code.google.com by maximz...@gmail.com on 9 Oct 2011 at 1:41

GoogleCodeExporter commented 8 years ago
A second trial resulted in the following: the x-axis changes, but the data 
disappears.

Original comment by maximz...@gmail.com on 9 Oct 2011 at 1:46

GoogleCodeExporter commented 8 years ago
I'm having a hard time reproducing this; could you please provide a clearer 
description of your data and plot options, or an example?  Thanks!

Original comment by dnsch...@gmail.com on 5 Jun 2012 at 3:22

GoogleCodeExporter commented 8 years ago
Marking as invalid due to no further response for a month.

Original comment by dnsch...@gmail.com on 10 Jul 2012 at 11:39

GoogleCodeExporter commented 8 years ago
David,

Anything subsequent on this issue? 
I seem to be experiencing the same thing. When the x-axis has values that range 
upwards of 10,000 the values returned by a plothover event (as in tracking 
example) are approximate at best - wide variance.  

Original comment by dovgr...@gmail.com on 27 Jan 2013 at 2:54

GoogleCodeExporter commented 8 years ago
That doesn't seem to be same problem as the one described here.  Please open an 
issue on Github (https://github.com/flot/flot/issues) with a description of the 
problem and what kinds of values you get back.

Original comment by dnsch...@gmail.com on 27 Jan 2013 at 2:57

GoogleCodeExporter commented 8 years ago
I solved the immediate problem by using panning and only display a certain 
number of points in the view-window. I will try to document the problem & 
submit. Flot is a very cool technology. thanx.

Original comment by dovgr...@gmail.com on 30 Jan 2013 at 9:28