FusionWidgets之AngularGauge图
2014-03-01 21:17
267 查看
1、设置AngularGauge图的数据源
AngularGauge.xml:
2、JSP页面
AngularGauge.jsp:
3、设计结果
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、JSP页面
AngularGauge.jsp:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!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="../Chart/JS/jquery-2.1.0.js"></script> <script type="text/javascript" src="../Chart/JS/FusionCharts.js"></script> <script type="text/javascript"> $(function(){ var angularGauge = new FusionCharts( "../Chart/SWF/AngularGauge.swf", "angularGaugeId", "100%", "580", "0" ); angularGauge.setXMLUrl("xml/AngularGauge.xml"); angularGauge.render("angularGaugeDiv"); }); </script> </head> <body> <div id="angularGaugeDiv"></div> </body> </html>
3、设计结果
相关文章推荐
- bootstrap + angularjs + seajs构建Web Form前端(1)
- AngularJS开发指南
- AngularJS Boostrap Pagination Sample
- [JS] Use repeat and list directives in AngularJS
- 我的angularjs第三步
- 我的angularjs第二步
- 我的angularjs第一步
- Q12——Highly divisible triangular number
- angularjs + seajs构建Web Form前端(一)
- angularjs的事件 $broadcast and $emit and $on
- angularjs暂记
- AngularJs遇到的小坑与技巧
- 细说angular Form addControl方法
- poj 1948 Triangular Pastures 小结
- Webix AngularJS
- Angularjs中provider,factory和service的不同
- Angularjs中provider,factory和service的不同
- angularjs中post请求时, 参数列表不为form-data
- AngularJs学习笔记--bootstrap
- The basics of using ui-router with AngularJS