faheem801 / flot

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

minTickSize only works in time mode with mulitples of 5 #445

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a graph plotting website visitor data and it seems as though 
minTickSize: [1,"day"] only works if you series x axis is a multiple of 5.. so 
this doesn't work too well if I wish to show weekly or monthly data (in months 
that have greater or less than 30 days eg 28 or 31)

Original issue reported on code.google.com by DavidM...@gmail.com on 22 Dec 2010 at 2:45

GoogleCodeExporter commented 9 years ago
Can you provide a little test example that shows the problem? Maybe a 
screenshot?

Original comment by olau%iol...@gtempaccount.com on 28 Jan 2011 at 11:18

GoogleCodeExporter commented 9 years ago
Attached is a screenshot from an Android device showing this bug. Basically, 
what seems to be happening is that if there is less than a multiple of three, 
or five, "time units" (as in hour, week, year etc.) in a given time series the 
labels don't get displayed at all.

In this screenshot there is a single data point in each series, and the 
minTickSize is set to [90,"hour"].

Even though the dataset timespan is less than the minTickSize, there should be 
at least a single lable displayed.

Original comment by luk...@szmit.eu on 31 May 2011 at 10:33

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 8 May 2012 at 9:02

GoogleCodeExporter commented 9 years ago

Original comment by mrcote on 28 Dec 2012 at 8:12