Use JS charts to draw charts (2) -- pie chart, jscharts

Source: Internet
Author: User

Use JS charts to draw charts (2) -- pie chart, jscharts

The above is a pie chart:

The Code is as follows:

<Html> 

Xml structure of the pie chart:


<? Xml version = "1.0" encoding = "UTF-8"?> <JSChart> <dataset type = "pie"> <data unit = "Zhejiang Southern Petrochemical Industry Co., Ltd." value = "1"/> <data unit = "Zhejiang Property Electronic Commerce Co., Ltd. company "value =" 1 "/> <data unit =" Zhejiang property metal Group Co., Ltd. "value =" 4 "/> <data unit =" Zhejiang Property Group Company "value = "6"/> <data unit = "Provincial 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>


I forgot to upload the js file before ···

Http://yun.baidu.com/share/link? Consumer id = 648486741 & uk = 3341728381
There are some examples in the demo, but the js in it does not support Chinese characters. It is used outside the js


Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.