Giter Club home page Giter Club logo

angular-font-chart's Introduction

Build Status Built with Grunt

Angular Font Chart

angular-font-chart lets you create awesome charts based on:

Demo page

http://bahaaldine.github.io/angular-font-chart

Installation

Install depedencies using bower:

bower install angular-font-chart

Add js libraries to your application:

	...
	<script src="bower_components/angular-font-chart/dist/angular-font-chart.js"></script>
    <script src="bower_components/odometer/odometer.min.js"></script>
    ...

Add css stylesheets to your application:

	<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="bower_components/angular-font-chart/dist/angular-font-chart.min.css"/>
    <link rel="stylesheet" href="bower_components/odometer/themes/odometer-theme-minimal.css"/>

Add ngFontChart module to you application

	...
	angular
	  .module('myAwesomeApp', [
	    ...
	    'ngFontChart',
	    ...
	  ])
	...

Usage

All you need is to place a ngFontChart with its attribute in your view like the following piece of code:

	...
		<ng-font-chart 
	      font="fa fa-facebook"
	      value="23"
	      start-color="#3b5998"
	      end-color="rgba(255,255,255, 0.8)">
	    </ng-font-chart> 
	...

value: the actual chart value, can be dynamically set through controller scope variable, e.g. : value="{{myScopeVariable}}". The value can also be refresh, the transition from one value to the other will be automatically done.

start-color: the start-color is the chart fill color. It's often related to the font awesome icon you are using. The color in the example is the Facebook color.

end-color: the end-color is the chart background color.

Brower compatibility

Chrome: 35 Safari: 7

angular-font-chart's People

Contributors

bahaaldine avatar

Watchers

Jean-Christophe Delmas avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.