Debian Codegraph @

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