jqplot画折线图
<html><head><title>practiseandtemplet</title><metahttp-equiv="content-type"content="text/html;charset=utf-8"/><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.cursor.js"></script><scripttype="text/javascript"src="jqplot.dateAxisRenderer.js"></script><scripttype="text/javascript"src="jqplot.highlighter.js"></script><scripttype="text/javascript">$(function(){varline1=[['2014-01-01',100],['2014-1-2',123],['2014-1-3',23],['2014-1-4',345],['2014-1-5',232],['2014-1-6',234],['2014-1-7',312],['2014-1-8',23],['2014-1-9',234],['2014-1-10',31],['2014-1-11',234],['2014-1-12',42]];varplot1=$.jqplot('chart1',[line1],{title:'近期销售量统计',axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer,tickOptions:{//x轴刻度标签格式化为月日,如:May1//formatString:'%b%#d'formatString:'%y-%m-%#d'}},yaxis:{tickOptions:{//y轴刻度标签格式化为带两位小数的美元数,如:$500.00formatString:'%.0f'}}},highlighter:{//是否高亮显示show:true,//当鼠标移动到数据点上时,数据点扩大的增量增量sizeAdjust:7.5},cursor:{//是否显示光标,若为true,光标默认为十字show:false}});});</script></head><body><!--容器--><divid="chart1"></div></body></html>
=======================
jq库在我的下载里下载
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。