0.2.9 • Published 6 years ago

ember-basic-charts v0.2.9

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

TravisCI Build Status Code Climate npm version

ember-basic-charts

A collection of charts written for and in Ember. No dependecies apart from the default Ember packages.

Included charts

Pie Chart

Data

slices = [
  { "label":"One",    "value":1 },
  { "label":"Two",    "value":2 },
  { "label":"Three",  "value":3 },
  { "label":"Four",   "value":4 },
  { "label":"Five",   "value":5, "color": '#006' }
]

Minimal

{{pie-chart
  slices=slices
}}

pie chart minimal

All options

{{pie-chart
  slices=slices
  slicesMax=4
  radius=70
  tilt=315
  borderColor="rgba(255,255,255,0.5)"
  bumpBy=5
  otherLabel="Other"
  otherColor="#dddddd"
  emptyColor="#eeeeee"
  noDataMessage="No data"
  seedColor="#d13f19"
}}

pie chart all options

Bar Chart

Data

data: [
  { position: 10, label: "Ten",       value: 5 },
  { position: 13, label: "Thirteen",  value: 3 },
  { position: 20, label: "Twenty",    value: 7 },
]

Usage

{{bar-chart
  data=data
}}

bar chart

Value range chart

Range

{{value-range-chart
  start=20
  stop=70
}}

range

Single line

{{value-range-chart mid=30}}

line

Line and range with altered minimum and maximum

{{value-range-chart
  min=20
  max=140
  start=30
  stop=120
  mid=50
}}

range and line

Installation

  • git clone <repository-url> this repository
  • cd ember-basic-charts
  • npm install

Running

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 https://ember-cli.com/.

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago