Sha256: 2d2af2490f3ca2ab66fd14f821c4337f739d8e94d557b9fda0ca56eac6ed5d4d
Contents?: true
Size: 784 Bytes
Versions: 8
Compression:
Stored size: 784 Bytes
Contents
<html> <head> <title>Test: Layout Indent</title> <script type="text/javascript" src="protovis-r3.3.js"></script> </head> <body> <h1>Test: Layout Indent</h1> <script type="text/javascript"> color=pv.Colors.category19() w=200 h=200 subtree={a:1,b:2,c:3,d:4} hier_nodes=pv.dom({a:subtree,b:subtree, c:subtree, d:subtree,e:subtree,f:subtree}).root("test").nodes() vis = new pv.Panel() .width(w) .height(h) .top(20) .bottom(10) .left(10) indent = vis.add(pv.Layout.Pack). nodes(hier_nodes) indent.node.add(pv.Dot). fillStyle(function(d) {return color(d.nodeValue);}). strokeStyle("black"). lineWidth(1). antialias(false) indent.label.add(pv.Label). text(function(d) {return d.nodeName}) vis.render() </script> </body> </html>
Version data entries
8 entries across 8 versions & 1 rubygems