3.7.2 • Published 4 years ago
ember-cli-chart v3.7.2
Ember Chart
This Ember CLI addon is a simple wrapper for ChartJS (v2.9).
Compatibility
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
Installation
$ ember install ember-cli-chart
Usage
In your handlebars template just do:
{{ember-chart
type=CHARTTYPE
data=CHARTDATA
options=CHARTOPTIONS
width=CHARTWIDTH
height=CHARTHEIGHT
plugins=CHARTPLUGINS
customLegendElement=CUSTOMLEGENDELEMENT
}}
- CHARTTYPE: String; one of the following --
line
,bar
,radar
,polarArea
,pie
ordoughnut
. - CHARTDATA: Array; refer to the ChartJS documentation
- CHARTOPTIONS: Object; refer to the ChartJS documentation. This is optional.
- CHARTWIDTH: Number; pixel width of the canvas element. Only applies if the chart is NOT responsive.
- CHARTHEIGHT: Number; pixel height of the canvas element. Only applies if the chart is NOT responsive.
- CHARTPLUGINS: Array; refer to ChartJS documentaion. This is optional.
- CUSTOMLEGENDELEMENT: HTMLElement; A custom element to put a custom legend in, when using
legendCallback
. This is optional.
Example
{{ember-chart type='pie' data=model.chartData width=200 height=200}}
More Resources
3.7.2
4 years ago
3.7.1
4 years ago
3.7.0
4 years ago
3.6.0
4 years ago
3.5.0
5 years ago
3.4.1
5 years ago
3.4.0
7 years ago
3.3.2
7 years ago
3.3.1
7 years ago
3.3.0
7 years ago
3.2.2
7 years ago
3.2.1
7 years ago
3.2.0
7 years ago
3.1.0
8 years ago
3.0.0
8 years ago
2.0.6
8 years ago
2.0.5
9 years ago
2.0.4
9 years ago
2.0.3
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago