Hi.
I'm trying to add jqplot to my project.
I have extracted to a folder called jqplot in my netbeans 7.2 IDE.
later in my config file I add the next:
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="jqplot/excanvas.js"></script><![endif]-->
<script language="javascript" type="text/javascript" src="jqplot/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="jqplot/jquery.jqplot.min.js"></script>
<link rel="stylesheet" type="text/css" href="jqplot/jquery.jqplot.css" />
I'm using this example from:
$.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]);
so my code looks like:
<body> <div data-role="page" id="chart" data-add-back-btn="true" data-theme="f"> <?php include('inc/header.php'); ?> <div data-role="content" data-add-back-btn="true"> <script language="javascript"> $.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]]); </script> <div id="chartdiv" style="height:400px;width:300px; "></div> </div><!-- /content --> <footer data-role="footer"> <?php include('inc/footer.php'); ?> </footer> </div><!-- /page --> </body>
what am I doing wrong. I have added an alert in .js and it take the path to jqplot correctly.
one more thing: the div size is correct because if I change it, it change the size of the page.
Any idea?
Thanks