Sha256: 30d637f314e1099b71450c3d44fb89738a7f33c2346be2a24e0e7874b9d2b692
Contents?: true
Size: 853 Bytes
Versions: 8
Compression:
Stored size: 853 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("left").group(2) 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