| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
<![if gte IE 9]> |
| 13 |
<!DOCTYPE HTML> |
| 14 |
<html lang="en"> |
| 15 |
<head> |
| 16 |
<![endif]> |
| 17 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 18 |
<title>Chart 2D</title> |
| 19 |
<style type="text/css"> |
| 20 |
@import "../../../../dojo/resources/dojo.css"; |
| 21 |
@import "../../../../dijit/tests/css/dijitTests.css"; |
| 22 |
</style> |
| 23 |
|
| 24 |
<link rel="stylesheet" href="../../../../dijit/themes/tundra/tundra.css"> |
| 25 |
<style> |
| 26 |
.dojoxLegendNode {border: 1px solid #ccc; margin: 5px 10px 5px 10px; padding: 3px} |
| 27 |
.dojoxLegendText {vertical-align: text-top; padding-right: 10px} |
| 28 |
</style> |
| 29 |
<script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true, parseOnLoad: true, has:{'dojo-bidi': true}"></script> |
| 30 |
|
| 31 |
<script type="text/javascript"> |
| 32 |
dojo.require("dojo.parser"); |
| 33 |
dojo.require("doh.runner"); |
| 34 |
|
| 35 |
dojo.require("dijit.dijit"); |
| 36 |
dojo.require("dojox.charting.widget.Chart"); |
| 37 |
dojo.require("dojox.charting.axis2d.Default"); |
| 38 |
dojo.require("dojox.charting.plot2d.Areas"); |
| 39 |
dojo.require("dojox.charting.plot2d.Grid"); |
| 40 |
dojo.require("dojox.charting.action2d.Tooltip"); |
| 41 |
dojo.require("dojox.charting.widget.Legend"); |
| 42 |
dojo.require("dojox.data.HtmlStore"); |
| 43 |
dojo.require("dojo.parser"); // scan page for widgets and instantiate them |
| 44 |
|
| 45 |
seriesB = [2.6, 1.8, 2, 1, 1.4, 0.7, 2]; |
| 46 |
|
| 47 |
dojo.addOnLoad(function(){ |
| 48 |
|
| 49 |
doh.register("test textDir", [ |
| 50 |
{ |
| 51 |
name: "Declarative chart", |
| 52 |
|
| 53 |
runTest: function(){ |
| 54 |
var node = dojo.byId("chart1"); |
| 55 |
var chart = dijit.byNode(node); |
| 56 |
doh.is("rtl", chart.textDir, "textDir of : chart"); |
| 57 |
|
| 58 |
} |
| 59 |
} |
| 60 |
]); |
| 61 |
|
| 62 |
doh.run(); |
| 63 |
}); |
| 64 |
|
| 65 |
</script> |
| 66 |
|
| 67 |
</head> |
| 68 |
<body class="tundra"> |
| 69 |
<h1>Chart 2D</h1> |
| 70 |
<p>Examples of charts using widgets.</p> |
| 71 |
<div dojoType="dojox.data.HtmlStore" dataId="tableExample" data-dojo-id="tableStore"></div> |
| 72 |
<table id="tableExample" style="display: none;"> |
| 73 |
<thead> |
| 74 |
<tr><th>value</th></tr> |
| 75 |
</thead> |
| 76 |
<tbody> |
| 77 |
<tr><td>6.3</td></tr> |
| 78 |
<tr><td>1.8</td></tr> |
| 79 |
<tr><td>3 </td></tr> |
| 80 |
<tr><td>0.5</td></tr> |
| 81 |
<tr><td>4.4</td></tr> |
| 82 |
<tr><td>2.7</td></tr> |
| 83 |
<tr><td>2 </td></tr> |
| 84 |
</tbody> |
| 85 |
</table> |
| 86 |
<table border="0" cellspacing="30"> |
| 87 |
<tr> |
| 88 |
<td> |
| 89 |
<div dojoType="dojox.charting.widget.Chart" id="chart1" textDir="rtl" style="width: 500px; height: 500px;" direction="rtl"> |
| 90 |
<div class="axis" name="x" title="קוראים לי ציר X." titleOrientation= "away" font="italic normal normal 8pt Tahoma"></div> |
| 91 |
<div class="axis" name="y" title="קוראים לי ציר Y." vertical="true" fixUpper="major" includeZero="true" |
| 92 |
font="italic normal normal 8pt Tahoma"></div> |
| 93 |
<div class="plot" name="default" type="Areas"></div> |
| 94 |
<div class="plot" name="grid" type="Grid"></div> |
| 95 |
<div class="series" name="סדרה 1." data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div> |
| 96 |
<div class="series" name="Run B." array="seriesB" ></div> |
| 97 |
<div class="series" name="Run C." store="tableStore" valueFn="Number(x)"></div> |
| 98 |
</div> |
| 99 |
<div dojoType="dojox.charting.widget.Legend" chartRef="chart1"></div> |
| 100 |
</td> |
| 101 |
</tr> |
| 102 |
</table> |
| 103 |
<p>That's all Folks!</p> |
| 104 |
</body> |
| 105 |
</html> |