Chart Widget - change of dimension

I have a widget chart :

uid: Chart_Prod_Cons_by_ALDA
tags: []
props:
  parameters:
    - context: item
      label: spot_akt_mesic
      name: spot_akt_mesic
      required: true
      type: TEXT
    - context: item
      label: spot_min_mesic
      name: spot_min_mesic
      required: true
      type: TEXT
    - context: item
      label: rezolution
      name: rezolution
      required: false
      type: TEXT      
  parameterGroups: []
timestamp: Nov 12, 2023, 1:17:53 PM


component: f7-card
config:
  style:
    background-color: "=props.bgcolor ? props.bgcolor : ''"
    border-radius: var(--f7-card-expandable-border-radius)
    box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.1)
    margin-left: 5px
    margin-right: 5px
    noShadow: false
    padding: 0px
slots:
  content:
    - component: f7-block
      config:
        style:
          --f7-theme-color: var(--f7-text-color)
          margin: 0
          padding: 0
      slots:
        default:
          - component: f7-row
            slots:
              default:
                - component: f7-col
                  config:
                    style:
                      width: 100%
                      margin-top: 20px
                  slots:
                    default:
                      - component: oh-chart
                        config:
                          chartType: isoWeek
                          label: Výroba/Spotřeba
                          order: ""
                          period: M
                          sidebar: true
                        slots:
                          dataZoom: []
                          grid:
                            - component: oh-chart-grid
                              config: {}
                          legend:
                            - component: oh-chart-legend
                              config:
                                show: true
                          series:
                            - component: oh-aggregate-series
                              config:
                                aggregationFunction: max
                                dimension1: isoWeekday
                                gridIndex: 0
                                item: Modbus_Data_PV_yield_today_784_Value_as_Number
                                name: FVE_Střecha
                                service: rrd4j
                                stack: one
                                type: bar
                                xAxisIndex: 0
                                yAxisIndex: 0
                            - component: oh-aggregate-series
                              config:
                                aggregationFunction: max
                                dimension1: isoWeekday
                                gridIndex: 0
                                item: Modbus_Data_PV_yield_today_G_784_Value_as_Number
                                name: FVE_Garáž
                                service: rrd4j
                                stack: one
                                type: bar
                                xAxisIndex: 0
                                yAxisIndex: 0
                            - component: oh-aggregate-series
                              config:
                                aggregationFunction: diff_last
                                dimension1: isoWeekday
                                gridIndex: 0
                                item: Modbus_Data_Grid_L1_sum_2622_Value_as_Number
                                name: z_L1
                                service: rrd4j
                                stack: two
                                type: bar
                                xAxisIndex: 0
                                yAxisIndex: 0
                            - component: oh-aggregate-series
                              config:
                                aggregationFunction: diff_last
                                dimension1: isoWeekday
                                gridIndex: 0
                                item: Modbus_Data_Grid_L2_sum_2624_Value_as_Number
                                name: z_L2
                                service: rrd4j
                                stack: two
                                type: bar
                                xAxisIndex: 0
                                yAxisIndex: 0
                            - component: oh-aggregate-series
                              config:
                                aggregationFunction: diff_last
                                dimension1: isoWeekday
                                gridIndex: 0
                                item: Modbus_Data_Grid_L3_sum_2626_Value_as_Number
                                name: z_L3
                                service: rrd4j
                                stack: two
                                type: bar
                                xAxisIndex: 0
                                yAxisIndex: 0
                            - component: oh-aggregate-series
                              config:
                                aggregationFunction: diff_last
                                dimension1: isoWeekday
                                gridIndex: 0
                                item: FVE_BAT_SUM
                                service: rrd4j
                                stack: two
                                type: bar
                                xAxisIndex: 0
                                yAxisIndex: 0
                                name: z_FVE_BAT
                            - component: oh-aggregate-series
                              config:
                                aggregationFunction: diff_last
                                dimension1: isoWeekday
                                gridIndex: 0
                                item: Modbus_Data_Grid_sum_2634_Value_as_Number
                                name: Síť celkem
                                type: line
                                xAxisIndex: 0
                                yAxisIndex: 0
                          toolbox: []
                          tooltip:
                            - component: oh-chart-tooltip
                              config:
                                show: true
                          xAxis:
                            - component: oh-category-axis
                              config:
                                categoryType: week
                                gridIndex: 0
                                monthFormat: short
                                weekdayFormat: short
                          yAxis:
                            - component: oh-value-axis
                              config:
                                gridIndex: 0
                                min: "0"

I want implement change to Month resolution by click on the button, but not sure how to implement this time resolution change.

I shared a widget that maybe fits with your expectations.