ForgeComponents
en

Components

j-NoSQLcounter

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20
  • datasource must be in the form: [{ id: 201702, year: 2017, month: 2, value: 1690 }]

Configuration:

  • count {Number} a maximum bars in the chart (default: 0 === auto-count)
  • lastvalues {Boolean} shows only the last values (default: false)
  • months {String} months e.g. January,February,etc.
  • NEW limit {Number} a maximum limit for value (default: 0 - disabled)

Use it with <ui-component name="nosqlcounter">. 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
<div style="width:400px">
	<ui-component name="nosqlcounter" path="stats" style="height:40px"></ui-component>
</div>

<script>
	var stats = [{"id":"201702","year":2017,"month":2,"value":1690},{"id":"201703","year":2017,"month":3,"value":1199},{"id":"201704","year":2017,"month":4,"value":393}];
</script>