Hi,
I'm having trouble with the labels on my graph. It is a time series graph with time on the X axis. I'm updating the data in realtime, and I'm also using selection/overview/zoom capabilities to zoom in and out of the data.
My issue is that under some circumstances the zoom factor is such that the ticks are spaced too closely and the tick labels are butted right against one another or partially overlap. For example, two consecutive tick labels such as "15:05:45" and 15:05:50" might appear on the screen as "15:05:4515:05:50" or, even worse, the starting digits of the next label will be overlapped on top of ending digits of the previous one.
It looks like the algorithm that figures out the tick spacing is going just a little too far -- i.e. it is allowing too many ticks to be displayed before bumping out to the next quantization level.
My graph options are minimal:
xaxis: {
mode: "time",
timeformat: "%H:%M:%S"
}
(Actually, I get the same problem when I don't specify timeformat at all and just use the defaults...)
I'm using jquery.flot.js v0.8.1, jquery.flot.time.js v1.0, and jquery.flot.selection.js v1.1
I would very much like to continue using Flot's default algorithms for automatically figuring out the appropriate number of ticks to display rather than somehow roll my own.
Does anyone know a way around this problem???
Thanks,
Jim