Sha256: 3fc82c4ceb20fd36b1f67d80480b56b1a19c2c570d153fa57fd564571fb65729
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
<html> <head> <title>Identity Projection</title> <script type="text/javascript" src="../../protovis-d3.3.js"></script> <script type="text/javascript" src="countries-lores.js"></script> <script type="text/javascript" src="../center.js"></script> </head> <body> <script type="text/javascript+protovis"> var w = 860, h = 516, geo = pv.Geo.scale().range(w, h); var vis = new pv.Panel() .width(w) .height(h) .margin(2); /* Countries. */ vis.add(pv.Panel) .data(countries) .add(pv.Panel) .data(function(c) c.borders) .add(pv.Line) .data(function(b) b) .left(geo.x) .top(geo.y) .fillStyle("steelblue") .strokeStyle(null); /* Latitude ticks. */ vis.add(pv.Panel) .data(geo.ticks.lat()) .add(pv.Line) .data(function(b) b) .left(geo.x) .top(geo.y) .strokeStyle("#999") .lineWidth(.5); /* Longitude ticks. */ vis.add(pv.Panel) .data(geo.ticks.lng()) .add(pv.Line) .data(function(b) b) .left(geo.x) .top(geo.y) .strokeStyle("#999") .lineWidth(.5); vis.render(); </script> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.1.1 | vendor/tests/geo/scale-identity.html |