File: anchor.html

package info (click to toggle)
ruby-rubyvis 0.6.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,808 kB
  • ctags: 679
  • sloc: ruby: 11,114; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 444 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<html>
  <head>
    <title>Anchor</title>
    <script type="text/javascript" src="protovis-r3.3.js"></script>
  </head>
  <body>
    <script type="text/javascript+protovis">

var vis = new pv.Panel()
    .width(200)
    .height(200)

vis.add(pv.Bar)
    .fillStyle("#ccc")
  .anchor("top").add(pv.Label)
    .text("top")
    .anchorTarget()
  .anchor("bottom").add(pv.Label)
    .text("bottom");

vis.render();

    </script>
  </body>
</html>