Debian Codegraph @

dojox/charting/tests/test_fillstroke.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 Fill & Stroke</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"></script>
30
31 <script type="text/javascript">
32 dojo.require("dojo.parser");
33 dojo.require("dojox.charting.widget.Chart");
34 dojo.require("dojox.charting.axis2d.Default");
35 dojo.require("dojox.charting.plot2d.Pie");
36 dojo.require("dojox.charting.themes.PlotKit.base");
37 dojo.require("dojox.charting.themes.PlotKit.orange");
38
39 seriesB = [2.6, 1.8, 2, 1, 1.4, 0.7, 2];
40
41 blueColor = "blue";
42 blackColor = "black";
43 nullColor = null;
44
45 dojo.addOnLoad(function(){
46
47 (function(){
48 var dc = dojox.charting, pk = dc.themes.PlotKit;
49 pk.myorange = pk.base.clone();
50 pk.myorange.chart.fill = "#f5eee6";
51 pk.orange.plotarea.fill = "#ff0000";
52 pk.myorange.colors = dc.Theme.defineColors({hue: 31, saturation: 60, low: 40, high: 88});
53 })();
54
55 dojo.parser.parse();
56
57 var chart3 = new dojox.charting.Chart("nchart3");
58 chart3.setTheme(dojox.charting.themes.PlotKit.myorange);
59 chart3.addPlot("default", {
60 type: "Pie",
61 fontColor: "white",
62 radius: 100
63 });
64 chart3.addSeries("Series B", seriesB);
65 chart3.render();
66
67 var chart4 = new dojox.charting.Chart("nchart4", {fill : blueColor, black: blackColor });
68 chart4.setTheme(dojox.charting.themes.PlotKit.myorange);
69 chart4.addPlot("default", {
70 type: "Pie",
71 fontColor: "white",
72 radius: 100
73 });
74 chart4.addSeries("Series B", seriesB);
75 chart4.render();
76
77 var chart5 = new dojox.charting.Chart("nchart5", {fill : nullColor});
78 chart5.setTheme(dojox.charting.themes.PlotKit.myorange);
79 chart5.addPlot("default", {
80 type: "Pie",
81 fontColor: "white",
82 radius: 100
83 });
84 chart5.addSeries("Series B", seriesB);
85 chart5.render();
86
87 });
88
89 </script>
90
91 </head>
92 <body class="tundra">
93 <h1>Chart Fill & Stroke</h1>
94 <table border="0" cellspacing="30">
95 <tr>
96 <td>
97 <!-- orange theme must be used by default -->
98 <div dojoType="dojox.charting.widget.Chart" id="chart1" theme="dojox.charting.themes.PlotKit.myorange"
99 style="width: 300px; border: black 1px">
100 <div class="plot" name="default" type="Pie" radius="100" fontColor="white"></div>
101 <div class="series" name="Series B" array="seriesB"></div>
102 </div>
103 </td>
104 <td>
105 <!-- fill & stroke must override orange theme -->
106 <div dojoType="dojox.charting.widget.Chart" id="chart2" theme="dojox.charting.themes.PlotKit.myorange"
107 style="width: 300px; height: 300px;" fill="blueColor" stroke="blackColor">
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>
111 </td>
112 <td>
113 <!-- fill must override remove orange theme chart fill by null color -->
114 <div dojoType="dojox.charting.widget.Chart" id="chart3" theme="dojox.charting.themes.PlotKit.myorange"
115 style="width: 300px; height: 300px;" fill="nullColor">
116 <div class="plot" name="default" type="Pie" radius="100" fontColor="white"></div>
117 <div class="series" name="Series B" array="seriesB"></div>
118 </div>
119 </td>
120
121 </tr>
122 <tr>
123 <td>
124 <div id="nchart3" style="width: 300px; height: 300px;">
125 </div>
126 </td>
127 <td>
128 <div id="nchart4" style="width: 300px; height: 300px;">
129 </div>
130 </td>
131 <td>
132 <div id="nchart5" style="width: 300px; height: 300px;">
133 </div>
134 </td>
135 </tr>
136 </table>
137 </body>
138 </html>