Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UIComponentsSitemapProvider] Missing chart labels #781

Closed
Boby71 opened this issue Jan 9, 2021 · 2 comments
Closed

[UIComponentsSitemapProvider] Missing chart labels #781

Boby71 opened this issue Jan 9, 2021 · 2 comments
Labels
bug Something isn't working main ui Main UI

Comments

@Boby71
Copy link

Boby71 commented Jan 9, 2021

The problem

When using a chart in a sitemap (no matter if created in the UI or .sitemap file), the title won't be displayed anymore:
UI:
image

Code:

    Group label="Corona Statistik AT" {
        Text item=CoronaStatisticsAT_NewCases label="Neue Fälle"
        Text item=CoronaStatisticsAT_NewDeaths label="Neue Tote"
        Text item=CoronaStatisticsAT_Updated label="Daten vom [%1$td.%1$tm.%1$tY, %1$tH:%1$tm]"
        Chart icon="chart" item=CoronaStatisticsAT_NewCases refresh=60000 service="rrd4j" period="W" label="Neue Fälle"
    }

Result: Chart is being displayed, but without given title:
image

Expected behavior

When label= is being used, the label should be displayed as well

Steps to reproduce

  1. Create a chart with a lable
  2. Check page in basicUI

Your environment

runtimeInfo:
  version: 3.1.0
  buildString: "Build #2127"
locale: de_AT
systemInfo:
  configFolder: /etc/openhab
  userdataFolder: /var/lib/openhab
  logFolder: /var/log/openhab
  javaVersion: 11.0.9
  javaVendor: Azul Systems, Inc.
  javaVendorVersion: Zulu11.43+88-CA
  osName: Linux
  osVersion: 5.4.83-v7+
  osArchitecture: arm
  availableProcessors: 4
  freeMemory: 84129568
  totalMemory: 194772992
bindings:
  - amazonechocontrol
  - coronastats
  - daikin
  - denonmarantz
  - enigma2
  - exec
  - harmonyhub
  - http
  - ipcamera
  - mqtt
  - netatmo
  - network
  - ntp
  - systeminfo
  - unifi
  - wled
  - worxlandroid
clientInfo:
  device:
    ios: false
    android: false
    androidChrome: false
    desktop: true
    iphone: false
    ipod: false
    ipad: false
    edge: false
    ie: false
    firefox: false
    macos: false
    windows: true
    cordova: false
    phonegap: false
    electron: false
    nwjs: false
    webView: false
    webview: false
    standalone: false
    os: windows
    pixelRatio: 1
    prefersColorScheme: dark
  isSecureContext: false
  locationbarVisible: true
  menubarVisible: true
  navigator:
    cookieEnabled: true
    deviceMemory: N/A
    hardwareConcurrency: 8
    language: de
    languages:
      - de
      - de-DE
      - en
      - en-US
      - en-AU
    onLine: true
    platform: Win32
  screen:
    width: 1920
    height: 1080
    colorDepth: 24
  support:
    touch: false
    pointerEvents: true
    observer: true
    passiveListener: true
    gestures: false
    intersectionObserver: true
  themeOptions:
    dark: dark
    filled: true
    pageTransitionAnimation: default
    bars: filled
    homeNavbar: default
    homeBackground: default
    expandableCardAnimation: default
  userAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
    like Gecko) Chrome/87.0.4280.141 Safari/537.36
timestamp: 2021-01-09T16:11:12.238Z

Browser console

image

Browser network traffic

image

Additional information

@Boby71 Boby71 added bug Something isn't working main ui Main UI labels Jan 9, 2021
@Boby71
Copy link
Author

Boby71 commented Jan 9, 2021

Just noticed, it's the same for frames:

        Frame label="Neue Faelle" {
            Chart icon="chart" item=CoronaStatisticsAT_NewCases refresh=60000 service="rrd4j" period="W" label="Neue Fälle"
        }

Not a singe label is being displayed here

@ghys ghys changed the title [3.1.0-SNAPSHOT - Build #2127]: Labels of charts won't be displayed in basicUI [UIComponentsSitemapProvider] Missing chart labels Jan 14, 2021
@ghost ghost deleted a comment from ghys Jan 14, 2021
@ghost
Copy link

ghost commented Jan 14, 2021

This issue was moved by ghys to openhab/openhab-core#2116.

@ghost ghost closed this as completed Jan 14, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

No branches or pull requests

1 participant