Hello
Is it possible to create a dynamic gauge in Canvas, just like on visualisation dashboard, setting a goal from data?
Thank you
Hugo
Hello
Is it possible to create a dynamic gauge in Canvas, just like on visualisation dashboard, setting a goal from data?
Thank you
Hugo
Hi @Hugo_Pires,
Should be possible,
Try using Progress > Gauge element.
And then using condition change it's color.
Something like this:
filters
| demodata
| math "mean(percent_uptime)"
| progress shape="gauge" label={formatnumber 0%} font={font size=24 family="'Open Sans', Helvetica, Arial, sans-serif" color="#000000" align=center} valueColor={switch case={case if={all {gt 0.75} {lt 0.9}} then="yellow"} case={case if={gte 0.9} then="red"} default="green"}
| render
Thank you.
That's very useful. But I would like also to know how to set dynamic maximum - the total based on percentage is calculated.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.