Ajax problem: jQuery Mobile with jqplot

Ajax problem: jQuery Mobile with jqplot

Hi, I've been seeing a problem when using jQuery mobile with jqplot when ajax enabled.

I followed the basic instruction for jqplot, i.e., add a div and a simple javascript to make a chart:

  1. <div id="chartdiv" style="height:400px;width:300px;"></div>
  2. <script type="text/javascript">
  3.     $(document).ready(function() {
  4.     $.jqplot('chartdiv',  [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]);   
  5.   })
  6. </script>
when I disable the ajax, the chart will show up but if I enable the ajax, the chart won't show up. Is there something I can do to have jqplot work with jQuery Mobile when ajax enabled?

Thanks!