Replies: 1 comment
-
You can get the visible range with An alternative that may work is to change the parameters via buttons which store things in vars. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement a bar chart showing energy consumption in kWh. By default, I'd like the integration/reporting interval to be 1 hour, however when I zoom out, I'd like to switch to daily, weekly or monthly figures and adjust the bar width and y axis accordingly.
The code below works to some extent but the bar width keeps changing erratically when I zoom in/out or pan the view. Setting the width manually does not work because it would have to be a constant fraction of the X-axis range.
Also, I'd like to fix the Y-axis ranges to 4 different values for period=hour/day/week/month but still being fixed within a single period.
Code:
Beta Was this translation helpful? Give feedback.
All reactions