My chart widget fails after upgrading from 5.1.1 to 5.1.2

Last week I upgraded my OH5.1.1 under win11 to 5.1.2. Below is one chart example under 5.1.1. The chart shows my electricity consumption in Feb 2026. Both in 5.1.1 and 5.1.2 the left and right arrow buttons work so they both change the month by 1.

When I click on the Feb 2026 button, a calendar is opened (see the screenshot below).

I can then change the month and year by clicking the arrow buttons. In 5.1.1 when I click on any day the month/year are changed but in 5.1.2 nothing happens, i.e. the month is still Feb and year 2026. It seems that 5.1.2 broke this widget somehow. Below is the code for my widget:

uid: Sahkonkulutus_kuukausi
tags: []
props:
  parameters:
    - context: item
      description: Main toggle item (use for single toggle or as main switch for group)
      label: Item
      name: item
      required: false
      type: TEXT
    - context: text
      default: You forgot to set a card title
      description: Pretty card label
      label: Title
      name: title
      required: false
      type: TEXT
  parameterGroups: []
timestamp: Mar 13, 2024, 6:51:01 AM
component: f7-card
config:
  class:
    - padding-bottom
  title: =props.title
slots:
  default:
    - component: f7-row
      config:
        class:
          - margin-top
      slots:
        default:
          - component: f7-col
            config:
              width: 90
            slots:
              default:
                - component: oh-chart
                  config:
                    chartType: month
                    label: Kulutus
                  slots:
                    dataZoom:
                      - component: oh-chart-datazoom
                        config:
                          type: inside
                    grid:
                      - component: oh-chart-grid
                        config:
                          bottom: 60
                          containLabel: false
                          height: 50%
                          left: "53"
                          width: 75%
                    legend:
                      - component: oh-chart-legend
                        config:
                          bottom: 3
                          type: scroll
                    series:
                      - component: oh-aggregate-series
                        config:
                          aggregationFunction: diff_last
                          dimension1: date
                          gridIndex: 0
                          item: =props.item
                          markLine:
                            data:
                              - lineStyle:
                                  color: blue
                                  type: solid
                                name: keskiarvo
                                type: average
                          name: Sähkönkulutus
                          service: influxdb
                          type: bar
                          xAxisIndex: 0
                          yAxisIndex: 0
                    tooltip:
                      - component: oh-chart-tooltip
                        config:
                          action: analyzer
                          actionAnalyzerChartType: day
                          actionAnalyzerItems:
                            - props.item
                          aggregationFunction: sum
                          presetFeatures:
                            - dataZoom
                          right: right
                          show: true
                          top: top
                    xAxis:
                      - component: oh-category-axis
                        config:
                          categoryType: month
                          gridIndex: 0
                          monthFormat: default
                          name: Päivä
                          nameGap: 25
                          nameLocation: center
                          weekdayFormat: default
                    yAxis:
                      - component: oh-value-axis
                        config:
                          gridIndex: 0
                          name: Kulutus (kWh)
                          nameGap: 38
                          nameLocation: center

Any ideas why the widget is not working properly under 5.1.2?

Can you look at the web browser console to see if there are any warning/errors reported?

I can confirm this. Quickly tested in 5.2.M1 with chart type e.g. fixed to month.
I don’t think the issue is the widget. It is a bug in the charts. Can you open an issue on Github?

I had a look at the console but didn’t see any errors there.

Many thanks for testing with a chart. I have now created an issue in Github.

This issue has now ben fixed in 5.1.3. Many thanks!

1 Like