0.1.1 • Published 5 years ago

dashbi-widget-chart v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

dashbi-widget-chart

Dashbi widget that displays chart using chartist.js

screenshot

Usage

Install

npm install --save dashbi-widget-chart

Register

Dashbi should detect and auto-register widget.

Configuration

NameTypeDescription
typeStringType of chart. Options: Line, Bar, Chart
useStateKeyStringWhich state key should be used for data presentation
optionsObjectAdditional chartist.js options

Example

Lets' say that some-data-provider provides state which has key randomNumber:

dashbiLayout.addWidget({
  name: 'chart',
  title: 'My Line Chart',
  params: {
    type: 'Line',
    useStateKey: 'randomNumber',
    options: {
      low: 0,
      hight: 1000
    }
  },
  source: {
    name: 'some-data-provider'
  }
});
0.1.1

5 years ago

0.1.0

5 years ago