Any way to write last values in the card? (not as legend) #364
Answered
by
dbuezas
luissimoes
asked this question in
Q&A
-
is there any way to write the values like in the picture (fig 1 - ApexChart)? many thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
dbuezas
Jan 24, 2024
Replies: 2 comments 4 replies
-
Yes, - type: custom:plotly-graph
entities:
- entity: sensor.openweathermap_temperature
period: hour
fn: >-
$fn ({ys, vars}) => {vars.is = ys[ys.length-1];vars.was =
ys[ys.length-2];}
- entity: ''
type: indicator
mode: number+delta
docs: >-
https://plotly.com/javascript/reference/indicator/#indicator-number
value: $fn ({ vars }) => vars.is
bgcolor: black
title:
text: Temperature
number:
suffix: °
valueformat: '0.1'
delta:
position: top
suffix: /h
reference: $fn ({ vars }) => vars.was
valueformat: '0.1'
domain:
x:
- 0
- 0.3
'y':
- 0.5
- 1
hours_to_show: 24
layout:
margin:
t: 30 See: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
luissimoes
-
Quick question. Will this be implemented in the normal card at some stage? It seems it's only available in the dev card (or did I miss something)? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes,