industrial-js
industrial-js copied to clipboard
is it possible to add a regions ?
Hi There,
thanks for create this amazing gauge. anyway just wondering, is it possible to create the region, if in low level : the color become red, and if too high already almost 100, the color become yellow.
thank you
If you mean coloring certain regions of a gauge, you would likely need to create extra elements to overlay the gauge with your chosen colors. This is not currently possible without creating and styling these extra elements.
However, you could also color the gauge tick marks themselves if you desired by simply calculating which tick marks are in a particular range (e.g. on initialization, pick the tick marks you would consider to be "low level" and then color them red with the jQuery .css()
method).