jQuery pie chart development example_jquery
The example in this article describes the method of developing jQuery pie chart. Share it with everyone for your reference. The specific analysis is as follows:
Here we would like to introduce to you a pie chart, circliful, which is based on HTML5 canvas and jQuery. It is easy to implement a pie chart without using images, and it has many attribute settings, making it very convenient to use. The rendering is as follows:
First we need to introduce the jquery library file and jquery.circliful.min.js into the page.
After the required Jquery files are introduced, now we can customize the basic style of the pie chart:
After the style is initially defined, you only need to add the following style code where the statistical chart is needed:
data-width="30" data-fontsize="38" data-percent="35" data-fgcolor="#61a9dc"
data-bgcolor="#eee" data-fill="#ddd">
After filling out the area block, we now need to initialize it:
<script> <br> $(document).ready(function() { <br> $('#myStat').circliful(); <br> }); <br> </script>
It’s that simple, you can complete a handsome statistical chart with just a few clicks.
The following is the basic attribute description of the plug-in:
Circliful provides a rich set of attribute options, based on the data attribute of html5. The following is the setting list.
Parameters | Description | Default value |
data-dimension | The width and height of the circular image are px | 250 |
data-text | Text content displayed inside the circle | empty |
data-info | Description information displayed under data-text | empty |
data-width | Thickness of circle px | 15 |
data-fontsize | Circle text size px | 15 |
data-percent | Circle statistics percentage, 1-100 | 50 |
data-fgcolor | Foreground color of the circle | #556b2f |
data-bgcolor | Background color of the circle | #eeeeee |
data-fill | Circular fill background color | empty |
data-type | Circle statistics type, can be "half" or "full" | full |
data-total | Total amount of data, used in conjunction with data-part | empty |
data-part | Data volume, used in conjunction with data-total | empty |
data-border | Circular style, you can add borders, such as inline or outline | empty |
data-icon | Fontawesome icon style, for details, please refer to: Fontawesome Website – Icons | empty |
data-icon-size | Icon size | empty |
data-icon-color | Icon color | empty |
I hope this article will be helpful to everyone’s jQuery programming.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



First, draw a circle in PPT, then insert a text box and enter text content. Finally, set the fill and outline of the text box to None to complete the production of circular pictures and text.

This AI-assisted programming tool has unearthed a large number of useful AI-assisted programming tools in this stage of rapid AI development. AI-assisted programming tools can improve development efficiency, improve code quality, and reduce bug rates. They are important assistants in the modern software development process. Today Dayao will share with you 4 AI-assisted programming tools (and all support C# language). I hope it will be helpful to everyone. https://github.com/YSGStudyHards/DotNetGuide1.GitHubCopilotGitHubCopilot is an AI coding assistant that helps you write code faster and with less effort, so you can focus more on problem solving and collaboration. Git

How to make a circular picture in ppt: 1. Use the crop function; 2. Use the shape tool; 3. Use shortcut keys and control points to adjust.

Go language development mobile application tutorial As the mobile application market continues to boom, more and more developers are beginning to explore how to use Go language to develop mobile applications. As a simple and efficient programming language, Go language has also shown strong potential in mobile application development. This article will introduce in detail how to use Go language to develop mobile applications, and attach specific code examples to help readers get started quickly and start developing their own mobile applications. 1. Preparation Before starting, we need to prepare the development environment and tools. head

On March 3, 2022, less than a month after the birth of the world's first AI programmer Devin, the NLP team of Princeton University developed an open source AI programmer SWE-agent. It leverages the GPT-4 model to automatically resolve issues in GitHub repositories. SWE-agent's performance on the SWE-bench test set is similar to Devin, taking an average of 93 seconds and solving 12.29% of the problems. By interacting with a dedicated terminal, SWE-agent can open and search file contents, use automatic syntax checking, edit specific lines, and write and execute tests. (Note: The above content is a slight adjustment of the original content, but the key information in the original text is retained and does not exceed the specified word limit.) SWE-A

Android development is a busy and exciting job, and choosing a suitable Linux distribution for development is particularly important. Among the many Linux distributions, which one is most suitable for Android development? This article will explore this issue from several aspects and give specific code examples. First, let’s take a look at several currently popular Linux distributions: Ubuntu, Fedora, Debian, CentOS, etc. They all have their own advantages and characteristics.

As a fast and efficient programming language, Go language is widely popular in the field of back-end development. However, few people associate Go language with front-end development. In fact, using Go language for front-end development can not only improve efficiency, but also bring new horizons to developers. This article will explore the possibility of using the Go language for front-end development and provide specific code examples to help readers better understand this area. In traditional front-end development, JavaScript, HTML, and CSS are often used to build user interfaces

"Understanding VSCode: What is this tool used for?" 》As a programmer, whether you are a beginner or an experienced developer, you cannot do without the use of code editing tools. Among many editing tools, Visual Studio Code (VSCode for short) is very popular among developers as an open source, lightweight, and powerful code editor. So, what exactly is VSCode used for? This article will delve into the functions and uses of VSCode and provide specific code examples to help readers
