Source

jqplot / examples / chartInTable.html

Full commit
<!DOCTYPE html>
<html>
<head>
  <!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../src/excanvas.min.js"></script><![endif]-->
    <script language="javascript" type="text/javascript" src="../src/excanvas.js"></script>
    <script language="javascript" type="text/javascript" src="../src/jquery-1.5.1.min.js"></script>
    <script language="javascript" type="text/javascript" src="../src/jquery.jqplot.js"></script>
    <link rel="stylesheet" type="text/css" href="../src/jquery.jqplot.css" />
  <link rel="stylesheet" type="text/css" href="examples.css" />

<script language="javascript" type="text/javascript">
$(document).ready(function(){
      $.jqplot.config.enablePlugins = true;
  $.jqplot('chartdiv',  [[[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],[11,219.9]]],
  { title:'Chart within Table Cell',
    axes:{yaxis:{min:-10, max:240}},
    series:[{color:'#5FAB78'}]
  });
});
</script>
</head>
<body>
<?php include "nav.inc"; ?>
    <table>
        <tr>
            <td>
                <div id="chartdiv" style="height: 400px; width: 300px;">
                </div>

            </td>
        </tr>
    </table>
</body>
</html>