egroupware_official/phpgwapi/js/jquery/jqplot/examples/pieTest3.html

99 lines
2.5 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.pieRenderer.min.js"></script>
2011-08-10 01:10:50 +02:00
<!-- END: load jqplot -->
<style type="text/css">
#code {
font: 10pt "Andale Mono", Monaco, "Courier New", sans-serif ;
white-space: pre;
}
pre {
background: #D8F4DC;
border: 1px solid rgb(200, 200, 200);
padding-top: 1em;
padding-left: 3em;
padding-bottom: 1em;
margin-top: 1em;
margin-bottom: 3em;
}
p {
margin: 2em 0;
}
</style>
<script id="example_1" type="text/javascript">$(document).ready(function(){
s1 = [['Sony',7], ['Samsumg',13.3], ['LG',14.7], ['Vizio',5.2], ['Insignia', 1.2]];
plot1 = $.jqplot('chart1', [s1], {
grid: {
drawBorder: false,
drawGridlines: false,
background: '#ffffff',
shadow:false
},
axesDefaults: {
},
seriesDefaults:{
renderer:$.jqplot.PieRenderer,
rendererOptions: {
showDataLabels: true
}
},
legend: {
show: true,
rendererOptions: {
numberRows: 1
},
location: 's'
}
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$('#code_1').html($('#example_1').html());
$(document).unload(function() {$('*').unbind(); });
});
</script>
</head>
<body>
<?php include "topbanner.inc"; ?>
<div class="example-content">
<?php include "nav.inc"; ?>
2011-08-10 01:10:50 +02:00
<div id="chart1" style="margin-top:20px; margin-left:20px; width:300px; height:300px;"></div>
<pre id="code_1"></pre>
</div>
</body>
2011-08-10 01:10:50 +02:00
</html>