This is a simple example usage of the jqPlot jQuery plugin. The example on the author website omits the “, {}” options in the .jqplot function call.
<html> <head> <script type="text/javascript" src="./scripts/jquery-ui/js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="./scripts/jqplot/jquery.jqplot.min.js"></script> <link rel="stylesheet" href="./scripts/jqplot/jquery.jqplot.min.css" type="text/css" media="all" /> <!--[if IE]><script language="javascript" type="text/javascript" src="./scripts/jqplot/excanvas.js"></script><![endif]--> <script> $(document).ready(function() { $.jqplot.config.enablePlugins = true; alert('1'); $.jqplot('chartdiv', [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]], {}); }); </script> </head> <body> <div id="chartdiv" style="height:400px;width:300px;"></div> </body> </html>