Debian Codegraph @

dojox/charting/tests/test_pie2d_5050.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>Pie 2D</title>
19 <style type="text/css">
20 @import "../../../dojo/resources/dojo.css";
21 @import "../../../dijit/tests/css/dijitTests.css";
22 </style>
23 <script type="text/javascript" src="../../../dojo/dojo.js" data-dojo-config="isDebug: true"></script>
24 <script type="text/javascript">
25
26 dojo.require("dojox.charting.Chart");
27 dojo.require("dojox.charting.widget.Legend");
28 dojo.require("dojox.charting.plot2d.Pie");
29 dojo.require("dojox.charting.themes.PlotKit.blue");
30 dojo.require("dojox.charting.themes.PlotKit.green");
31 dojo.require("dojox.charting.themes.PlotKit.red");
32 dojo.require("dojox.charting.themes.Adobebricks");
33 dojo.require("dojox.charting.themes.Algae");
34
35 makeObjects = function(){
36 var chart1 = new dojox.charting.Chart("test1");
37 chart1.setTheme(dojox.charting.themes.PlotKit.blue);
38 chart1.addPlot("default", {
39 type: "Pie",
40 font: "normal normal bold 12pt Tahoma",
41 fontColor: "blue",
42 labelOffset: 5,
43 labelStyle: "columns",
44 labelWiring: "ccc"
45 });
46 chart1.addSeries("Series A", [4, 4]);
47 chart1.render();
48
49 var legend = new dojox.charting.widget.Legend({
50 chart: chart1,
51 horizontal:false
52 }, "legend");
53 };
54
55 dojo.addOnLoad(makeObjects);
56
57 </script>
58 </head>
59 <body>
60 <h1>Pie</h1>
61 <p>Pie with 2 50% slices</p>
62 <div id="test1" style="width: 300px; height: 300px;"></div>
63 <div id="legend"></div>
64 <p>That's all Folks!</p>
65 </body>
66 </html>