# ember-cli-piechart

> A very simple Canvas based Ember CLI addon for creating pie charts

Latest version **0.5.0** (published 2016-11-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install ember-cli-piechart
pnpm add ember-cli-piechart
yarn add ember-cli-piechart
bun add ember-cli-piechart
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.0 |
| Published | 2016-11-18 |
| First published | 2016-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | dhilipsiva |
| Maintainers | dhilipsiva |
| Keywords | ember-addon, pie, chart, piechart, pie-chart, canvas |

## Links

- npm: https://www.npmjs.com/package/ember-cli-piechart
- Repository: https://github.com/dhilipsiva/ember-cli-piechart
- Homepage: https://github.com/dhilipsiva/ember-cli-piechart#readme
- Issues: https://github.com/dhilipsiva/ember-cli-piechart/issues
- npm.io page: https://npm.io/package/ember-cli-piechart

## Dependencies (2)

- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^5.1.6
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^1.1.0

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.5.0 (latest) — 2016-11-18
- 0.4.3-pre.0 (undefined) — 2016-11-18
- 0.4.2 — 2016-10-26
- 0.4.0 — 2016-10-25
- 0.3.3-pre.0 — 2016-10-25
- 0.3.2 — 2016-10-23
- 0.3.1 — 2016-10-21
- 0.3.0 — 2016-10-13
- 0.2.0 — 2016-10-04
- 0.2.0-0 — 2016-10-04
- 0.1.0 — 2016-10-04

## README

# ember-cli-piechart

This README outlines the details of collaborating on this Ember addon.

# Usage

`ember install ember-cli-piechart`

`{{pie-chart data=model height=100 width=100}}`

where `data` is an array of `{"value", "color"}`. `height` and `width` of canvas is optional.

A valid `data` might look like this:

```
var data = [
  {"value": 1, "color": "red"},
  {"value": 4.5, "color": "blue"},
  {"value": 2, "color": "yellow"},
  {"value": 3, "color": "green"}
];
```

which will render a pie chart in a canvas like this:

![ember-cli-piechart](https://raw.githubusercontent.com/dhilipsiva/ember-cli-piechart/master/ember-cli-piechart.png)


# Development

## Installation

* `git clone <repository-url>` this repository
* `cd ember-cli-piechart`
* `npm install`
* `bower install`

## Running

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).

## Running Tests

* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building

* `ember build`

For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).

---
_Source: https://npm.io/package/ember-cli-piechart · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
