-
Hello, I am trying to generate a horizontal line a y=600. The below is not drawing anything it seems, I must be missing something. type: custom:plotly-graph
refresh_interval: 10
title: Irradiance
hours_to_show: 48
entities:
- entity: sensor.sun_irradiance_home
showlegend: false
- entity: ""
name: closing
showlegend: false
line:
width: 1
dash: dot
color: deepskyblue
x: [0, Date.now()]
y: [600,600] |
Beta Was this translation helpful? Give feedback.
Answered by
dbuezas
Sep 5, 2023
Replies: 1 comment
-
Hi, Or You may be interested in shapes too (so you can define colored areas of the plot) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dbuezas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The issue here is that you can't write javascript inside the yaml like that. Try
x: [0, "$ex Date.now()"]
insteadOr
x: "$ex [0, Date.now()]"
if you plan on changing the 0 for something else (the whole array is now in javascript)You may be interested in shapes too (so you can define colored areas of the plot)
#45 (comment)