Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab: support per month histogram #162

Open
synrg opened this issue Mar 16, 2022 · 0 comments
Open

tab: support per month histogram #162

synrg opened this issue Mar 16, 2022 · 0 comments
Labels
enhancement New feature or request inat 🍃 iNaturalist cog obs iNaturalist observations time time axis (time of observation, etc.)

Comments

@synrg
Copy link
Collaborator

synrg commented Mar 16, 2022

Support per month with or without an accompanying date range.

If per month is given, then the an observations histogram is requested for month_of_year. If a date range filter is used in conjunction with per month (e.g. since nov 2020 per month, or added since nov 2020 per month) then instead of a seasonal histogram with 12 rows, one per month of the year, counts for months since the start of the range will be shown, month-by-month since the base date until the end of the range. Other increments should be supported. See the values of interval for the GET /v1/observations/histogram endpoint for a complete list, and these notes on that field:

Time interval for histogram, with groups starting on or contained within the group value. The year, month, week, day, and hour options will set default values for d1 or created_d1 depending on the value of date_field, to limit the number of groups returned. You can override those values if you want data from a longer or shorter time span. The hour interval only works with date_field=created, and this you should filter dates with created_d[1,2]

Jared (blazeclaw) asked for this feature on iNat Discord.

@synrg synrg added enhancement New feature or request inat 🍃 iNaturalist cog obs iNaturalist observations time time axis (time of observation, etc.) labels Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request inat 🍃 iNaturalist cog obs iNaturalist observations time time axis (time of observation, etc.)
Projects
None yet
Development

No branches or pull requests

1 participant