Sha256: d6e1cfe56c5816831a5ebe03e25596c9fc901f3f355e484a02d456f45a23dfa9

Contents?: true

Size: 646 Bytes

Versions: 8

Compression:

Stored size: 646 Bytes

Contents

<html>
  <head>
    <title>Rule Anchor</title>
    <script type="text/javascript" src="protovis-r3.3.js"></script>
    <style type="text/css">span { display: block !important; }</style>
  </head>
  <body>
    <script type="text/javascript+protovis">

var vis = new pv.Panel()
.width(400)
.height(300)


bar=vis.add(pv.Bar)
.data(["left", "top", "right", "bottom", "center"])
    .width(300)
    .height(30)
    .left(40)
    .right(40)
    .top(function() {return this.index*60}).fillStyle('red')

var rule = bar.add(pv.Rule)

rule.anchor(function(d) d).add(pv.Label)
    .text(function(d, p) d);

vis.render();

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubyvis-0.7.0 spec/fixtures/rule-anchor.html
rubyvis-0.6.1 spec/fixtures/rule-anchor.html
rubyvis-0.6.0 spec/fixtures/rule-anchor.html
rubyvis-0.5.2 spec/fixtures/rule-anchor.html
rubyvis-0.5.1 spec/fixtures/rule-anchor.html
rubyvis-0.5.0 spec/fixtures/rule-anchor.html
rubyvis-0.4.1 spec/fixtures/rule-anchor.html
rubyvis-0.4.0 spec/fixtures/rule-anchor.html