Hello,
i tried to add a chart into a card widget but i just get an empty space as result. Is it possible to add charts to card widgets?
I created a chart page and copied the code from the chart into a new custom widget:
uid: widget_wan_connection
tags: []
props:
parameters:
- context: text
description: An item to control
label: Titel
name: title
required: false
type: TEXT
- context: item
description: An item to control
label: WAN Downstream
name: downstream
required: false
type: TEXT
- context: item
description: An item to control
label: WAN Upstream
name: upstream
required: false
type: TEXT
parameterGroups: []
timestamp: Mar 22, 2021, 9:59:57 AM
component: oh-chart
config:
label: WAN1 Bandbreite
period: D
slots:
grid:
- component: oh-chart-grid
config: {}
xAxis:
- component: oh-time-axis
config:
gridIndex: 0
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
series:
- component: oh-time-series
config:
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: line
item: SNMPDrayTekVigor165_WANDownstream
name: Downstream
- component: oh-time-series
config:
name: Upstream
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: line
item: SNMPDrayTekVigor165_WANUpstream
title:
- component: oh-chart-title
config:
show: true
text: Bandbreite WAN1