Sha256: 53b6316634f22d2a5454df6326dfab532bc0044524db9589792164103134a698

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

<html>
  <head>
    <title>Grid Layout</title>
    <script type="text/javascript" src="../../protovis-d3.3.js"></script>
  </head>
  <body>
    <script type="text/javascript+protovis">

var vis = new pv.Panel()
    .data(["\u2603"])
    .width(800)
    .height(800)
    .margin(10)
    .fillStyle("#eee")
    .strokeStyle("#ccc");

vis.add(pv.Layout.Grid)
    .cols([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
  .cell.add(pv.Layout.Grid)
    .rows(pv.identity)
    .cols(pv.identity)
  .cell.add(pv.Bar)
    .strokeStyle("#fff")
  .anchor("center").add(pv.Label);

vis.render();

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyvis-0.1.1 vendor/tests/layout/grid-cols.html