Chart not using state description pattern

  • Platform information:

    • Hardware: ARM/8Gb RAM/64Gb storage
    • OS: Pi OS = Debian 12 (bookworm)
    • Java Runtime Environment: openjdk 17.0.13
    • openHAB version: openHAB 4.3.0
  • Issue of the topic: Time-based chart of a number (time) item in minutes doesn’t use state description pattern, just displays number of minutes on y axis and tooltips.

  • Please post configurations (if applicable):
    Item code:

label: Token time
type: Number:Time
category: ""
groupNames: []
tags: []

State description:

value: " "
config:
  pattern: "%1$tHh%1$tMm"

Chart config:

config:
  chartType: ""
  period: W
  label: Token time
  sidebar: true
slots:
  grid:
    - component: oh-chart-grid
      config:
        includeLabels: true
  xAxis:
    - component: oh-time-axis
      config:
        gridIndex: 0
  yAxis:
    - component: oh-value-axis
      config:
        gridIndex: 0
        name: min
  series:
    - component: oh-time-series
      config:
        name: Token time including tokens
        gridIndex: 0
        xAxisIndex: 0
        yAxisIndex: 0
        type: line
        item: token_time_inc_tokens
  tooltip:
    - component: oh-chart-tooltip
      config:
        confine: true
        smartFormatter: true
  legend:
    - component: oh-chart-legend
      config:
        bottom: 3
        type: scroll
  dataZoom:
    - component: oh-chart-datazoom
      config:
        type: inside

Bump?

I don’t think this is anything wrong with your configuration. Looks like you may want to file an issue on the UI repository.

1 Like

Thank you. Have added a comment to this issue which has been open since last year.