Giter Site home page Giter Site logo

piechart.js's Introduction

piechart.js

piechart.js is an extremely lightweight & simplistic JQuery script for building css3 pie charts on the fly. This script originally spawned from a script that I created when attempting returning search result relevancy in a creative way.

It's very easy to use:

Step 1: link jquery to relevant pages:

<script src="http://code.jquery.com/jquery-latest.min.js"></script>

Step 2: upload and link piechart.css & piechart.js to relevant pages:

<script src="js/piechart.js"></script>
<link rel="stylesheet" type="text/css" href="css/piechart.css" />

Step 3: add the following bit of code to the page to create your first pie chart(seen above):

<div class="pie" title="8% 11% 6% 35% 25% 15%"></div>

Step 4: add the following to the bottom of your html file, right before the closing body tag:

<script>
	$(".pie").piechart();
</script>

Step 5: edit piechart.css to style as you see fit.

It's that easy.

NOTE: index.html contains a list of passable arguments, as well as more indepth customization information

Ian McDowell · [email protected] · http://ianmcd.com

changelog

2.1 (06.14.13) - functional as a jquery plugin, new syntax, allows for arguments(attrib)

2.0 (06.10.13) - handles multiple variables, added further details to sample index.html, updated readme

1.1 (06.07.13) - fixed readme, further commenting to .css file

1.0 (06.06.13) - initial release

piechart.js's People

Contributors

ianmcd avatar

Watchers

James Cloos 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.