egroupware_official/phpgwapi/js/jquery/jqplot/examples/multipleYAxes.html
Nathan Gray f8489c0ed1 Update jqplot to
jquery.jqplot.1.0.0b2_r947
2011-11-07 20:37:55 +00:00

76 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Simple Test</title>
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="../excanvas.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="../jquery.jqplot.min.css" />
<link rel="stylesheet" type="text/css" href="examples.css" />
<!-- BEGIN: load jquery -->
<script language="javascript" type="text/javascript" src="../jquery.min.js"></script>
<!-- END: load jquery -->
<!-- BEGIN: load jqplot -->
<script language="javascript" type="text/javascript" src="../jquery.jqplot.min.js"></script>
<script language="javascript" type="text/javascript" src="../plugins/jqplot.highlighter.min.js"></script>
<!-- END: load jqplot -->
<style type="text/css" media="screen">
.jqplot-axis {
font-size: 0.85em;
}
.jqplot-title {
font-size: 1.1em;
}
.jqplot-y6axis-tick {
padding-right: 0px;
}
/* Use this to hide an axis */
/* .jqplot-y3axis {
display: none;
}*/
</style>
<script type="text/javascript" class="code">
$(document).ready(function(){
var l1 = [2, 3, 1, 4, 3];
var l2 = [1, 4, 3, 2, 2.5];
var l3 = [14, 24, 18, 8, 22];
var l4 = [102, 104, 153, 122, 138];
var l5 = [843, 777, 754, 724, 722];
var plot1 = $.jqplot('chart', [l1, l3, l4, l5], {
title:'Default Multiply y axes',
series:[
{},
{ yaxis:'y2axis' },
{ yaxis:'y3axis' },
{ yaxis:'y4axis' },
{ yaxis:'y5axis' },
{ yaxis:'y6axis' }
],
highlighter:{ bringSeriesToFront:true },
axesDefaults: {
useSeriesColor: true,
alignTicks: true
}
});
});
</script>
<script type="text/javascript" src="example.js"></script>
</head>
<body>
<?php include "topbanner.inc"; ?>
<div class="example-content">
<?php include "nav.inc"; ?>
<div id="chart" style="margin-top:20px; margin-left:20px; width:700px; height:300px;"></div>
</div>
</body>
</html>