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

71 lines
2.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Use Compatibility mode in IE -->
<title>Grid Dimensioning Example</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/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>
<!-- END: load jqplot -->
<script language="javascript" type="text/javascript">
$.jqplot._noToImageButton = true;
</script>
<style type="text/css">
.jqplot-target {
border: 1px solid rgb(190, 190, 190);
}
</style>
<script class="code" type="text/javascript">
$(document).ready(function () {
var s1 = [[0, 2], [1, 6], [2, 7], [3, 10]];
plot1 = $.jqplot("chart1", [s1], {
gridPadding: {left: 70, right: 15, top: 15, bottom: 35}
});
});
</script>
<script class="code" type="text/javascript">
$(document).ready(function () {
var s1 = [[0, 2], [1, 6], [2, 7], [3, 10]];
plot2 = $.jqplot("chart2", [s1], {
gridPadding: {left: 70, right: 15, top: 15, bottom: 35},
axes: {
yaxis: {
tickOptions: {
formatString: '%.5f'
}
}
}
});
});
</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="chart1" style="margin:30px; width:400px; height:200px;"></div>
<div id="chart2" style="margin:30px; width:400px; height:200px;"></div>
</div>
</body>
</html>