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

253 lines
8.3 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.pieRenderer.min.js"></script>
<!-- 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 class="code" type="text/javascript">$(document).ready(function(){
jQuery.jqplot.config.enablePlugins = true;
plot1 = jQuery.jqplot('chart1',
[[['Verwerkende FruedenStunde Companaziert Eine industrie', 9],['Retail', 8], ['Primaire producent', 7],
['Out of home', 6],['Groothandel', 5], ['Grondstof', 4], ['Consument', 3], ['Bewerkende industrie', 2]]],
{
title: ' ',
seriesDefaults: {
shadow: false,
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: { padding: 2, sliceMargin: 2, showDataLabels: false }
},
legend: { show:true, location: 'e' }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
plot2 = jQuery.jqplot('chart2',
[[['Verwerkende industrie', 9],['Retail', 0], ['Primaire producent', 0],
['Out of home', 0],['Groothandel', 0], ['Grondstof', 0], ['Consument', 3], ['Bewerkende industrie', 2]]],
{
title: ' ',
seriesDefaults: {
shadow: false,
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
startAngle: 180,
sliceMargin: 4,
showDataLabels: true }
},
legend: { show:true, location: 'w' }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
plot3 = jQuery.jqplot('chart3',
[[['Verwerkende industrie', 9],['Retail', 0], ['Primaire producent', 0],
['Out of home', 0],['Groothandel', 0], ['Grondstof', 0], ['Consument', 0], ['Bewerkende industrie', 2]]],
{
title: ' ',
seriesDefaults: {
shadow: false,
renderer: jQuery.jqplot.PieRenderer,
rendererOptions: {
sliceMargin: 4,
showDataLabels: true
}
},
legend: { show:true, location: 'e' }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
plot4 = jQuery.jqplot('chart4',
[[['Verwerkende industrie', 30],['Retail', 0], ['Primaire producent', 0],
['Out of home', 0],['Groothandel', 0], ['Grondstof', 0], ['Consument', 0], ['Bewerkende industrie', 1]]],
{
title: ' ',
seriesDefaults: {shadow: false, renderer: jQuery.jqplot.PieRenderer, rendererOptions: { sliceMargin: 4, showDataLabels: true } },
legend: { show:true, location: 'e' }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
plot5 = jQuery.jqplot('chart5',
[[['Verwerkende industrie', 100],['Retail', 0], ['Primaire producent', 0],
['Out of home', 0],['Groothandel', 0], ['Grondstof', 0], ['Consument', 0], ['Bewerkende industrie', 1]]],
{
title: ' ',
seriesDefaults: {shadow: false, renderer: jQuery.jqplot.PieRenderer, rendererOptions: { sliceMargin: 4, showDataLabels: true } },
legend: { show:true }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
plot6 = jQuery.jqplot('chart6',
[[['Verwerkende industrie', 100]]],
{
title: ' ',
seriesDefaults: {shadow: false, renderer: jQuery.jqplot.PieRenderer, rendererOptions: { sliceMargin: 4, showDataLabels: true } },
legend: { show:true }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
jQuery.jqplot.config.enablePlugins = true;
plot7 = jQuery.jqplot('chart7',
[[['Verwerkende industrie', 9],['Retail', 8], ['Primaire producent', 7],
['Out of home', 6],['Groothandel', 5], ['Grondstof', 4], ['Consument', 3], ['Bewerkende industrie', 2]]],
{
title: ' ',
seriesDefaults: {shadow: true, renderer: jQuery.jqplot.PieRenderer, rendererOptions: { showDataLabels: true } },
legend: { show:true }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
plot8 = jQuery.jqplot('chart8',
[[['Verwerkende industrie', 100],['Retail', 0], ['Primaire producent', 0],
['Out of home', 0],['Groothandel', 0], ['Grondstof', 0], ['Consument', 0], ['Bewerkende industrie', 1]]],
{
title: ' ',
seriesDefaults: {shadow: true, renderer: jQuery.jqplot.PieRenderer, rendererOptions: { showDataLabels: true } },
legend: { show:true }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
jQuery.jqplot.config.enablePlugins = true;
plot9 = jQuery.jqplot('chart9',
[[['Verwerkende industrie', 9],['Retail', 8], ['Primaire producent', 7],
['Out of home', 6],['Groothandel', 5], ['Grondstof', 4], ['Consument', 3], ['Bewerkende industrie', 2]]],
{
title: ' ',
seriesDefaults: {shadow: true, renderer: jQuery.jqplot.PieRenderer, rendererOptions: { fill: false, sliceMargin: 4, showDataLabels: true } },
legend: { show:true }
}
);
});
</script>
<script class="code" type="text/javascript">$(document).ready(function(){
plot10 = jQuery.jqplot('chart10',
[[['Verwerkende industrie', 100],['Retail', 0], ['Primaire producent', 0],
['Out of home', 0],['Groothandel', 0], ['Grondstof', 0], ['Consument', 0], ['Bewerkende industrie', 1]]],
{
title: ' ',
seriesDefaults: {shadow: true, renderer: jQuery.jqplot.PieRenderer, rendererOptions: { fill: false, sliceMargin: 4, showDataLabels: true } },
legend: { show:true }
}
);
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$('script.code').each(function(index) {
$('pre.code').eq(index).text($(this).html());
});
$('script.common').each(function(index) {
$('pre.common').eq(index).html($(this).html());
});
$(document).unload(function() {$('*').unbind(); });
});
</script>
</head>
<body>
<?php include "topbanner.inc"; ?>
<div class="example-content">
<?php include "nav.inc"; ?>
<div id="chart1" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart2" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart3" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart4" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart5" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart6" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart7" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart8" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart9" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
<div id="chart10" style="margin-top:20px; margin-left:20px; width:460px; height:300px;"></div>
<pre class="code"></pre>
</div>
</body>
</html>