Debian Codegraph @

dojox/charting/tests/gradients/test_grad_bubble6.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 <title>Gradient: Bubble #6</title>
18 <script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true"></script>
19 <script>
20 dojo.require("dojox.charting.Chart");
21 dojo.require("dojox.charting.axis2d.Default");
22 dojo.require("dojox.charting.plot2d.Bubble");
23 dojo.require("dojox.charting.Theme");
24
25 run = function(){
26 dojo.attr("start", "disabled", true);
27
28 var theme1 = new dojox.charting.Theme({
29 seriesThemes: [
30 {
31 fill: {
32 type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
33 colors: [{ offset: 0, color: "#ed0" }, { offset: 0.5, color: "white" }, { offset: 1, color: "#ed0" }]
34 }
35 },
36 {
37 fill: {
38 type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
39 colors: [{ offset: 0, color: "#e00" }, { offset: 0.5, color: "#eaa" }, { offset: 1, color: "#e00" }]
40 }
41 },
42 {
43 fill: {
44 type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
45 colors: [{ offset: 0, color: "#0e0" }, { offset: 0.5, color: "#aea" }, { offset: 1, color: "#0e0" }]
46 }
47 },
48 {
49 fill: {
50 type: "radial", space: "shape", cx: 0, cy: 0, r: 100,
51 colors: [{ offset: 0, color: "#00e" }, { offset: 0.5, color: "#aae" }, { offset: 1, color: "#00e" }]
52 }
53 }
54 ]
55 });
56
57 var chart1 = new dojox.charting.Chart("c1").
58 setTheme(theme1).
59 addAxis("x", {minorLabels: false}).
60 addAxis("y", {vertical: true, minorLabels: false, max: 10}).
61 addPlot("default", {type: "Bubble"}).
62 addSeries("Series A", [
63 { x: 0.5, y: 5, size: 1.4 },
64 { x: 1.5, y: 1.5, size: 4.5 },
65 { x: 2, y: 9, size:1.5 },
66 { x: 5, y: 0.3, size:0.8 }
67 ]).
68 addSeries("Series B", [
69 { x: 0.3, y: 8, size: 2.5 },
70 { x: 4, y: 8, size:1.1 },
71 { x: 5.5, y: 2, size: 3.2 },
72 { x: 3, y: 6, size: 3.2 }
73 ]).
74 render();
75 };
76
77 dojo.addOnLoad(run);
78 </script>
79 </head>
80 <body>
81 <p><button id="start" onclick="run();">Start!</button></p>
82 <h1>radial gradient</h1>
83 <p>Bubble</p>
84 <div id="c1" style="position: relative; width: 600px; height: 400px;"></div>
85 </body>
86 </html>