Source

jqplot / test11.html

Full commit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Simple Test</title>
  <!--[if IE]><script language="javascript" type="text/javascript" src="./src/excanvas.js"></script><![endif]-->
  
  <link rel="stylesheet" type="text/css" href="./src/jquery.jqplot.css" />
  
  <!-- BEGIN: load jquery -->
  <script language="javascript" type="text/javascript" src="./src/jquery-1.3.2.min.js"></script>
  <!-- END: load jquery -->
  
  <!-- BEGIN: load jqplot -->
  <script language="javascript" type="text/javascript" src="./src/jquery.jqplot.js"></script>
  <script language="javascript" type="text/javascript" src="./src/plugins/jqplot.logAxisRenderer.js"></script>

  <!-- END: load jqplot -->
  <style type="text/css" media="screen">
    .jqplot-axis {
      font-size: 0.85em;
    }
  </style>
  <script type="text/javascript" language="javascript">
  
  $(document).ready(function(){

line2 = [25, 12.5, 6.25, 3.125];
plot1 = $.jqplot('chart', [line2], {
    legend: {
        show: true,
        location: 'ne'
    },
    title: 'Log Y Axis, Power Tick Distribution',
    series: [{
        label: 'Declining line'
    }],
    axes: {
        xaxis: {
            min: 0,
            max: 5
        },
        yaxis: {
            renderer: $.jqplot.LogAxisRenderer
        }
    }
});


  });
  </script>
  </head>
  <body>
    <div id="chart" style="margin-top:20px; margin-left:20px; width:360px; height:300px;"></div>
  </body>
</html>