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w+b3qWAu0IpaBhE79/nyWE7R9AerDuQH7L603PUqAdoQTk9z/9sP0DSA/WHchr+b3pWQq0IwBn2P4BpAfrDgAXaEcAzrD9A0gP1h0ALtCOAJxh+weQHqw7AFygHQE4w/YPID1YdwC4QDsCcIbtH0B6sO4AcIF2BOAM2z+A9GDdAeAC7QjAGbZ/AOnBugPABdoRgDNs/wDSg3UHgAu0IwBn2P4BpAfrDgAXaEcAzrD9A0gP1h0ALtCOAJxh+weQHqw7AFygHQEAAAAgWWhHAAAAAEgW2hEAAAAAkoV2BAAAAIBkoR0BAAAAIFloRwAAAABIFtoRAAAAAJKFdgQAAACAZKEdAQAAACBZaEcAAAAASBbaEQAAAACShXYEAAAAgGQlbkcAAAAAgCC0IwAAAAAkK147xvkcBoPBYDAYDAYjH7QjBoPBYDAYDCbZQTtiMBgMBoPBYJIdtCMGg8FgMBgMJtlBO2IwGAwGg8Fgkp3/D0Ii9orLmOuaAAAAAElFTkSuQmCC" alt="" />

页面代码:

 <!DOCTYPE html>
<html lang="en">
<head> <!-- basic styles -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="assets/css/font-awesome.min.css" /> <!-- ace styles -->
<link rel="stylesheet" href="assets/css/ace.min.css" /> </head> <body>
<div class="widget-box" style="width:60%;">
<div class="widget-header widget-header-flat widget-header-small">
<h5>
<i class="icon-signal"></i>
访问来源
</h5> <div class="widget-toolbar no-border">
<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown">
本周
<i class="icon-angle-down icon-on-right bigger-110"></i>
</button> <ul class="dropdown-menu pull-right dropdown-125 dropdown-lighter dropdown-caret">
<li class="active">
<a href="#" class="blue">
<i class="icon-caret-right bigger-110">&nbsp;</i>
本周
</a>
</li> <li>
<a href="#">
<i class="icon-caret-right bigger-110 invisible">&nbsp;</i>
上周
</a>
</li> <li>
<a href="#">
<i class="icon-caret-right bigger-110 invisible">&nbsp;</i>
本月
</a>
</li> <li>
<a href="#">
<i class="icon-caret-right bigger-110 invisible">&nbsp;</i>
上月
</a>
</li>
</ul>
</div>
</div> <div class="widget-body">
<div class="widget-main">
<div id="piechart-placeholder"></div> <div class="hr hr8 hr-double"></div> <div class="clearfix">
<div class="grid3">
<span class="grey">
<i class="icon-facebook-sign icon-2x blue"></i>
&nbsp; likes
</span>
<h4 class="bigger pull-right">1,255</h4>
</div> <div class="grid3">
<span class="grey">
<i class="icon-twitter-sign icon-2x purple"></i>
&nbsp; tweets
</span>
<h4 class="bigger pull-right">941</h4>
</div> <div class="grid3">
<span class="grey">
<i class="icon-pinterest-sign icon-2x red"></i>
&nbsp; pins
</span>
<h4 class="bigger pull-right">1,050</h4>
</div>
</div>
</div><!-- /widget-main -->
</div><!-- /widget-body -->
</div><!-- /widget-box -->
<!-- /.main-container -->
<!-- basic scripts -->
<!--[if !IE]> -->
<!--[if !IE]> --> <script type="text/javascript">
window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>" + "<" + "script>");
</script> <!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");
</script>
<![endif]-->
<script type="text/javascript">
if ("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>" + "<" + "script>");
</script> <script src="assets/js/bootstrap.min.js"></script> <!-- page specific plugin scripts -->
<script src="assets/js/flot/jquery.flot.min.js"></script>    // 曲线图
<script src="assets/js/flot/jquery.flot.pie.min.js"></script>   // 饼状图 <!-- inline scripts related to this page --> <script type="text/javascript">
jQuery(function ($) {
var placeholder = $('#piechart-placeholder').css({ 'width': '90%', 'min-height': '150px' });
var data = [
{ label: "social networks", data: 38.7, color: "#68BC31" },
{ label: "search engines", data: 24.5, color: "#2091CF" },
{ label: "ad campaigns", data: 8.2, color: "#AF4E96" },
{ label: "direct traffic", data: 18.6, color: "#DA5430" },
{ label: "other", data: 10, color: "#FEE074" }
]
function drawPieChart(placeholder, data, position) {
$.plot(placeholder, data, {
series: {
pie: {
show: true,
tilt: 0.8,
highlight: {
opacity: 0.25
},
stroke: {
color: '#fff',
width: 2
},
startAngle: 2
}
},
legend: {
show: true,
position: position || "ne",
labelBoxBorderColor: null,
margin: [-30, 15]
}
,
grid: {
hoverable: true,
clickable: true
}
})
}
drawPieChart(placeholder, data); /**
we saved the drawing function and the data to redraw with different position later when switching to RTL mode dynamically
so that's not needed actually.
*/
placeholder.data('chart', data);
placeholder.data('draw', drawPieChart); var $tooltip = $("<div class='tooltip top in'><div class='tooltip-inner'></div></div>").hide().appendTo('body');
var previousPoint = null; placeholder.on('plothover', function (event, pos, item) {
if (item) {
if (previousPoint != item.seriesIndex) {
previousPoint = item.seriesIndex;
var tip = item.series['label'] + " : " + item.series['percent'] + '%';
$tooltip.show().children(0).text(tip);
}
$tooltip.css({ top: pos.pageY + 10, left: pos.pageX + 10 });
} else {
$tooltip.hide();
previousPoint = null;
} }); })
</script> </body>
</html>

所需引用的js文件下载链接:

http://files.cnblogs.com/files/xiaoerlang90/Html5%E9%A5%BC%E7%8A%B6%E5%9B%BE%E5%BC%95%E7%94%A8%E6%96%87%E4%BB%B6.zip

05-11 10:54