108 lines
3.7 KiB
HTML
108 lines
3.7 KiB
HTML
<!--[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>Chart 2D</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" djConfig="isDebug: true, parseOnLoad: true"></script>
|
|
|
|
<script type="text/javascript">
|
|
dojo.require("dojo.parser");
|
|
dojo.require("doh.runner");
|
|
|
|
dojo.require("dijit.dijit");
|
|
dojo.require("dojox.charting.widget.Chart");
|
|
dojo.require("dojox.charting.axis2d.Default");
|
|
dojo.require("dojox.charting.plot2d.Areas");
|
|
dojo.require("dojox.charting.plot2d.Grid");
|
|
dojo.require("dojox.charting.action2d.Tooltip");
|
|
dojo.require("dojox.charting.widget.Legend");
|
|
dojo.require("dojox.data.HtmlStore");
|
|
dojo.require("dojox.charting.BidiSupport");
|
|
dojo.require("dojox.charting.widget.BidiSupport");
|
|
dojo.require("dojo.parser"); // scan page for widgets and instantiate them
|
|
|
|
seriesB = [2.6, 1.8, 2, 1, 1.4, 0.7, 2];
|
|
|
|
dojo.addOnLoad(function(){
|
|
|
|
doh.register("test textDir", [
|
|
{
|
|
name: "Declarative chart",
|
|
|
|
runTest: function(){
|
|
var node = dojo.byId("chart1");
|
|
var chart = dijit.byNode(node);
|
|
doh.is("rtl", chart.textDir, "textDir of : chart");
|
|
|
|
}
|
|
}
|
|
]);
|
|
|
|
doh.run();
|
|
});
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body class="tundra">
|
|
<h1>Chart 2D</h1>
|
|
<p>Examples of charts using widgets.</p>
|
|
<div dojoType="dojox.data.HtmlStore" dataId="tableExample" jsId="tableStore"></div>
|
|
<table id="tableExample" style="display: none;">
|
|
<thead>
|
|
<tr><th>value</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr><td>6.3</td></tr>
|
|
<tr><td>1.8</td></tr>
|
|
<tr><td>3 </td></tr>
|
|
<tr><td>0.5</td></tr>
|
|
<tr><td>4.4</td></tr>
|
|
<tr><td>2.7</td></tr>
|
|
<tr><td>2 </td></tr>
|
|
</tbody>
|
|
</table>
|
|
<table border="0" cellspacing="30">
|
|
<tr>
|
|
<td>
|
|
<div dojoType="dojox.charting.widget.Chart" id="chart1" textDir="rtl" style="width: 500px; height: 500px;">
|
|
<div class="axis" name="x" title="קוראים לי ציר X." titleOrientation= "away" font="italic normal normal 8pt Tahoma"></div>
|
|
<div class="axis" name="y" title="קוראים לי ציר Y." vertical="true" fixUpper="major" includeZero="true"
|
|
font="italic normal normal 8pt Tahoma"></div>
|
|
<div class="plot" name="default" type="Areas"></div>
|
|
<div class="plot" name="grid" type="Grid"></div>
|
|
<div class="series" name="סדרה 1." data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
|
|
<div class="series" name="Run B." array="seriesB" ></div>
|
|
<div class="series" name="Run C." store="tableStore" valueFn="Number(x)"></div>
|
|
</div>
|
|
<div dojoType="dojox.charting.widget.Legend" chartRef="chart1"></div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<p>That's all Folks!</p>
|
|
</body>
|
|
</html>
|