0
Android用Phonegapアプリを開発しています。
私はgraphcontentviewがチャートを含むdiv要素のIDで簡単なjqplotチャートAndroid用phonegapアプリ内でjqplotチャートをプロットする方法
var plot1 = $.jqplot('graphcontentview', [[3,7,9,1,4,6,8,2,5]]);
を実装したいです。
私はそれが次のエラーを生成し、このコードを実行すると -
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は、私は後で、これは私のindex.htmlファイルにJS使用してコードを記述します、私のjsファイルです。
私は次の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>
私は、正確な問題
jquery.jqplot.min.jsファイルのパスを確認しているもの届かないが追加されました「hellophonegap.jsがjsファイルで、後でこのjsをindex.htmlファイルに書き込むコード」とはどういう意味ですか? –
このjsファイルをindex.htmlファイルにインポートする – user1230413