» » Use jQuery and HTML5 to create circular chart

 

Use jQuery and HTML5 to create circular chart

Author: bamboo06 on 3-11-2014, 01:29, views: 8365

28
Today I give you about a circular chart circliful, which is based on the HTML5 Canvas and jQuery, without the use of images for easy circular chart, and there are many property settings, very easy to use.

How to use circliful
The jquery library files and jquery.circliful.min.js introduced to the page.
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> 
<script src="js/jquery.circliful.min.js"></script> 

Add css style:
<style> 
.circliful { 
    position: relative;  
} 
.circle-text, .circle-info, .circle-text-half, .circle-info-half { 
    width: 100%; 
    position: absolute; 
    text-align: center; 
    display: inline-block; 
} 
.circle-info, .circle-info-half { 
    color: #999; 
} 
.circliful .fa { 
    margin: -10px 3px 0 3px; 
    position: relative; 
    bottom: 4px; 
} 
</style> 

Add the following html code where you need to show the position of the chart :
<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"></div> 

Then call the circliful code in the page:
<script> 
$( document ).ready(function() { 
        $('#myStat').circliful(); 
    }); 
</script> 

Then preview the page, you will see a very simple and beautiful circular chart.
Option
Circliful provides a rich set of attribute options, based on the data attributes html5. For the latest version of circliful please visit: https: //github.com/pguso/jquery-plugin-circliful.

Category: Javascript / HTML5

Dear visitor, you are browsing our website as Guest.
We strongly recommend you to register and login to view hidden contents.
<
  • 0 Comments
  • 0 Articles
21 February 2016 17:53

Athira Kumar

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This is what i exactly wanted....!!!

<
  • 0 Comments
  • 0 Articles
29 June 2017 22:57

Alizay Mark

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This article is really contains allocate information about this subject Buy essay online. We have examined your beginning and end the information a couple of centers are furthermore awesome and some generally are glorious.

<
  • 0 Comments
  • 0 Articles
1 July 2017 02:16

Alina Amanda

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Well the two are completely different things. HTML dictates the content and layout of the page, and if you are not using external style sheets, it dictates the style too. But JQuery is a javascript library, and javascript does something completely different, even though Write Cheap Essay Online & you can change content, layout and style via javascript, it is mainly used to dictate the behavior of the site - i.e, what happens when you interact with what.

<
  • 0 Comments
  • 0 Articles
4 July 2017 18:12

Ronald Thomas

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
The focus of the drug is the individual to treat their disease. There are several treatment facilities that are amazing support and treatment of patients in a brilliant decent way dissertation help uk. The writing of the article allows us to realize that this treatment facility is rare and they should be enjoyed by their great treatment with it clients.

<
  • 0 Comments
  • 0 Articles
4 July 2017 22:51

50hospitals.com

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
50Hospitals.com is a online portal where users can search information regarding hospitals in all 50 states of US 50hospitals.com

<
  • 0 Comments
  • 0 Articles
7 July 2017 18:22

joe

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
But the replica rolex watches leap year shows a different, it can replica watches uk play a reminder role is very obvious, although the Cheap Replica Watches Uk leap year in our lives is not so important. But because it is not important, so we will always ignore. For example

<
  • 0 Comments
  • 0 Articles
9 July 2017 14:03

cshang

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
It looks like we're gearing up for christian louboutin outlet uk another summer filled with wicker and straw totes, and we're glad the trend is back for (at least) one more season of cheap oakley sunglasses structured, beach-ready carryalls that actually hold all your crap. There are myriad versions of replica miu miu handbags the woven accessories on offer, but Poolside Bags' take on the trend stands out: You may have spotted the New York-based brand's leather-handled totes, festooned with hand-embroidered cheeky, zeitgeist-y phrases Longchamp Outlet and song lyrics in bright, thick yarn.

<
  • 0 Comments
  • 0 Articles
11 July 2017 12:36

123123

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Every fake watches pulls out all the stops to showcase its latest innovations and technical movements during BaselWorld.In 1968, Hamilton rolled out fake rolex watches, but three professional replica orologi rolex that would become horological classics.Vous pouvez même jouer avec les couleurs des bijoux et accorder vos bracelets à votre replique montre.

<
  • 0 Comments
  • 0 Articles
21 September 2017 21:39

warrenzephaniah

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
JQuery is a javascript library, and javascript accomplishes something totally extraordinary, despite the fact that Professional Dissertation Writers UK and you can change substance, design and style by means of javascript, it is basically used to direct the conduct of the site - i.e, what happens when you interface with what.

<
  • 0 Comments
  • 0 Articles
21 September 2017 21:41

brucebrennan

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
The concentration of the medication is the person to treat their infection. There are a few treatment offices that are astounding help and treatment of patients in a splendid better than average way Dissertation Help. The written work of the article enables us to understand that this treatment office is uncommon and they ought to be delighted in by their extraordinary treatment with it customers.

<
  • 0 Comments
  • 0 Articles
27 September 2017 01:27

Ashley Taylor

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This is an awesome blog. This written work style is great. I think you have great written work aptitudes enable you to discuss your message effortlessly to a far bigger gathering of people than through up close and personal or phone discussions http://www.papersshack.com/do-my-assignment/

<
  • 0 Comments
  • 0 Articles
6 November 2017 22:11

Robinjack

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I'm happy to see the considerable subtle element here!. Profile Backlinks

<
  • 0 Comments
  • 0 Articles
20 November 2017 22:22

Robinjack

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I truly thank you for the profitable information on this awesome subject and anticipate more incredible posts. Much obliged for getting a charge out of this excellence article with me. I am valuing it all that much! Anticipating another awesome article. Good fortunes to the creator! All the best! autoradio gps 2017 web site click

<
  • 0 Comments
  • 0 Articles
22 November 2017 04:33

ASD

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I'm happy I discovered this site, I couldn't discover any learning on this matter earlier to.Also work a webpage and in the event that you are ever inspired by doing some guest composing for me if conceivable don't hesitate to tell me, im dependably search for individuals to look at my site. autoradio android 2018 web site click

<
  • 0 Comments
  • 0 Articles
27 November 2017 05:20

ASD

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Much obliged to you for such an elegantly composed article. It's brimming with adroit data and enthralling portrayals. Your perspective is the best among numerous. bubble wrap

<
  • 0 Comments
  • 0 Articles
29 November 2017 04:15

ASD

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
a debt of gratitude is in order for the tips and information..i truly value it..
Design Rhode Island

<
  • 0 Comments
  • 0 Articles
6 December 2017 22:26

Robinjack

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Much obliged to you so much Love your site.. Service Komputer Bali

<
  • 0 Comments
  • 0 Articles
12 December 2017 16:49

Robinjack

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Your work is great and I value you and bouncing for some more enlightening posts. Much obliged to you for sharing awesome data to us. click here to investigate

<
  • 0 Comments
  • 0 Articles
13 December 2017 20:40

AvaAddams

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.AGTK Stock Price

very interesting keep posting.ALL Stock

<
  • 0 Comments
  • 0 Articles
28 December 2017 23:53

jacob william

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
This is an awesome blog. This written work style is great. I think you have great written work aptitudes enable you to discuss your message effortlessly to a far bigger gathering of people than through up close and personal or phone discussions
postmates promo code reddit

<
  • 0 Comments
  • 0 Articles
3 January 2018 16:49

warrenzephaniah

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Discover the style of fantastic food with Grubhub. If you’re yearning for eating house Grubhub coupons, then you’ve come back to the correct place. Below, you’ll realize a listing of well-liked places that has best food in town. Having coupons for eating house to be had is usually an honest plan for treating the family to dinner or AN ex to lunch. the foremost recent and in demand provide is $7 Off Orders of $15+ … Up to three Off Total Purchase With a reduction eGift Card. <a href="http://grubhubpromocodes.com/food-coupons/grubhub-promo-codes/"&
gt;Grubhub Promo Codes</a>

<
  • 0 Comments
  • 0 Articles
4 January 2018 14:35

Sophia

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Ubereats Promo Code For Existing Users : Hungry? Get the food you want, from the restaurants you love, delivered at Uber speed. Eat what you like, where you like, when you like. Find the local flavors you crave, all at the tap of a button. Grab Huge Discounts On Online Food Ordering with our Ubereats promo Code For Existing Users & Coupon Code.<a href="http://www.ubereatspromocode2018.com/ubereats-promo-code/">Ub
ereats Promo Code</a>

<
  • 0 Comments
  • 0 Articles
17 January 2018 04:46

ASD

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Much obliged for setting aside an ideal opportunity to examine this, I feel unequivocally that affection and read more on this theme. On the off chance that conceivable, for example, pick up learning, would you mind overhauling your site with extra data? It is extremely valuable for me. <a href="http://business123.us/">USA Web directory</a>

<
  • 0 Comments
  • 0 Articles
21 January 2018 05:25

ASD

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Much obliged for setting aside an ideal opportunity to examine this, I feel unequivocally that affection and read more on this theme. On the off chance that conceivable, for example, pick up learning, would you mind overhauling your site with extra data? It is extremely valuable for me. <a href="http://www.power-generation.weebly.com">Renewable Energy</a>

Truly an incredible expansion. I have perused this magnificent post. A debt of gratitude is in order for sharing data about it. I truly like that. Much obliged so parcel for your assemble. <a href="http://www.power-generation.weebly.com">Energy source</a>

it was a brilliant opportunity to visit this sort of site and I am cheerful to know. much obliged to you such a great amount for allowing us to have this open door.. Renewable Energy

<
  • 0 Comments
  • 0 Articles
25 January 2018 22:54

ASD

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
It is basic that we read blog entry painstakingly. I am as of now done it and find this post is truly astounding. book cheap hotels

Fascinating and stunning how your post is! It Is Useful and accommodating for me That I like it all that much, and I am anticipating Hearing from your next.. horticultural therapeutic in Chesterfield

I am glad to locate your recognized method for composing the post. Presently you make it simple for me to comprehend and actualize the idea. Much obliged to you for the post. food for spirit

Much obliged for setting aside an ideal opportunity to examine this, I feel unequivocally that affection and read more on this theme. On the off chance that conceivable, for example, pick up learning, would you mind overhauling your site with extra data? It is extremely valuable for me. moving checklist app

<
  • 0 Comments
  • 0 Articles
27 January 2018 03:26

adnan

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
Much obliged for setting aside an ideal opportunity to examine this, I feel unequivocally that affection and read more on this theme.. High Trust Flow

<
  • 0 Comments
  • 0 Articles
29 January 2018 03:31

ASD

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
You know your tasks emerge of the crowd. There is something exceptional about them. It appears to me every one of them are truly splendid! cbd oil in florida

<
  • 0 Comments
  • 0 Articles
4 February 2018 21:29

Robinjack

Reply
  • Group: Guests
  • РRegistered date: --
  • Status:
 
I cherish the way you compose and share your specialty! Extremely intriguing and diverse! Keep it coming! http://tradeonlinemarket.com/

Information
Comment on the news site is possible only within (days) days from the date of publication.