Sha256: f017629369ec49d67cbdf555db816ee697745e69a5a65a812fb7f7f4f465e438
Contents?: true
Size: 843 Bytes
Versions: 8
Compression:
Stored size: 843 Bytes
Contents
<html> <head> <title>Test: Layout Partition</title> <script type="text/javascript" src="protovis-r3.3.js"></script> </head> <body> <h1>Test: Layout Partition</h1> <script type="text/javascript"> color=pv.Colors.category19() w=400 h=400 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) partition= vis.add(pv.Layout.Cluster). nodes(hier_nodes).orient("top") partition.node.add(pv.Dot). fillStyle(function(d) {return color(d.nodeValue);}). strokeStyle("black"). lineWidth(1). antialias(false) partition.link.add(pv.Line) partition.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