j-LiveStats
- 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 heightheight {Number/String}height of svg, you don't need to change it (default:100) or{String}jQuery selector for obtaining of heightcolors {String}defines custom colors for each key in the formKEY=COLOR,KEY=COLOR,KEY=COLORmax {Number}a max. limit (default0- disabled)axislines {Number/String}a count of X axis lines (default:20) orautoautomatically counts count of linesmarginW {Number}a margin forwidthmarginH {Number}a margin forheight
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.
<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>