Sha256: 7ebbd6dc2648f7122e637008d900ec37e9ab893579d1312fdef1039f120fbf44

Contents?: true

Size: 833 Bytes

Versions: 1

Compression:

Stored size: 833 Bytes

Contents

<html>
  <head>
    <title>Flare Treemap</title>
    <script type="text/javascript" src="../../protovis-d3.3.js"></script>
    <style type="text/css">

body {
  margin: 0;
}

    </style>
  </head>
  <body>
    <script type="text/javascript+protovis">

var vis = new pv.Panel()
    .width(function() window.innerWidth - 1)
    .height(function() window.innerHeight - 1)
    .margin(.5);

vis.add(pv.Layout.Treemap)
    .nodes(pv.nodes(pv.range(3)))
    .mode("slice")
  .leaf.add(pv.Layout.Treemap)
    .nodes(pv.nodes(pv.range(10)))
    .mode("dice")
  .leaf.add(pv.Layout.Treemap)
    .nodes(pv.nodes(pv.range(10)))
    .mode("slice")
  .leaf.add(pv.Bar)
    .fillStyle(pv.ramp("steelblue", "brown").by(Math.random))
    .strokeStyle("#fff")
    .lineWidth(1)
    .antialias(false);

vis.render();

    </script>
  </body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyvis-0.1.1 vendor/tests/layout/treemap-hierarchy.html