1、瞭解帕累托圖的特性以及和其他圖的共性
2、設計帕累托圖頁面中引入圖的類型以及怎麼引入到頁面
Pareto2D.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>FusionCharts Pareto2D</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="../scripts/jquery-2.0.3.js"></script> <script type="text/javascript" src="../scripts/Charts/FusionCharts.js"></script> <script type="text/javascript"> $(function(){ var pareto2D = new FusionCharts( "../scripts/Charts/Pareto2D.swf", "pareto2DId", "100%", "540", "0" ); pareto2D.setXMLUrl("data/pareto2D.xml"); pareto2D.render("pareto2DChart"); }); </script> </head> <body> <div id="pareto2DChart"></div> </body></html>
3、設計帕累托圖的資料來源
pareto2D.xml:
<?xml version="1.0" encoding="UTF-8"?><chart caption="一周統計人數" 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>
4、運行結果