0
我正在开发面向Android的Phonegap应用。
我想实现一个简单的jqplot图表如何在Android手机应用内绘制jqplot图表
var plot1 = $.jqplot('graphcontentview', [[3,7,9,1,4,6,8,2,5]]);
其中graphcontentview是包含图表的div的ID。
当我运行这段代码它产生以下错误 -
Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'jqplot' at file:///android_asset/www/hellophonegap.js:27
其中hellophonegap.js是我的js文件,我会写在以后使用这个js到我的index.html文件的代码。
我加入以下js代码为jqplot图表
<script type="text/javascript" src="jquery.jqplot.min.js"></script>
<script type="text/javascript" src="/plugins/jqplot.canvasTextRenderer.min.js"></script>
<script type="text/javascript" src="/plugins/jqplot.jqplot.canvasAxisLabelRenderer.min.js"></script>
我没有得到什么确切的问题
你的意思是“哪里hellophonegap.js是我的js文件,我将在以后使用这个js写代码到我的index.html文件中。”? – 2012-04-29 10:44:14
我的意思是我导入这个js文件到index.html文件 – user1230413 2012-05-14 05:33:49