I have been using the Charts feature and have made some progress getting some custom stuff done. But I am stuck on how to set the start and end symbols of the markLine.
I have worked out how to change the colour and add labels etc. But have no idea how to change the end symbol. Tried all the resources I can find but no luck.
Hoping for some guidance/ideas?
My current code snippet:
- component: oh-time-series
config:
name: Shelly UNI Voltage ADC
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: line
item: ShellyUNIshellyunie8db84d6b3e510163199230_VoltageADC
markLine:
data:
- name: Charging
label:
formatter: Charging
position: end
show: true
yAxis: 27.70
symbol: diamond
lineStyle:
color: red
type: solid
- name: Idling
label:
formatter: Idling
position: end
show: true
yAxis: 25.50
symbol: rectangle
lineStyle:
color: green
type: solid
- name: Discharging
label:
formatter: Discharging
position: end
show: true
yAxis: 23.00
symbol: rectangle
lineStyle:
color: green
type: solid
Can you help with markArea as well? How do you define the area to be marked. Not seeing any examples of this at all. Want to just mark an area between two yAxis values in a colour?
Charts are based on the Apache ECharts library. The Cheat Sheet (opens new window)on EChart’s website offers an interactive illustration of the concepts used in it. The openHAB UI currently supports only a subset of those:
Now just to work on the colours etc. Will probably remove the markLine in this case.
BTW I had a look at the demo site and it looks like the example is not there. Did you just test there temporarily or did you intend to leave there as an example for the future?