Sha256: 09a7ee4bbcb15f55538a9ad04f7aff857e8cf1c0155aa9a8002a035be9041e8e
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
<html> <head> <title>Scatterplot</title> <script type="text/javascript" src="../../protovis-d3.3.js"></script> </head> <body> <script type="text/javascript+protovis"> var w = 400, h = 400; var vis = new pv.Panel() .width(w) .height(h) .margin(20) .strokeStyle("#ccc"); var dot = vis.add(pv.Dot) .top(w / 2) .left(w / 2) .shapeRadius(w >> 2); dot.anchor("top").add(pv.Label).text("top"); dot.anchor("left").add(pv.Label).text("left"); dot.anchor("right").add(pv.Label).text("right"); dot.anchor("bottom").add(pv.Label).text("bottom"); dot.anchor("center").add(pv.Label).text("center"); vis.render(); </script> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.1.1 | vendor/tests/mark/dot-anchor.html |