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.