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