Replies: 1 comment 13 replies
-
Hi there 👋 layout:
yaxis:
fixedrange: true |
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have a pretty simple chart which I would like to customize. I have two problems.
The first one:
I would like to set the Y axis range manually always after pushing one of the buttons. But when I zoom in or out with mouse wheel, the Y range should be not set -> therefor autorange_after_scroll:true is not a good solution.
Now what I reached is, when I push the button twice, the result is what I want. The first pushing changes the visible range according to the button, and the second one set the right Y axis range. But I would like to have it for one push. And because this solution is not working for the ‘<’ and ‘>’ buttons. Unfortunately, I’m not so familiar with JavaScript. I spent many hours to solve this problem, but without result.
The second problem is, when I use fill:tozeroy, the min value of the Y range is set to 0 when I open or refresh the HA page.
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions