hi,I had same problem.
it happens other than the first view.
please try it.maybe this can be of any help.
----------------
//jscode preloaded
$(document).bind( "pagechange", function( e, data ) {
if(data.toPage.find('#graph1').text() )
{
var s1 = [ 5, 7, 6, 8, 7 ];
var s2 = [ 7, 5, 7, 6, 9 ];
$.jqplot('graph1', [ s1, s2 ]);
}
});
----------------
<html>..
<div id="secondpage" data-role="page">
<div id="graph1" style="width:300; height:200px;">graph target</div>
</div>
....</html>
--------------