Note that there are some explanatory texts on larger screens.

plurals
  1. PONot able to draw graph using jqplot in Android phonegap app
    primarykey
    data
    text
    <p>I am trying to draw a simple bar graph using jqplot in Android phonegap app but i am not getting anything, no error no graph.</p> <p>I am new to jqplot and phonegap so please help me out.</p> <p>my html file is:</p> <pre><code>&lt;link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.1.0.min.css" /&gt; &lt;link rel="stylesheet" href="index.css" /&gt; &lt;link rel="stylesheet" href="jquery.mobile/jquery.jqplot.css" /&gt; &lt;script src="jquery.mobile/jquery-1.7.2.min"&gt;&lt;/script&gt; &lt;script src="jquery.mobile/jquery.mobile-1.1.0.min.js"&gt;&lt;/script&gt; &lt;script src="jquery.mobile/jquery.jqplot.min.js"&gt;&lt;/script&gt; &lt;script src="jquery.mobile/jqplot.barRenderer.min.js"&gt;&lt;/script&gt; &lt;script src="jquery.mobile/jqplot.categoryAxisRenderer.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="phonegap-1.4.1.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8" src="index.js"&gt;&lt;/script&gt; &lt;style type="text/css"&gt; .myChart { width: 300px; height: 200px; } &lt;/style&gt; &lt;/head&gt; &lt;body onload="init();"&gt; &lt;div data-role="page" id="page-home" class="type-interior" data-theme="b"&gt; &lt;div data-role="header" data-theme="b"&gt; &lt;h1&gt;Bar Graph Demo&lt;/h1&gt; &lt;/div&gt; &lt;div data-role="content" data-theme="c"&gt; &lt;div id="barChart" class="myChart"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p> </p> <p>Index.js:</p> <pre><code>function init() { //alert("hi"); } $('#page-home').live('pageinit', function(event){ $.jqplot('barChart', [[[5,1], [3,3], [1,5]]], { seriesDefaults:{ renderer:$.jqplot.BarRenderer, shadowAngle: 135, rendererOptions: { barDirection: 'horizontal' }, pointLabels: {show: true, formatString: '%d'} }, axes: { yaxis: { renderer: $.jqplot.CategoryAxisRenderer } } }).replot({clear: true, resetAxes:true}); }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload