We have a chart with a time series on the axis.
The client is involved in the tourist attraction business which is seasonal and they have 4 calendar options they require the user to be able to change between.
- Previous 13 months
- Previous 4 years
- Previous 4 calendar ‘seasonal’ years - so Spring Summer and Fall are in the year, but ignore anything in Winter (approx Jan - April)
- Previous 4 industry ‘seasonal’ years - with a year being previous Fall plus current Spring and Summer, again ignoring winter.
(apologies to anyone in the southern hemisphere )
The first 2 are dead easy with date range and level filters on a time hierarchy.
Missing out part of each year - where ‘2020’ is April 15 - Dec 31 and then 2021 is Apr 15 - Dec 31, but Jan - Apr of each year is filtered out is complicated. Perhaps that could be a custom time hierarchy but I don’t know about missing out months.
Additionally, options 3 and 4 are mutually exclusive - either Fall 2020 is counted as 2020 or it is counted as 2021. And a hierarchy that is ignoring months doesn’t work with options 1 and 2.
Any ideas how I can achieve this?
In order of preference my own ideas are
- Something clever in a custom time hierarchy
- Tokens? (@jeff inspired me with the token series)
- Something clever in a regular hierarchy (where the dates are strings)
- Multiple separate charts
I’d love to know if anyone has better ideas, or has actually implemented something like this