I’m wondering if there is a possibility to add a new pre set data range filter (like this month, this year and so on). I really need to add a new parameter “Next Year”. Maybe it could be also very useful to add Next week, Next month and so on.
What do you think about it? is it a feature that we could develop?
Thanks in advance for any reply and anyone want help me
Hi, we also need this to be customizable. We show 12 months of data but currently showing ‘this year’ cuts off the data. So on Jan 1 all our dat disappears. Any way to resolve this issue so the ‘this year’ function can show data over a 12 month period instead?
The first one is DataRangeParameter.js. For example here, I have added the option, next year. Here you can define the rule according to the moment standard
The second one, is DateRangeParameter.jsx { name: "Next year", value: getDynamicDateRangeFromString("d_next_year"), label: () => getDynamicDateRangeFromString("d_next_year") .value()[0] .format("YYYY"), },
Where you define the UI part in order to show the new label in data range filter.
However, let me understand better your problem:
This year (2021) 1Jan 2021 - today
Last Year (2020) 1Jan 2020 - 31Dec 2020