dhammucool / flot

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

Non-time axis tick-generation broken when reusing plots #754

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Non-time axes (i.e. the default "base 10 behavior") assign a function to 
axis.tickGenerator which uses axis.tickSize to generate ticks. But nothing 
recalculates axis.tickSize or assigns a new function to axis.tickGenerator when 
new data is loaded and the plot redrawn. This causes way to many ticks to be 
drawn when a plot is reused to render data with a greater delta (axis.max - 
axis.min).  See attached screenshots.

A proposed fix is at https://github.com/flot/flot/pull/76

Original issue reported on code.google.com by bishdog...@gmail.com on 16 Sep 2012 at 10:53

Attachments:

GoogleCodeExporter commented 8 years ago
This is what the second screenshot above looks like with the fixed code.  Note 
that to get the 2nd screenshot, I load the graph with the default window of 
"now minus 2 hours" to "now", and then click "1 wk" which loads data for "now 
minus 1 week" to "now" and puts it into the existing plot and redraws it.

Original comment by bishdog...@gmail.com on 16 Sep 2012 at 11:12

Attachments: