您好,登錄后才能下訂單哦!
這篇文章給大家介紹怎么在jQuery中使用FusionWidgets實現(xiàn)一個AngularGauge效果,內(nèi)容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。
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>
關(guān)于怎么在jQuery中使用FusionWidgets實現(xiàn)一個AngularGauge效果就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。