dinamically calculate array for tickvals (=== no x values for non interesting y values) #370
Unanswered
luissimoes
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Something along these lines may work. I haven't tried this before, so you may have to fix it up :) entities:
- entity: sensor.xyz
- entity: sensor.xyz
Internal: true
filters:
- filter: y>10
- store_var: xyz
layout:
xaxis:
tickvals: $ex vars.xyz.xs |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the case is a graph like the one below.
I just want to show the days where my EV was charged... and typically those are days where the energy is >= 10kWh
I have the chart, but for this to be good I want the x values to only show on those days.
My idea is to do this through tickvals.
So for this, would need to assign an array of XS values under the condition:
iy>10 => tickArray[ i ] = xs.at(i)
I couldn't add an fn function to tickvals....
any hint please?
I filtered the y values using
Beta Was this translation helpful? Give feedback.
All reactions