0.1.3 • Published 8 years ago

angular-minimal-piechart v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

angular-minimal-piechart

AngularJS Directive for minimalistic Pie Charts and Donut Chart.

Install

Download it with bower

bower install https://github.com/pasqLisena/angular-minimal-piechart

Add to your page

<link rel="stylesheet" href="bower_components/angular-minimal-piechart.css">

<script src="bower_components/angular-minimal-piechart/angular-minimal-piechart.js"></script>

Declare it as dependency in your app module definition:

angular.module('myAppModule', ['minimalPiechart']

Usage

The module expose two directives:

<piechart value="23"></piechart>
<donutchart value="45"></donutchart>

Options

  • value a number between 0 and 100 representing how much the chart is fill

Style

The color can be changed throug css

.piechart-wheel {
  stroke: rgba(255, 255, 255, .25);
}
.piechart-value {
  stroke: #fff;
}