Coder Social home page Coder Social logo

181 / jquery-plugin-circliful Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pguso/js-plugin-circliful

0.0 2.0 0.0 518 KB

jQuery circle statitic plugin

Home Page: http://circliful.pguso.de

License: MIT License

CSS 2.81% HTML 18.48% JavaScript 78.70%

jquery-plugin-circliful's Introduction

jquery-plugin-circliful

  • show Infos as Circle Statistics, no images used
  • based on html5 canvas and jquery
  • many options can be set as data attributes
  • fontawesome integration

How to use circliful

Include circliful & jquery to your Site

<link href="css/jquery.circliful.css" rel="stylesheet" type="text/css" />

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

If you want to use the fontawesome icons you also need to include the css file into your site.

Add an element to your Site with a unique id an the data attributes that you need, for Example:

<div id="myStat" data-dimension="250" data-text="35%" data-info="New Clients" data-width="30" data-fontsize="38" data-percent="35" data-fgcolor="#61a9dc" data-bgcolor="#eee" data-fill="#ddd" data-total="200" data-part="35" data-icon="long-arrow-up" data-icon-size="28" data-icon-color="#fff"></div>

Add this code at the end of your site

<script>
$( document ).ready(function() {
		$('#myStat').circliful();
    });
</script>

Data Options (Attributes)

you can set the options easily as data attributes for Example: data-dimension="250"

Option Description Type Default
dimension is the height and width of the element Pixel 200px on 200px
text will be displayed inside of the circle over the info element string -
info will be displayed inside of the circle bellow the text element (can be empty if you don't want to show info text) string -
width is the size of circle Pixel 15
fontsize is the font size for the text element Pixel 15
percent can be 1 to 100 Pixel integer
fgcolor is the foreground color of the circle RGB #556b2f
bgcolor is the background color of the cicle RGB #eee
fill is the background color of the whole circle (can be empty if you don't want to set a background to the whole circle) RGB -
type full or half circle for example data-type="half" if not set the circle will be a full circle string full
total If you want to display the percentage of a value for example you have 750MB Ram and at the moment are 350MB in use. You need to set data-total="750" and data-part="350" and the circle will show the percentage value 36,85% Percent -
part - Percent -
border Will change the styling of the circle. The line for showing the percentage value will be displayed inline or outline. string default
icon Fontawesome icon class without the fa- before the class for example not fa-plus just plus Font Awesome -
iconsize Will set the font size of the icon. interger -
iconcolor Will set the font color of the icon. RGB -
animationstep Will set the animation step, use 0 to disable animation, 0.5 to slow down, 2 to speed up, etc interger 1
startdegree is the degree to start animate fgcolor interger 0
bordersize set the width of the border interger 10
delay set animation delay interger 0

Examples

Small Border Width

full

Circle

full

Filled Circle

filled

Half Circle Filled

half

jquery-plugin-circliful's People

Contributors

pguso avatar wseng avatar glassp avatar sebastienbarre avatar kittinan avatar aidask avatar nihisil avatar aminulbd avatar bessl avatar shkolnik avatar boffey avatar rp6 avatar vaishaks avatar varisingh avatar wally avatar klintholland avatar roryprimrose avatar jaywhittaker 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.