jQuery图表插件 jqPlot实现饼状图
来源:互联网 发布:java版qq是什么意思 编辑:程序博客网 时间:2024/05/24 01:09
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>饼状图demo</title> <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.js" ></script><![endif]--> <link rel="stylesheet" type="text/css" href="jquery.jqplot.css" /> <script language="javascript" type="text/javascript" src="jquery-1.4.2.min.js" ></script> <script language="javascript" type="text/javascript" src="jquery.jqplot.js" ></script> <script language="javascript" type="text/javascript" src="plugins/jqplot.pieRenderer.js" ></script> <script type="text/javascript" language="javascript"> $(document).ready(function(){ line1 = [['李开复', 3], ['周鸿祎', 7], ['李彦宏', 2.5], ['马化腾', 6], ['马云', 5], ['丁磊', 4]]; plot1 = $.jqplot('chart', [line1], { title:'2010年度互联网红人关键词 ',//设置饼状图的标题 seriesDefaults: { fill: true, showMarker: false, shadow: false, renderer:$.jqplot.PieRenderer, rendererOptions:{ diameter: undefined, // 设置饼的直径 padding: 20, // 饼距离其分类名称框或者图表边框的距离,变相该表饼的直径 sliceMargin: 9, // 饼的每个部分之间的距离 fill:true, // 设置饼的每部分被填充的状态 shadow:true, //为饼的每个部分的边框设置阴影,以突出其立体效果 shadowOffset: 2, //设置阴影区域偏移出饼的每部分边框的距离 shadowDepth: 5, // 设置阴影区域的深度 shadowAlpha: 0.07 // 设置阴影区域的透明度 } }, legend:{ show: true,//设置是否出现分类名称框(即所有分类的名称出现在图的某个位置) location: 'ne', // 分类名称框出现位置, nw, n, ne, e, se, s, sw, w. xoffset: 12, // 分类名称框距图表区域上边框的距离(单位px) yoffset: 12, // 分类名称框距图表区域左边框的距离(单位px) } }); }); </script> </head> <body> <div id="chart" style="margin-top:20px; margin-left:20px; width:460px; height:500px;"></div> </body> </html>
0 0
- jquery图表插件jqPlot实现饼状图
- jQuery图表插件 jqPlot实现饼状图
- jQuery图表插件 jqPlot实现饼状图
- jquery图表插件--jqPlot实现柱状图
- jquery图表插件jqPlot实现曲线图
- jQuery图表插件 jqPlot API 中文说明
- jqPlot Web图表插件
- jQuery插件jqPlot图表插件——饼图例子
- 使用jquery图表插件jqplot之折线图
- 图表插件--jqplot交互示例
- jQuery图表(jqPlot,Highcharts)
- jQuery绘图插件 jqPlot
- jqPlot图表插件学习之饼状图和环状图
- jqPlot图表插件学习之饼状图和环状图
- jqPlot图表插件学习之饼状图和环状图
- jqPlot图表插件使用说明(一)
- jqPlot图表插件使用说明(二)
- jqPlot图表插件使用说明(三)
- iOS开发之第三方登录微博-- 史上最全最新第三方登录微博方式实现
- Java:抛出异常
- 利用python进行数据分析-绘图和可视化2
- MVC's Blind Structure Way
- 符号速率、码元、业务速率、信道编码、打孔
- jQuery图表插件 jqPlot实现饼状图
- 离职赔偿:不是人人都能拿到N+1
- 批注:多态实例
- Ubuntu OpenJDK / SunJDK
- 7-3数组
- swift2.0 学习笔记Eighteen
- 1.Linux C++服务器端开发技术
- Spring 的AOP--spring框架动态实现AOP
- 操作系统:I/O