Debian Codegraph @

dojox/charting/tests/BidiSupport/mirror_grid.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>Chart 2D</title>
18 <style type="text/css">
19 @import "../../../../dojo/resources/dojo.css";
20 @import "../../../../dijit/tests/css/dijitTests.css";
21 </style>
22 <script type="text/javascript" src="../../../../dojo/dojo.js" data-dojo-config="isDebug: true, async: true, has:{'dojo-bidi': true}"></script>
23 <script type="text/javascript">
24 require([
25 "dojo/ready",
26 "dojo/dom",
27 "dojox/charting/Chart",
28 "dojox/charting/axis2d/Default",
29 "dojox/charting/plot2d/Lines",
30 "dojox/charting/plot2d/Grid"],
31 function(ready, dom, Chart, Axis, Lines, Grid){
32 ready(function(){
33 var chart = new Chart(dom.byId("chart")).
34 addAxis("x", { fixLower: "minor", fixUpper: "minor", natural: true }).
35 addAxis("y", { vertical: true, fixLower: "major", fixUpper: "major", includeZero: true }).
36 addPlot("default", { type: Lines }).
37 addPlot("grid", { type: Grid, renderOnAxis: false, majorVLine: { color: "green", width: 3 }, majorHLine: { color: "red", width: 3 } }).
38 addSeries("Series A", [ 2, 1, 0.5, -1, -2 ] ).setDir("rtl").
39 render();
40 });
41 });
42 </script>
43 </head>
44 <body>
45 <h1>Grid</h1>
46 <div id="chart" style="width:400px; height:300px"></div>
47 </body>
48 </html>