Just saw this post and was wondering if there was any update to this?
I’ve also considered using three different line segments and having them only display if there values are about a certain value. And while this
({{value}} > 85) * {{value}}
gets 100-85 or 0
I wish it was something more like this
{{value}} > 85 ? {{value}} : undefined
Which would be 100-85, or no value displayed at all, but ternary doesn’t work as far as I can tell in the graph expressions
Sorry, no updates on that old feature request.
I’ve been playing with our expression testers for the past 30 minutes and I cannot come up with anything better than your workaround of ({{value}} > 85) * {{value}}
. You are correct that you cannot use ternaries in expressions; I’m going to see if that is something we can resolve.
I also just tried
{{value}} / ( {{value}} > 85)
Which just evaluated out to {{value}}
even
{{value}}/0}}
evaluates to {{value}}
typing in just
undefined
evaluates to 0 which is guess is the truthiness, specifically for this uses case of merging the different color lines I was hoping there was a way for it to not display a value at all but that probably doesnt make sense in a broader scope or if the colors could change based on value