我正在尝试jquery jqplot图表,
下面是我的代码,
<html>
<head>
<script type="text/javascript" src="excanvas.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.jqplot.js"></script>
<script type="text/javascript" src="jquery.jqplot.min.js"></script>
<script type="text/javascript" src="jqplot.categoryAxisRenderer.min.js"></script>
<script type="text/javascript" src="jqplot.barRenderer.js"></script>
<script type="text/javascript" src="jqplot.barRenderer.min.js"></script>
<script type="text/javascript" src="jqplot.categoryAxisRenderer.min.js"></script>
<script type="text/javascript" src="jquery.min.js"></script>
<script type="text/javascript" src="jqplot.canvasTextRenderer.min.js"></script>
<script type="text/javascript" src="jqplot.canvasAxisLabelRenderer.min.js"></script>
<link rel="stylesheet" type="text/css" href="jquery.jqplot.css" />
<link rel="stylesheet" type="text/css" href="jquery.jqplot.min.css" />
<script type="text/javascript">
$(document).ready(function(){ var plot1 = $.jqplot ('chart3', [[3,7,9,1,4,6,8,2,5]]);});
</script>
</head>
<body>
<div id="chart3" name="chart3" style="width:400px; height:300px;"></div>
</body>
</html>
提前感谢
发布于 2012-01-27 22:32:40
您必须从该代码中删除第10行。
在第10行包含了jqplot之后,您已经包含了jquery.min.js文件。jquery.min.js重新创建了jQuery对象(删除了jqplot函数),需要将其删除。
发布于 2012-01-30 12:10:47
您需要按依赖关系的顺序包含文件。Jqplot依赖于jQuery,所以应该先列出jQuery,并且只包含每个实例的一个实例。你包含了几乎每个文件的倍数。
在尝试使用高级插件之前,您可能想要了解JavaScript的基础知识。
发布于 2012-10-26 22:58:00
Eric : Refer this site. it simply says all the things regarding to jqplot
Eric : Refer these blog also
https://stackoverflow.com/questions/9033592
复制相似问题