For AI agents: the complete documentation index is available at https://docs.dataplatform.ovh.net/llms.txt, the full documentation bundle is available at https://docs.dataplatform.ovh.net/llms-full.txt, and this page is available as Markdown at https://docs.dataplatform.ovh.net/sdk/app-dynamic_parameters-list-monthspicker.md.
  • 🇬🇧 English
  • Monthspicker

    Warning

    Rework pending, no delivery date. The Front App SDK (ReactJS) and the Front API SDK (NodeJS) are both being replaced. This page documents the current release, remains accurate, and is maintained until the replacement ships. Code written against it keeps working.

    The Monthspicker allows you to select a range of months to filter the data in a chart.

    Please refer to datepicker for a full reference. The only difference is value of component.

    Configuration

    {
      "id": "monthspicker",
      "type": "filter",
      "component": "datepicker.months",
      "reference": "range_date",
      "startAt": "startOf('month')",
      "endAt": "endOf('day')",
      "minDate": "subtract(3, 'year').startOf('month')",
      "maxDate": "endOf('day')",
      "disable_reference_date": false,
      "request": {
        "data": {
          "fields": {
            "date": ["max"]
          }
        }
      },
      "diamonds": null,
      "ranges": [{
        "label": "Past month",
        "start": "subtract(1, 'month').startOf('month')",
        "end": "subtract(1, 'month').endOf('month')"
      }, {
        "label": "Current month",
        "start": "startOf('month')",
        "end": "endOf('day')"
      }]
    }