Debian Codegraph @

dojox/charting/tests/BidiSupport/mirror_spidersingle.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>Test a Spider Chart with a single series</title>
19 <style type="text/css">
20 @import "../../../../dojo/resources/dojo.css";
21 @import "../../../../dijit/themes/claro/claro.css";
22 </style>
23 <script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true, has:{'dojo-bidi': true}"></script>
24 <script type="text/javascript">
25 require(["dojo/ready", "dojox/charting/Chart", "dojox/charting/plot2d/Spider", "dojox/charting/themes/PlotKit/blue",
26 "dijit/Tooltip", "dojox/charting/axis2d/Base"], function(ready, Chart, Spider, blue, Tooltip, Base){
27 ready(function(){
28 var chart = new Chart("test");
29 chart.setTheme(blue);
30 chart.addPlot("default", {
31 type: Spider,
32 labelOffset: -10,
33 axisColor: "lightgray",
34 spiderColor: "silver",
35 seriesFillAlpha: 0.2,
36 spiderOrigin: 0.16,
37 markerSize: 3,
38 precision: 0
39 });
40 var data= [ {"Sales":73,"Marketing":226,"Development":125,"Administration":135,"Support":105},
41 {"Sales":73,"Marketing":206,"Development":155,"Administration":235,"Support":87},
42 {"Sales":53,"Marketing":326,"Development":225,"Administration":145,"Support":55} ];
43
44 // we define several axis (optional step for the general case)
45 chart.addAxis("Sales", { type: Base, min: 0, max: 100 });
46 chart.addAxis("Marketing", { type: Base, min: 100, max: 400});
47 chart.addAxis("Development", { type: Base, min: 0, max: 250 });
48 chart.addAxis("Administration", { type: Base, min: 0, max: 250});
49 chart.addAxis("Support", { type: Base, min: 0, max:150 });
50 chart.setDir("rtl");
51 // we add a single series, without axis definitions we won't be able to compute data axis min/max
52 chart.addSeries("China", {data: data[0] }, { fill: "blue" });
53
54 chart.render();
55 });
56 });
57 </script>
58 </head>
59 <body class="claro">
60 <div id="test" style="width: 500px; height: 500px;"></div>
61 </body>
62 </html>