Install
npm install --save <%= moduleName %>
Usage
The chart module accepts one parameter, an options object.
var Chart = require('<%= moduleName %>');
var chart = new Chart(options);
chart.render([{x, y}, {x, y}, {x, y}]);
Example: Defaults Chart default settings
API
All methods listed below are available after instantiating a new DotChart
.
init()
Function description.
render(data, [options])
Function description.
update(data)
Function description.
destroy()
Function description.
Options
Some generic comment about all the options before going into specifics.
target
Type: string
Default: '#chart'
The element selector.
height
Type: integer
Default: 80
The maximum height of the chart area.
target
Type: string
Default: '#chart'
The element selector.
width
Type: integer
Default: 500
The maximum width of the chart area.
License
MIT © <%= name %>