samedi 3 janvier 2015

Why is my Flot plot function not working?


I'm trying to follow this tutorial to make a simple graph. However, I'm getting an empty divider when I load the page.


Relevant code:



<head>
<script language="javascript" type="text/javascript" src="js/flot/jquery.js"></script>
<script language="javascript" type="text/javascript" src="js/flot/jquery.flot.js"></script>

<script type="text/javascript">
$(function() {
$.plot($("#graphs"), [[[0,0],[1,1]]);
});
</script>

</head>

<body>
<div id="graphs" style="width:600px; height:400px">
</div>
</body>


I have page.php in the www directory, then the two .js files in www/js/flot





Aucun commentaire:

Enregistrer un commentaire