導讀跟大家講解下有關jQuery插件FusionCharts繪制餅狀圖,相信小伙伴們對這個話題應該也很關注吧,現在就為小伙伴們說說jQuery插件FusionCharts
跟大家講解下有關jQuery插件FusionCharts繪制餅狀圖,相信小伙伴們對這個話題應該也很關注吧,現在就為小伙伴們說說jQuery插件FusionCharts繪制餅狀圖,小編也收集到了有關jQuery插件FusionCharts繪制餅狀圖的相關資料,希望大家看到了會喜歡。
這次給大家帶來jQuery插件FusionCharts繪制餅狀圖,jQuery插件FusionCharts繪制餅狀圖的注意事項有哪些,下面就是實戰案例,一起來看一下。1、了解帕累托圖的特性以及和其他圖的共性
2、設計帕累托圖頁面中引入圖的類型以及怎么引入到頁面
index.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>FusionCharts Pareto2D圖</title><script type="text/javascript" src="jquery-1.7.2.min.js"></script><script type="text/javascript" src="FusionCharts/FusionCharts.js"></script><script type="text/javascript">$(function(){ var pareto2D = new FusionCharts( "FusionCharts/Pareto2D.swf", "pareto2DId", "100%", "540", "0" ); pareto2D.setXMLUrl("pareto2D.xml"); pareto2D.render("pareto2DChart");});</script></head><body> <p id="pareto2DChart"></p></body></html>pareto2D.xml:3、設計帕累托圖的數據源
<?xml version="1.0" encoding="UTF-8"?><chart caption="(jb51.net)一周統計人數" xAxisName="星期" PYAxisName ="人數" plotGradientColor="" showValues='0' baseFont='微軟雅黑' baseFontSize='20' baseFontColor='#654545' outCnvBaseFont='宋體' outCnvBaseFontSize='24' outCnvBaseFontColor='#989899' drawAnchors='1' anchorSides='4' anchorRadius='10' anchorBorderColor='#FF0000' anchorBorderThickness='1' anchorBgColor='#00FF00' anchorAlpha='50' anchorBgAlpha='50' numpLines='8' pLineIsDashed='1'> <set label="星期一" value="205"/> <set label="星期二" value="165"/> <set label="星期三" value="85"/> <set label="星期四" value="62"/> <set label="星期五" value="73"/> <set label="星期六" value="109"/> <set label="星期日" value="121"/></chart>相信看了本文案例你已經掌握了方法,更多精彩請關注php中文網其它相關文章!
推薦閱讀:
jQuery實現單行公告輪播
jquery插件擴展使用詳解
jQuery判斷瀏覽器版本的方法
以上就是jQuery插件FusionCharts繪制餅狀圖的詳細內容,更多請關注php中文網其它相關文章!
來源:php中文網