欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery插件FusionCharts實現的3D帕累托圖效果示例【附demo源碼】

 更新時間:2017年03月25日 08:49:52   作者:翱翔天地  
這篇文章主要介紹了jQuery插件FusionCharts實現的3D帕累托圖效果,結合實例形式分析了jQuery使用FusionCharts載入xml數據繪制3D帕累托圖的相關實現技巧,并附帶demo源碼供讀者下載參考,需要的朋友可以參考下

本文實例講述了jQuery插件FusionCharts實現的3D帕累托圖效果。分享給大家供大家參考,具體如下:

1、設計3D帕累托圖的頁面

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 Pareto3D圖</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 pareto3D = new FusionCharts( "FusionCharts/Pareto3D.swf", "pareto3DId", "100%", "540", "0" );
 pareto3D.setXMLUrl("pareto3D.xml");
 pareto3D.render("pareto3DChart");
});
</script>
</head>
<body>
  <div id="pareto3DChart"></div>
</body>
</html>

2、設計3D帕累托圖的數據源 pareto3D.xml:

<?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' numDivLines='8' divLineIsDashed='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>

3、設計結果

附:完整實例代碼點擊此處本站下載。

注:該源碼需要放到服務器環(huán)境下運行!否則無法加載xml文件數據。

更多關于jQuery相關內容感興趣的讀者可查看本站專題:《jQuery常用插件及用法總結》、《jquery中Ajax用法總結》、《jQuery表格(table)操作技巧匯總》、《jQuery擴展技巧總結》、《jQuery常見經典特效匯總》及《jquery選擇器用法總結

希望本文所述對大家jQuery程序設計有所幫助。

相關文章

最新評論