- Source:
- Version:
- 1.2.0
Members
(static) version
- Source:
Properties:
Name | Type | Description |
---|---|---|
version |
String | version |
Version information
Example
bb.version; // "1.0.0"
Methods
(static) generate(options) → {Chart}
- Source:
- See:
generate charts
Examples
<!-- chart holder -->
<div id="LineChart"></div>
// generate chart with options
var chart = bb.generate({
"bindto": "#LineChart"
"data": {
"columns": [
["data1", 30, 200, 100, 400, 150, 250],
["data2", 50, 20, 10, 40, 15, 25]
]
}
});
// call some API
// ex) get the data of 'data1'
chart.data("data1");
Parameters:
Name | Type | Description |
---|---|---|
options |
Options | chart options |
Returns:
- Type
- Chart