You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
4.1 KiB
95 lines
4.1 KiB
<!--[if IE 7]> |
|
<!DOCTYPE> |
|
<html lang="en"> |
|
<head> |
|
<![endif]--> |
|
<!--[if IE 8]> |
|
<!DOCTYPE> |
|
<html lang="en"> |
|
<head> |
|
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> |
|
<![endif]--> |
|
<![if gte IE 9]> |
|
<!DOCTYPE HTML> |
|
<html lang="en"> |
|
<head> |
|
<![endif]> |
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
<title>Shadows</title> |
|
<style type="text/css"> |
|
@import "../../../dojo/resources/dojo.css"; |
|
@import "../../../dijit/tests/css/dijitTests.css"; |
|
</style> |
|
<!-- required for Tooltip: a default dijit theme: --> |
|
<link rel="stylesheet" href="../../../dijit/themes/tundra/tundra.css"> |
|
<style> |
|
.dojoxLegendNode {border: 1px solid #ccc; margin: 5px 10px 5px 10px; padding: 3px} |
|
.dojoxLegendText {vertical-align: text-top; padding-right: 10px} |
|
</style> |
|
<script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug: true, async: true, parseOnLoad: true"></script> |
|
|
|
<script type="text/javascript"> |
|
var seriesB = [2.6, 1.8, 2, 1, 1.4, 0.7, 2]; |
|
require([ |
|
"dojox/charting/widget/Chart", |
|
"dojox/charting/axis2d/Default", |
|
"dojox/charting/plot2d/Columns", |
|
"dojox/charting/plot2d/Bars", |
|
"dojox/charting/plot2d/Default", |
|
"dojox/charting/plot2d/Pie", |
|
"dojox/charting/action2d/Shake", |
|
"dojox/charting/themes/PlotKit/orange", |
|
"dojox/charting/themes/PlotKit/blue", |
|
"dojox/charting/themes/PlotKit/green", |
|
"dojo/parser"]); |
|
</script> |
|
</head> |
|
<body class="tundra"> |
|
<h1>Shadows</h1> |
|
<p>Testing charts shadows</p> |
|
<table border="0" cellspacing="30"> |
|
<tr> |
|
<td> |
|
<div data-dojo-type="dojox.charting.widget.Chart" id="chart1" style="width: 300px; height: 300px;"> |
|
<div class="axis" name="y" font="italic normal normal 8pt Tahoma" natural="true" fixLower="major" fixUpper="major"></div> |
|
<div class="axis" name="x" vertical="true" fixUpper="major" includeZero="true" |
|
font="italic normal normal 8pt Tahoma"></div> |
|
<div class="plot" name="default" type="Bars" fill="'red'" stroke="null" shadow="{dx: 2, dy: 2, width: 2, color: [ 150, 0, 0, 0.7 ]}" gap="5" animate="true"></div> |
|
<div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div> |
|
<div class="action" type="Shake"></div> |
|
</div> |
|
</td> |
|
<td> |
|
<div data-dojo-type="dojox.charting.widget.Chart" id="chart2" style="width: 300px; height: 300px;"> |
|
<div class="axis" name="x" font="italic normal normal 8pt Tahoma" natural="true" fixLower="major" fixUpper="major"></div> |
|
<div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true" |
|
font="italic normal normal 8pt Tahoma"></div> |
|
<div class="plot" name="default" type="Columns" fill="'red'" stroke="null" shadow="{dx: 2, dy: 2, width: 2, color: [ 150, 0, 0, 0.7 ]}" gap="5" animate="true"></div> |
|
<div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div> |
|
<div class="action" type="Shake"></div> |
|
</div> |
|
</td> |
|
</tr> |
|
<tr> |
|
<td> |
|
<div data-dojo-type="dojox.charting.widget.Chart" id="chart3" theme="dojox.charting.themes.PlotKit.blue" |
|
style="width: 300px; height: 300px;"> |
|
<div class="plot" name="default" type="Pie" radius="100" fontColor="white" shadow="{dx: 3, dy: 3, width: 3, color: [ 0, 0, 0, 0.3 ]}" animate="true"></div> |
|
<div class="series" name="Series B" array="seriesB"></div> |
|
<div class="action" type="Shake"></div> |
|
</div> |
|
</td> |
|
<td> |
|
<div data-dojo-type="dojox.charting.widget.Chart" id="chart4" style="width: 300px; height: 300px;"> |
|
<div class="axis" name="x" font="italic normal normal 8pt Tahoma" natural="true" fixLower="major" fixUpper="major"></div> |
|
<div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true" |
|
font="italic normal normal 8pt Tahoma"></div> |
|
<div class="plot" name="default" type="Default" stroke="{width: 4, color: 'red'}" shadow="{dx: 2, dy: 2, width:3, color: [ 0, 0, 0, 0.3 ]}" animate="true"></div> |
|
<div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div> |
|
</div> |
|
</td> |
|
</tr> |
|
</table> |
|
<p>That's all Folks!</p> |
|
</body> |
|
</html>
|
|
|