Closed bj00rn closed 5 months ago
The x axis is internally used to decide what to fetch, you'll need to add an entity that uses it and maybe hide it.
The x axis is internally used to decide what to fetch, you'll need to add an entity that uses it and maybe hide it.
Thanks for quick reply! Could you give me a hint on how to do that, I would be eternally grateful 😽
I've never done such a thing. Don't the custom range buttons in the readme work by any chance?
I've never done such a thing. Don't the custom range buttons in the readme work by any chance?
The buttons seem to disappear as soon as i set raw_plotly_config: true. Is this expected behaviour?
It's probably because the x axis is not defined. Here aare the defaults raw_plotly_config removes : https://github.com/dbuezas/lovelace-plotly-graph-card/blob/eb2145598330cdab4825f902493adafe9993c1ba/src/parse-config/defaults.ts#L82
Maybe you can try reading some
It's probably because the x axis is not defined. Here aare the defaults raw_plotly_config removes :
Maybe you can try reading some
Thanks, I guess my question should be, is there a way of interactively slicing the data when using raw_plotly_config
?
Given the histogram example from the readme
type: custom:plotly-graph
entities:
- entity: sensor.openweathermap_temperature
x: $ex ys
type: histogram
title: Temperature Histogram last 10 days
hours_to_show: 10d
raw_plotly_config: true
layout:
margin:
t: 0
l: 50
b: 40
height: 285
xaxis:
autorange: true
Adjusting the hours_to_show
seems to do exactly what im looking for.
Thanks again for taking time to answer, I wasn't really trying to file this as a bug, more of a general question.
Awesome card BTW!
Describe the bug Range selector buttons are not rendering.
Im trying to reproduce the mould risk index chart from https://github.com/Strixx76/mold_risk_index/blob/master/plot.png
The chart has temperature in x-axis, and humidity on x-axis and I use functions to map values from sensors accordingly.
Here is my attempt:
The problem i am experiencing is that range selector buttons are not rendering when using
raw_plotly_config: true
Screenshots If applicable, add screenshots to help explain your problem.
yaml
Additional context Add any other context about the problem here. The example from https://github.com/dbuezas/lovelace-plotly-graph-card#range-selector-buttons works fine