Custom fixed year in MetricsChart (eg. Fiscal Year)

#1

Hello,

I’m looking to have a chart displaying data for a fiscal year (October through September), with the year changing when in october.
So for example, in July 2017, the chart should display Oct. 2016 - Sept 2017, while in november 2017, the chart should display Oct 2017 - Sept 2018.

I tried using dynamicDateRange, but it seems i’m only able to use “standard” year or “standard” month as references.

Is there a way to do it ?

0 Likes

#2

This is currently not supported.

The work-around at the moment would be to manually update the chart configuration when the fiscal year changes (with hardcoded start and end dates). An automated way to do this work-around would be to create a pageRenderAction for the page with the chart that could contain logic to check the current date, extract the year, and update the hardcoded start and end date configurations on that component.

0 Likes