Sha256: 20062de7f04741acbf015e56f7838133f2325a731c352c86ad6043b04bec51c7

Contents?: true

Size: 633 Bytes

Versions: 8

Compression:

Stored size: 633 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(["A"])
    .width(800)
    .height(800)
    .margin(10)
    .fillStyle("#eee")
    .strokeStyle("#ccc");

vis.add(pv.Layout.Grid)
    .rows(3)
    .cols(3)
  .cell.add(pv.Layout.Grid)
    .rows(pv.index)
    .cols(pv.index)
  .cell.add(pv.Bar)
    .strokeStyle("#fff")
  .anchor("center").add(pv.Label)
    .textStyle("rgba(255, 255, 255, .4)")
    .font("24px sans");

vis.render();

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

Version data entries

8 entries across 8 versions & 1 rubygems

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