Debian Codegraph @

dojox/charting/tests/test_widget2d.html

raw symbols SCIP
1 <!--[if IE 7]>
2 <!DOCTYPE>
3 <html lang="en">
4 <head>
5 <![endif]-->
6 <!--[if IE 8]>
7 <!DOCTYPE>
8 <html lang="en">
9 <head>
10 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
11 <![endif]-->
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 <!-- required for Tooltip: a default dijit theme: -->
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"></script>
30
31 <script type="text/javascript">
32 dojo.require("dijit.dijit");
33 dojo.require("dojox.charting.widget.Chart");
34 dojo.require("dojox.charting.axis2d.Default");
35 dojo.require("dojox.charting.plot2d.Areas");
36 dojo.require("dojox.charting.plot2d.Grid");
37 dojo.require("dojox.charting.plot2d.Pie");
38 dojo.require("dojox.charting.action2d.Tooltip");
39 dojo.require("dojox.charting.action2d.MoveSlice");
40 dojo.require("dojox.charting.action2d.MouseZoomAndPan");
41 dojo.require("dojox.charting.widget.Legend");
42 dojo.require("dojox.charting.themes.PlotKit.orange");
43 dojo.require("dojox.charting.themes.PlotKit.blue");
44 dojo.require("dojox.charting.themes.PlotKit.green");
45 dojo.require("dojox.data.HtmlStore");
46
47 seriesB = [2.6, 1.8, 2, 1, 1.4, 0.7, 2];
48
49 dojo.require("dojo.parser"); // scan page for widgets and instantiate them
50 </script>
51
52 </head>
53 <body class="tundra">
54 <h1>Chart 2D</h1>
55 <p>Examples of charts using widgets.</p>
56 <div dojoType="dojox.data.HtmlStore" dataId="tableExample" data-dojo-id="tableStore"></div>
57 <table id="tableExample" style="display: none;">
58 <thead>
59 <tr><th>value</th></tr>
60 </thead>
61 <tbody>
62 <tr><td>6.3</td></tr>
63 <tr><td>1.8</td></tr>
64 <tr><td>3 </td></tr>
65 <tr><td>0.5</td></tr>
66 <tr><td>4.4</td></tr>
67 <tr><td>2.7</td></tr>
68 <tr><td>2 </td></tr>
69 </tbody>
70 </table>
71 <table border="0" cellspacing="30">
72 <tr>
73 <td>
74 <div dojoType="dojox.charting.widget.Chart" id="chart1" style="width: 300px; height: 300px;">
75 <div class="axis" name="x" font="italic normal normal 8pt Tahoma"></div>
76 <div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true"
77 font="italic normal normal 8pt Tahoma"></div>
78 <div class="plot" name="default" type="Areas"></div>
79 <div class="plot" name="grid" type="Grid"></div>
80 <div class="series" name="Run A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
81 <div class="series" name="Run B" array="seriesB" legend="&lt;em&gt;Custom&lt;/em&gt; legend"></div>
82 <div class="series" name="Run C" store="tableStore" valueFn="Number(x)"></div>
83 <div class="action" type="MouseZoomAndPan" maxScale="40"></div>
84 </div>
85 <div dojoType="dojox.charting.widget.Legend" chartRef="chart1"></div>
86 </td>
87 <td>
88 <div dojoType="dojox.charting.widget.Chart" id="chart2" theme="dojox.charting.themes.PlotKit.orange"
89 fill="'lightgrey'" style="width: 300px; height: 300px;">
90 <div class="axis" name="x" font="italic normal bold 10pt Tahoma"></div>
91 <div class="axis" name="y" vertical="true" fixUpper="major" includeZero="true"
92 font="italic normal bold 10pt 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="Series A" data="1, 2, 0.5, 1.5, 1, 2.8, 0.4"></div>
96 <div class="series" name="Series B" array="seriesB"></div>
97 <div class="series" name="Series C" store="tableStore" valueFn="Number(x)" stroke="'#666666'" fill="'#b3b3b3'"></div>
98 <div class="action" type="MouseZoomAndPan" axis="x" scaleFactor="1.05"></div>
99 <div class="action" type="MouseZoomAndPan" axis="y" scaleFactor="1.05"></div>
100 </div>
101 <div dojoType="dojox.charting.widget.Legend" chartRef="chart2"></div>
102 </td>
103 </tr>
104 <tr>
105 <td>
106 <div dojoType="dojox.charting.widget.Chart" id="chart3" theme="dojox.charting.themes.PlotKit.blue"
107 style="width: 300px; height: 300px;">
108 <div class="plot" name="default" type="Pie" radius="100" fontColor="white"></div>
109 <div class="series" name="Series B" array="seriesB"></div>
110 <div class="action" type="Tooltip"></div>
111 </div>
112 </td>
113 <td>
114 <div dojoType="dojox.charting.widget.Chart" id="chart4" theme="dojox.charting.themes.PlotKit.green"
115 style="width: 300px; height: 300px;">
116 <div class="plot" name="default" type="Pie" radius="100" fontColor="black" labelOffset="-20"></div>
117 <div class="series" name="Series C" store="tableStore" valueFn="Number(x)"></div>
118 <div class="action" type="Tooltip"></div>
119 <div class="action" type="MoveSlice" shift="2"></div>
120 </div>
121 </td>
122 </tr>
123 </table>
124 <p>That's all Folks!</p>
125 </body>
126 </html>