jquery插件库|jQuery插件FusionCharts绘制的2D帕累托图效果示例【附demo源码】

更新时间:2021-08-08    来源:jquery    手机版     字体:

【www.bbyears.com--jquery】

本文实例讲述了jQuery插件FusionCharts绘制的2D帕累托图效果。分享给大家供大家参考,具体如下:

1、了解帕累托图的特性以及和其他图的共性

2、设计帕累托图页面中引入图的类型以及怎么引入到页面

index.html:

1234567891011121314151617181920"-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">"Content-Type" content="text/html; charset=UTF-8">FusionCharts Pareto2D图<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">$(word">function(){ word">var pareto2D = new FusionCharts( "FusionCharts/Pareto2D.swf", "pareto2DId", "100%", "540", "0" ); pareto2D.setXMLUrl("pareto2D.xml"); pareto2D.render("pareto2DChart");});</script>  "pareto2DChart">

3、设计帕累托图的数据源

pareto2D.xml:

1234567891011121314xml 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>

4、运行结果

附:完整实例代码点击此处本站下载


本文来源:http://www.bbyears.com/wangyezhizuo/134635.html