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

jQuery插件FusionWidgets實現(xiàn)的AngularGauge圖效果示例【附demo源碼】

 更新時間:2017年03月23日 10:51:21   作者:翱翔天地  
這篇文章主要介紹了jQuery插件FusionWidgets實現(xiàn)的AngularGauge圖效果,結(jié)合具體實例形式分析了jQuery使用FusionWidgets插件載入xml數(shù)據(jù)實現(xiàn)AngularGauge圖的相關(guān)操作技巧,并附帶demo源碼供讀者下載參考,需要的朋友可以參考下

本文實例講述了jQuery插件FusionWidgets實現(xiàn)的AngularGauge圖效果。分享給大家供大家參考,具體如下:

1、設(shè)置AngularGauge圖的數(shù)據(jù)源

AngularGauge.xml:

<?xml version="1.0" encoding="UTF-8"?>
<chart lowerLimit="0" upperLimit="100" lowerLimitDisplay="差" upperLimitDisplay="好"
    numberSuffix="%" showValue="1" baseFontSize="16" showBorder="1">
 <colorRange>
  <color minValue="0" maxValue="60" code="FF0000"/>
  <color minValue="60" maxValue="70" code="00FF00"/>
  <color minValue="70" maxValue="80" code="0000FF"/>
  <color minValue="80" maxValue="90" code="FF654F"/>
  <color minValue="90" maxValue="100" code="8BBA00"/>
 </colorRange>
 <dials>
  <dial value="60"/>
 </dials>
</chart>

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>FusionWidgets AngularGauge圖</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 angularGauge = new FusionCharts( "FusionCharts/AngularGauge.swf", "angularGaugeId", "100%", "580", "0"   ); 
    angularGauge.setXMLUrl("AngularGauge.xml"); 
    angularGauge.render("angularGaugeDiv"); 
  }); 
</script>
</head>
<body>
  <div id="angularGaugeDiv"></div>
</body>
</html>

3、運行效果圖如下:

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

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

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

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

相關(guān)文章

最新評論