Chart.js Chart Library case appreciation, pie chart Add text

Source: Internet
Author: User
Tags radar

Chart.js Chart Library case appreciation, pie chart Add text

Chart.js is an impressive library of JavaScript charts based on HTML5 Canvas. Currently, it supports 6 chart types (line chart, bar chart, radar chart, pie chart, histogram, and polar region area). Moreover, this is a standalone package that does not rely on third-party JavaScript libraries, which are less than 5KB.

The day before yesterday used a bit, because before also slightly used, today summed up a bit (level limited, if the problem, please advise):

Developing Chinese documents: http://www.bootcss.com/p/chart.js/docs/

Chart.js Download:

All the icons are written all over, and all the controllable attributes (color, etc.) are random numbers appear, the size of their own control;

This is all the code, only one chart.js external file, which draws to be used:

<!doctype html>

Project needs to write on the pie chart (finally useless), found a master after the source of the file: http://download.csdn.net/detail/renfufei/7102809

Specific practices:

Pie chart, adding text
1. Modify the chart.js, roughly 772 lines of code, you can also search [email protected]
2. The example is samples/pie.html, using the UTF-8 encoding

--var Piedata = [{value:30,color: "#F38630", Text: "Boy"},{value:50,color: "#E0E4CC", Text: "Schoolgirl"},{value:100,color: "#6 9d2e7 ", Text:" Man "}];--

Chart.js Chart Library case appreciation, pie chart Add text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.