Debian Codegraph @

dojox/charting/tests/gradients/test_grad_bubble4.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 #4</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: "linear", space: "shapeX", x1: 0, y1: 0, x2: 100, y2: 100,
33 colors: [{ offset: 0, color: "white" }, { offset: 1, color: "red" }]
34 }
35 },
36 {
37 fill: {
38 type: "linear", space: "shapeX", x1: 0, y1: 0, x2: 100, y2: 0,
39 colors: [{ offset: 0, color: "white" }, { offset: 1, color: "blue" }]
40 }
41 },
42 {
43 fill: {
44 type: "linear", space: "shapeY", x1: 0, y1: 0, x2: 100, y2: 100,
45 colors: [{ offset: 0, color: "white" }, { offset: 1, color: "green" }]
46 }
47 }
48 ]
49 });
50
51 var chart1 = new dojox.charting.Chart("c1").
52 setTheme(theme1).
53 addAxis("x", {minorLabels: false}).
54 addAxis("y", {vertical: true, minorLabels: false, max: 10}).
55 addPlot("default", {type: "Bubble"}).
56 addSeries("Series A", [
57 { x: 0.5, y: 5, size: 1.4 },
58 { x: 1.5, y: 1.5, size: 4.5 },
59 { x: 2, y: 9, size:1.5 },
60 { x: 5, y: 0.3, size:0.8 }
61 ]).
62 addSeries("Series B", [
63 { x: 0.3, y: 8, size: 2.5 },
64 { x: 4, y: 8, size:1.1 },
65 { x: 5.5, y: 2, size: 3.2 },
66 { x: 3, y: 6, size: 3.2 }
67 ]).
68 render();
69 };
70
71 dojo.addOnLoad(run);
72 </script>
73 </head>
74 <body>
75 <p><button id="start" onclick="run();">Start!</button></p>
76 <h1>1D shape-space gradient</h1>
77 <p>Bubble</p>
78 <div id="c1" style="position: relative; width: 600px; height: 400px;"></div>
79 </body>
80 </html>