sangltdn / flot

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

support for quarters (time frame) #287

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A lot of my clients need reports based on quarters (Q1: Jan 1 - Mar 31, Q2:
Apr 1 - Jun 30, etc).  Is there any chance that this could be incorporated?

Original issue reported on code.google.com by ryanha...@gmail.com on 4 Jan 2010 at 5:43

GoogleCodeExporter commented 9 years ago
That's an interesting question. What's your input data? Are you talking about 
some
kind of aggregation?

Original comment by olau%iol...@gtempaccount.com on 20 Jan 2010 at 1:00

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
It's possible to take monthly data and generate quarterly ticks by setting 
minTickSize to [3, "months"] and providing a suitable tickFormatter function, 
but there's no way to actually transform the points into a different curve. I 
don't really think the latter is within the scope of flot; in any case, it 
should be filed as a separate, clear issue, to be implemented as a plug-in.

Original comment by mrcote on 3 Dec 2012 at 6:03

GoogleCodeExporter commented 9 years ago
Okay the idea of at least labelling quarters is popular; see issue github issue 
#49 for more.

Original comment by mrcote on 3 Dec 2012 at 6:23

GoogleCodeExporter commented 9 years ago
Quarters have been implemented using the %q specifier; see 
https://github.com/flot/flot/pull/49 for more info.

Original comment by mrcote on 13 Dec 2012 at 5:02