Hi all, trying to use a case for the progress bar to set the 3 different colors based on what the value is.
I have tried using this: valueColor={switch case={case if={gt 0.01} then="#1785b0"} case={case if={gt 1.25} then="#fd7643"} case={case if={gt 1.75} then="#e62e00"} default="#ffffff"}
It doesnt work even changing the values around it doesnt work.
@u3432 Can you share the rest of your expression? I'm assuming this is for coloring a progress element?
What is the range of values you're passing into your progress? Typically, the progress element expects the context (or output from the previous function) to be a value between 0 and 1 which would not meet your last 2 cases.
Below is the full expresion after the query. The range of values is 0.001 and 2.000. The value is currently 1.581 which should be setting my second colour but for some reason isnt. Thank you for your help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.