<html>
<head>
<title>practise and templet</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script type="text/javascript" src="jquery-1.4.min.js" ></script>
<!--支持ie的js-->
<script type="text/javascript" src="excanvas.js" ></script>
<script type="text/javascript" src="jquery.jqplot.js" ></script>
<script type="text/javascript" src="jqplot.cursor.js" ></script>
<script type="text/javascript" src="jqplot.dateAxisRenderer.js" ></script>
<script type="text/javascript" src="jqplot.highlighter.js" ></script>
<script type="text/javascript">
$(function(){
var line1=[['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]];
var plot1 = $.jqplot('chart1', [line1], {
title:'近期销售量统计',
axes:{
xaxis:{
renderer:$.jqplot.DateAxisRenderer,
tickOptions:{
// x轴刻度标签格式化为月日,如: May 1
//formatString:'%b %#d'
formatString:'%y-%m-%#d'
}
},
yaxis:{
tickOptions:{
// y轴刻度标签格式化为带两位小数的美元数,如: $500.00
formatString:'%.0f'
}
}
},
highlighter: {
// 是否高亮显示
show: true,
// 当鼠标移动到数据点上时,数据点扩大的增量增量
sizeAdjust: 7.5
},
cursor: {
// 是否显示光标,若为true,光标默认为十字
show: false
}
});
});
</script>
</head>
<body>
<!--容器-->
<div id="chart1" ></div>
</body>
</html>
=======================
jq库在我的下载里下载