# j-NoSQLcounter

> j-NoSQLcounter: easy usage; datasource must be in the form: [{ id: 201702, year: 2017, month: 2, value: 1690 }]

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

- 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.

```html 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>
```
