Looks good. My radial gauges work, but it wont chart the same figures, any thoughts as to why?
Gauges and charts are independent items, have you set all props?
In the past I had general issues with charts when using persistence as in the old OH2. I just removed the persistence config file and let OH3 take care.
If you intend to use the widget, it should be much easier than that… Sorry if I am misunderstanding, but once you have the widget as per the code above, you should just insert this widget in a layout page and then go through the widget configuration: there you have the fields to enter your items to be shown in the gauges and in the charts.
Are these items showing if you use a normal chart page? If not, you might have a persistence issue. Otherwise I don’t know… Some default suggestions: check OH is updated, restart the system.
If i just overlay gSolar_EnergyDay on a normal chart, it works. If i use that inside the widget, it doesnt display
I have the same issue with a code like:
- component: oh-time-series
config:
gridIndex: 0
item: =props.person
name: =props.title
type: line
xAxisIndex: 0
yAxisIndex: 0
slots:
markArea:
- component: oh-mark-area
config:
name: =props.title
item: =props.person
The chart is receiving =props.title literally as a string, not as a pointer to item.
Thank you this is exactly what i was looking for