Replies: 2 comments 1 reply
-
I am not aware of any plotly feature for that, but here's a trick you could do:
|
Beta Was this translation helpful? Give feedback.
-
Thanks, the problem is ignoring the shapes I think. How does the "autorange_after_scroll" feature works, how does it express the visible min and max of the x axis? I just need exactly this feature, but while ignoring shapes. I asked on the plotly forum but so far no one knew how to do this. They know how to define the range based on min and max value of a specific series of value, but no one could tell me so far how to "read" the currently visible min and max x... |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am attempting to have autorange "zoom in" the y axis based on min and max value displayed. I would add a 10% margin, like this:
min: (mininum value of entity sensor.xyz within visible time range)
max: (maxinum value of entity sensor.xyz within visible time range)
margin: (max - min)/10
range: [min - margin, max + margin]
My skills in plotly are far from sufficient to write this unfortunately. If someone can point me to a sample which is close enough, that would help me.
Beta Was this translation helpful? Give feedback.
All reactions