Debian Codegraph @

dojox/charting/tests/gradients/test_grad_scatterB.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: Scatter #2</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.Scatter");
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 shadow: null,
32 fill: {
33 type: "radial", space: "plot", cx: 50, cy: 50, r: 75,
34 colors: [{ offset: 0, color: "red" }, { offset: 0.5, color: "yellow" }, { offset: 1, color: "green" }]
35 }
36 }
37 ]
38 });
39
40 var run1 = [], run2 = [], run3 = [];
41 for(var i = 0; i < 12; ++i){
42 for(var j = 0; j < 8; ++j){
43 run1.push({x: i + 0.7, y: j + 0.7});
44 run2.push({x: i + 1.3, y: j + 1.3});
45 run3.push({x: i + 0.7, y: j + 1.3});
46 }
47 }
48
49 var chart1 = new dojox.charting.Chart("c1").
50 setTheme(theme1).
51 addAxis("x", {includeZero: true, minorLabels: false}).
52 addAxis("y", {vertical: true, includeZero: true, minorLabels: false}).
53 addPlot("default", {type: "Scatter"}).
54 addSeries("Series A", run1).
55 addSeries("Series B", run2).
56 addSeries("Series C", run3).
57 render();
58 };
59
60 dojo.addOnLoad(run);
61 </script>
62 </head>
63 <body>
64 <p><button id="start" onclick="run();">Start!</button></p>
65 <h1>plot-space radial gradient</h1>
66 <p>Scatter</p>
67 <div id="c1" style="position: relative; width: 600px; height: 400px;"></div>
68 </body>
69 </html>