Hi guys,
I have the following situation:
On a dashboard with a range date filter, that can be set from the range of 1 day to the range of multiple years (with day granularity), I need to check if the difference between the two dates fits in any of these intervals:
1 week - 1 month - 3 months - 6 months - 1 year - All data
Depending on where the difference fits, I will need to hence grey and not be able to press the labels from the figure above (1W, 1M, 3M etc.), which are lower than where the value fits.
For example, if I choose a range from 01.01.2018 to 27.02.2018, it will fit between 1M - 3M, and I will have to hence gray the 1W and 1M labels and not be able to press them, in order to change the granularity of the chart.
Another thing is how to set the chart to be dynamically adjusted in order to arrange accordingly to the interval, when I press the labels above it.
e.g.: for the interval above, I will be able to select 3M, 6M, 1Y, etc. If I select 6M, I will have a chart with a 6 month range on bottom axis, starting from 01.01.2018 to 01.06.2018 and with a trend line that starts on 01.01.2018 and ends on 27.02.2018.
I know how to extract the dates from the filter, but after this I’m stuck.
Hope I’ve been pretty clear on what I need.
Any suggestions? Thank you in advance!