Sha256: a8e24c775c4ad50fac456c023dd91942577ffc3274011ab9c58ad8564c4b2063

Contents?: true

Size: 871 Bytes

Versions: 8

Compression:

Stored size: 871 Bytes

Contents

<html>
  <head>
    <title>Test: Layout tree, orient radial</title>
    <script type="text/javascript" src="protovis-r3.3.js"></script>
  </head>
  <body>
  <h1>Test: Layout tree, orient radial</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)

treemap = vis.add(pv.Layout.Tree).
  nodes(hier_nodes) .breadth(20).orient("radial")

treemap.node.add(pv.Dot).
  fillStyle(function(d) {return color(d.nodeValue);}).
  strokeStyle("black").
  lineWidth(1).
  antialias(false)
treemap.link.add(pv.Line)  
treemap.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

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