# j-LiveStats

> j-LiveStats: supports dark mode; responsive

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

- supports __dark mode__
- responsive


__Configuration__:

- `width {Number/String}` width of svg, you don't need to change it (default: `500`) or `{String}` jQuery selector for obtaining of height
- `height {Number/String}` height of svg, you don't need to change it (default: `100`) or `{String}` jQuery selector for obtaining of height
- `colors {String}` defines custom colors for each key in the form `KEY=COLOR,KEY=COLOR,KEY=COLOR`
- `max {Number}` a max. limit (default `0` - disabled)
- `axislines {Number/String}` a count of X axis lines (default: `20`) or `auto` automatically counts count of lines
- `marginW {Number}` a margin for `width`
- `marginH {Number}` a margin for `height`

Use it with `<ui-component name="livestats">`. 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="max-width:400px">
	<ui-component name="livestats" path="data"></ui-component>
</div>

<script>
var data = {};

setInterval(function() {
	data.count = Math.random() * 100 >> 0;
	data.users = Math.random() * 100 >> 0;
	data.orders = Math.random() * 100 >> 0;
	UPD('data');
}, 500);
</script>
```
