ember-cli-chartjs

3.0.0 • Public • Published

Ember Chart

npm version Build Status Ember Observer Score Ember badge

This Ember CLI addon is a simple wrapper for ChartJS (v2.1.6). This addon uses Ember-CLI v2.6.2.

Installation

$ ember install ember-cli-chartjs

Usage

In your handlebars template just do:

{{ember-chart type=CHARTTYPE data=CHARTDATA options=CHARTOPTIONS width=CHARTWIDTH height=CHARTHEIGHT}}
  • CHARTTYPE: String; one of the following -- line, bar, radar, polarArea, pie or doughnut.
  • 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.

Example

{{ember-chart type='Pie' data=model.chartData width=200 height=200}}

Readme

Keywords

Package Sidebar

Install

npm i ember-cli-chartjs

Weekly Downloads

101

Version

3.0.0

License

MIT

Unpacked Size

23.6 kB

Total Files

13

Last publish

Collaborators

  • achoudhaytw
  • jranitw
  • rtiwaditw
  • nshuklatw
  • sgudurutw
  • vsinghtw
  • rgargtw
  • jasonwilliamsalign
  • software_admin
  • thrackle
  • andrey.reshetnikov
  • seansmithalign
  • emmat
  • rickydbb
  • jrushton
  • robotsguide
  • hatunike
  • busyrick
  • cruzogden
  • pjvea
  • simon4kotlin
  • jrmadrid
  • busybot
  • donaldtimpson
  • suclimbing