# j-Gauge

> j-Gauge options: decimals, format, colors, text, stroke

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 665fdef3bf4a4e9f4c6f5987a29a9ff78aa09f0d216765f160673db872c5d689
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

__Configuration__:

- `decimals {Number}` a count of decimals (default: `1`)
- `format {String}` a format for text (default: `{0}%`)
- `colors {String}` colors in the form `PERCENTAGE #COLOR STROKEWIDTH` (default: `30 #8CC152 25,40 #EDBC5A 25,30 #DB3737 25`)
- `text {Boolean}` enables text (default: `true`)
- `stroke {Number}` a default stroke width (default: `25`)

Use it with `<ui-component name="gauge">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<div style="width:200px">
	<ui-component name="gauge" path="cpu"></ui-component>
</div>

<script>
	setInterval(function() {
		SET('cpu', (Math.random() * 100));
	}, 1500);
</script>
```
