ForgeComponents
en

Components

j-Stats24

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

Configuration:

  • height {Number} a height of chart (default: 120)
  • max {Number} a maximal hourly value (default: undefined)
  • tooltiplarge {Boolean} enables tooltips in larger mode (default: true)
  • tooltip {Boolean} enables tooltips (default: true)
  • tooltiptext {String} Tooltip text (default: {0})
  • border {Boolean} enables border (default: true)
  • highlight {Boolean} highlights current hour (default: false)

Use it with <ui-component name="stats24">. 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.

example.html
<ui-component name="LAZY tooltip"></ui-component>

<div style="width:300px;margin:0 auto">
	<ui-component name="stats24" path="mystats" config="height:80;tooltiptext:{0} visitors"></ui-component>
</div>

<script>
	var mystats = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30, 3, 44, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0];
</script>