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

83 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Data Loading Indicator</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">
$(document).ready(function(){
$.jqplot.config.enablePlugins = true;
//$.jqplot.config.catchErrors = true;
line1 = [1, 3, 5, 7, 9];
plot = $.jqplot('chart',[], {
title: 'Chart',
seriesDefaults: {
yaxis: 'y2axis'
},
// axes: {
// xaxis: {
// renderer:$.jqplot.DateAxisRenderer,
// tickOptions:{formatString:'%H:%M'},
// },
// y2axis: {
// tickOptions:{formatString:'%.4f'}
// }
// },
// series: [
// {
// renderer:$.jqplot.OHLCRenderer,
// rendererOptions:{candleStick:true, fillUpBody:true, upBodyColor:'#3333aa', downBodyColor:'#aa3333'}
// }
// ],
noDataIndicator: {
show: true,
indicator: '<img src="ajax-loader.gif" />',
//indicator: 'Loading Data...',
axes: {
xaxis: {
min: 0,
max: 5,
tickInterval: 1,
showTicks: false
},
yaxis: {
min: 0,
max: 8,
tickInterval: 2,
showTicks: false
}
}
}
});
});
</script>
</head>
<body>
<?php include "topbanner.inc"; ?>
<div class="example-content">
<?php include "nav.inc"; ?>
<div id="chart" style="height:200px; width:300px;"></div>
</div>
</body>
</html>