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

Open
dnschnur opened this Issue Sep 28, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@dnschnur
Member

dnschnur commented Sep 28, 2012

Original author: bishdog...@gmail.com (September 16, 2012 22:53:40)

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 #76

Original issue: http://code.google.com/p/flot/issues/detail?id=754

@dnschnur

This comment has been minimized.

Show comment
Hide comment
@dnschnur

dnschnur Sep 28, 2012

Member

From bishdog...@gmail.com on September 16, 2012 23:12:15
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.

Member

dnschnur commented Sep 28, 2012

From bishdog...@gmail.com on September 16, 2012 23:12:15
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.

@ghost ghost assigned dnschnur Nov 3, 2012

@ghost ghost assigned markrcote Dec 3, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment