<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>EASY饼图数据统计Jquery插件 - 网页模板</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script type="text/javascript" src="js/excanvas.js"></script>
<script type="text/javascript" src="js/jquery.easy-pie-chart.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/jquery.easy-pie-chart.css" media="screen">
<script type="text/javascript">
var initPieChart = function() {
$('.percentage').easyPieChart({
animate: 1000
});
$('.percentage-light').easyPieChart({
barColor: function(percent) {
percent /= 100;
return "rgb(" + Math.round(255 * (1-percent)) + ", " + Math.round(255 * percent) + ", 0)";
},
trackColor: '#666',
scaleColor: false,
lineCap: 'butt',
lineWidth: 15,
animate: 1000
});
$('.updateEasyPieChart').on('click', function(e) {
e.preventDefault();
$('.percentage, .percentage-light').each(function() {
var newValue = Math.round(100*Math.random());
$(this).data('easyPieChart').update(newValue);
$('span', this).text(newValue);
});
});
};
</script>
</head>
<body onLoad="initPieChart();">
<div class="container">
<h1>EASY饼图</h1>
<div class="chart">
<div class="percentage" data-percent="55"><span>55</span>%</div>
<div class="label">新的访问</div>
</div>
<div class="chart">
<div class="percentage" data-percent="46"><span>46</span>%</div>
<div class="label">跳出率</div>
</div>
<div class="chart">
<div class="percentage" data-percent="92"><span>92</span>%</div>
<div class="label">服务器负载</div>
</div>
<div class="chart">
<div class="percentage" data-percent="84"><span>752</span>MB</div>
<div class="label">使用的RAM</div>
</div>
<div style="clear:both;"></div>
<div class="dark">
<div class="chart">
<div class="percentage-light" data-percent="55"><span>55</span>%</div>
<div class="label">新的访问</div>
</div>
<div class="chart">
<div class="percentage-light" data-percent="46"><span>46</span>%</div>
<div class="label">跳出率</div>
</div>
<div class="chart">
<div class="percentage-light" data-percent="92"><span>92</span>%</div>
<div class="label">服务器负载</div>
</div>
<div class="chart">
<div class="percentage-light" data-percent="84"><span>752</span>MB</div>
<div class="label">使用的RAM</div>
</div>
<div style="clear:both;"></div>
</div>
<p><a href="#" class="button updateEasyPieChart">更新饼图</a></p>
</div>
<div style="text-align:center;clear:both">
<p>适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗.</p>
<p>来源:<a href="http://www.moobnn.com/" target="_blank">网页模板</a></p>
</div>
</body>
</html>
EASY饼图数据统计Jquery插件.zip
版权申诉
52 浏览量
2022-11-17
21:19:39
上传
评论
收藏 59KB ZIP 举报
芝麻粒儿
- 粉丝: 5w+
- 资源: 2万+
最新资源
- 筷手引流工具.apk
- 论文(最终)_20240430235101.pdf
- 基于python编写的Keras深度学习框架开发,利用卷积神经网络CNN,快速识别图片并进行分类
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈