egroupware/phpgwapi/js/jquery/jqplot/examples/multipleYAxes.html

76 lines
2.1 KiB
HTML
Raw Normal View History

2011-08-10 01:10:50 +02:00
<!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" />
2011-08-10 01:10:50 +02:00
<link rel="stylesheet" type="text/css" href="examples.css" />
<!-- BEGIN: load jquery -->
<script language="javascript" type="text/javascript" src="../jquery.min.js"></script>
2011-08-10 01:10:50 +02:00
<!-- 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>
2011-08-10 01:10:50 +02:00
<!-- 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">
2011-08-10 01:10:50 +02:00
$(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
}
2011-08-10 01:10:50 +02:00
});
});
</script>
<script type="text/javascript" src="example.js"></script>
2011-08-10 01:10:50 +02:00
</head>
<body>
<?php include "topbanner.inc"; ?>
<div class="example-content">
<?php include "nav.inc"; ?>
2011-08-10 01:10:50 +02:00
<div id="chart" style="margin-top:20px; margin-left:20px; width:700px; height:300px;"></div>
</div>
</body>
2011-08-10 01:10:50 +02:00
</html>