Use JS charts to draw the table (ii)--Pie chart

Source: Internet
Author: User

As above is a pie chart:

The code is as follows:

About XML constructs for pie graphs:


<?xml version= "1.0" encoding= "UTF-8"?><jschart>  <dataset type= "pie" >    <data unit= " Zhejiang Nanfang Petrochemical Industry Co., Ltd. "value=" 1 "/>    <data unit=" Zhejiang Property e-Commerce Co., Ltd. "value=" 1 "/> <data    unit=" Zhejiang Property Metal Group Co., Ltd. "value = "4"/>    <data unit= "Zhejiang Province Property Group Company" value= "6"/>    <data unit= "provincial Group Enterprise" value= "3"/>  </dataset >  <colorset>    <color value= "#FACC00"/>    <color value= "#FB9900"/>    <color Value= "#FB6600"/>    <color value= "#FB4800"/> <color    value= "#CB0A0A"/>    <color value = "#F8F933"/>  </colorset>  <optionset>    <option set= "Settitlecolor" value= "' # 857d7d ' "/>    <option set=" Setpieunitscolor "value=" ' #9B9B9B ' "/>    <option set=" Setpievaluescolor "value=" ' #6A0000 ' "/>  </optionset></JSChart>


Forgot to upload the js file before ...

http://yun.baidu.com/share/link?shareid=648486741&uk=3341728381
Demo There are some examples, but the inside of the JS is not supported in Chinese, used in the outside of JS


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Use JS charts to draw the table (ii)--Pie chart

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.