Skip to content

ilios/ember-simple-charts

Repository files navigation

ember-simple-charts

Continuous Integration This project is using Percy.io for visual regression testing. Netlify Status

Simple charts for ember apps

Compatibility

  • Ember.js v4.12 or above
  • Ember CLI v4.12 or above
  • Node.js v18 or above

Installation

ember install ember-simple-charts

Usage

Data Provider

import Ember from 'ember';

const { Controller } = Ember;

export default Controller.extend({
  donutData: [
    {
      label: 'Super Cool',
      data: 100,
      description: 'Lorem Ipsum'
    },
    {
      label: 'Very Cool',
      data: 200,
      description: 'Long text description here.'
    },
  ],
});

Template:

  {{simple-chart height=250 width=250 name='donut' data=donutData}}

More examples can be found in this addons dummy application.

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.