Draw simple pie bar chart.
- Source:
Methods
(private, static) bar(options, i) → {object}
Calculates size and position for a bar
Parameters:
Name | Type | Description |
---|---|---|
options | object | |
i | number | Index for bar to calculate |
- Source:
Returns:
height, width, x and y for bar
- Type
- object
(static) init(idopt) → {array}
Initialize the component
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id | external:jQuery | string | <optional> | Selector or jQuery element |
- Source:
Returns:
Returns array of all targeted elements
- Type
- array
(static) render(id) → {external:jQuery}
Render the chart
Parameters:
Name | Type | Description |
---|---|---|
id | external:jQuery | string | Selector or jQuery element |
- Source:
Fires:
- event:rendered
Returns:
jQuery element
- Type
- external:jQuery
(static) series(id, data) → {external:jQuery}
Updates data for the chart
Parameters:
Name | Type | Description |
---|---|---|
id | external:jQuery | string | Selector or jQuery element |
data | string | array | An array of values or string JSON can parse to array |
- Source:
Returns:
jQuery element
- Type
- external:jQuery
(static) update(idopt) → {external:jQuery}
Updates the chart with data in series
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id | external:jQuery | <optional> | Selector or jQuery element |
- Source:
Returns:
jQuery element
- Type
- external:jQuery