jqplot画饼状图(模式一)
<html><head><title>practiseandtemplet</title><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><!--画饼图必须引入的样式--><linkrel="stylesheet"type="text/css"href="jquery.jqplot.css"/><scripttype="text/javascript"src="jquery-1.4.min.js"></script><!--支持ie的js--><scripttype="text/javascript"src="excanvas.js"></script><scripttype="text/javascript"src="jquery.jqplot.js"></script><scripttype="text/javascript"src="jqplot.pieRenderer.js"></script><scripttype="text/javascript"src="jqplot.donutRenderer.min.js"></script><scripttype="text/javascript">$(function(){vardata=[['语文',12],['数学',9],['物理',14],['自然',16],['生物',7],['化学',9],['历史',39]];varplot1=jQuery.jqplot('chart1',[data],{seriesDefaults:{//Makethisapiechart.//设置绘制一个饼状图renderer:jQuery.jqplot.PieRenderer,rendererOptions:{//Putdatalabelsonthepieslices.//Bydefault,labelsshowthepercentageoftheslice.//展示饼块的数据showDataLabels:true}},//展示图标,在图标的右侧legend:{show:true,location:'e'}});});</script></head><body><!--容器--><divid="chart1"></div></body></html>
====================================
jq库在我的下载里下载
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。