rubyvis 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -1
- data/Manifest.txt +421 -1
- data/README.txt +12 -10
- data/examples/first.rb +2 -2
- data/examples/second.rb +6 -3
- data/lib/rubyvis.rb +18 -3
- data/lib/rubyvis/mark.rb +101 -83
- data/lib/rubyvis/mark/anchor.rb +5 -7
- data/lib/rubyvis/mark/area.rb +19 -17
- data/lib/rubyvis/mark/bar.rb +3 -10
- data/lib/rubyvis/mark/label.rb +3 -4
- data/lib/rubyvis/mark/line.rb +20 -4
- data/lib/rubyvis/mark/panel.rb +31 -6
- data/lib/rubyvis/mark/rule.rb +8 -4
- data/lib/rubyvis/property.rb +11 -0
- data/lib/rubyvis/scene/svg_label.rb +1 -1
- data/lib/rubyvis/scene/svg_scene.rb +2 -1
- data/lib/rubyvis/sceneelement.rb +2 -0
- data/spec/bar_spec.rb +50 -0
- data/spec/label_spec.rb +41 -0
- data/spec/mark_spec.rb +16 -0
- data/spec/panel_spec.rb +22 -4
- data/spec/spec_helper.rb +1 -0
- data/vendor/FUTURE +62 -0
- data/vendor/Makefile +138 -0
- data/vendor/TODO +22 -0
- data/vendor/examples/antibiotics/antibiotics-scatter.html +113 -0
- data/vendor/examples/antibiotics/antibiotics.html +140 -0
- data/vendor/examples/antibiotics/antibiotics.js +20 -0
- data/vendor/examples/barley/barley.html +102 -0
- data/vendor/examples/barley/barley.js +122 -0
- data/vendor/examples/cars/cars.html +90 -0
- data/vendor/examples/cars/cars.js +408 -0
- data/vendor/examples/clock/clock.html +91 -0
- data/vendor/examples/crimea/crimea-grouped-bar.html +65 -0
- data/vendor/examples/crimea/crimea-line.html +61 -0
- data/vendor/examples/crimea/crimea-stacked-area.html +61 -0
- data/vendor/examples/crimea/crimea-stacked-bar.html +60 -0
- data/vendor/examples/crimea/crimea.html +100 -0
- data/vendor/examples/crimea/crimea.js +33 -0
- data/vendor/examples/downloadify/LICENSE.txt +22 -0
- data/vendor/examples/downloadify/download.png +0 -0
- data/vendor/examples/downloadify/downloadify.html +57 -0
- data/vendor/examples/downloadify/downloadify.min.js +3 -0
- data/vendor/examples/downloadify/downloadify.swf +0 -0
- data/vendor/examples/downloadify/swfobject.js +4 -0
- data/vendor/examples/ex.css +17 -0
- data/vendor/examples/eyes/eyes.html +53 -0
- data/vendor/examples/eyes/matrix.html +44 -0
- data/vendor/examples/flowers/flowers.html +109 -0
- data/vendor/examples/flowers/flowers.js +154 -0
- data/vendor/examples/group-stack/group-stack.html +79 -0
- data/vendor/examples/group-stack/headcount.js +23 -0
- data/vendor/examples/hotel/hotel.html +76 -0
- data/vendor/examples/hotel/hotel.js +245 -0
- data/vendor/examples/jobs/jobs.html +71 -0
- data/vendor/examples/jobs/jobs.js +1024 -0
- data/vendor/examples/jquery-1.4.2.min.js +154 -0
- data/vendor/examples/nba/nba.html +83 -0
- data/vendor/examples/nba/nba.js +53 -0
- data/vendor/examples/nba/nba2.html +82 -0
- data/vendor/examples/sankey/gdp2009.js +184 -0
- data/vendor/examples/sankey/sankey.html +77 -0
- data/vendor/examples/slider/cell.html +112 -0
- data/vendor/examples/slider/cell.js +31 -0
- data/vendor/examples/slider/horizon.html +85 -0
- data/vendor/examples/slider/jquery-ui-1.8rc3.custom.min.js +71 -0
- data/vendor/examples/slider/slider.html +50 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/vendor/examples/slider/ui-lightness/images/ui-icons_222222_256x240.png +2 -0
- data/vendor/examples/slider/ui-lightness/images/ui-icons_228ef1_256x240.png +2 -0
- data/vendor/examples/slider/ui-lightness/images/ui-icons_ef8c08_256x240.png +2 -0
- data/vendor/examples/slider/ui-lightness/images/ui-icons_ffd27a_256x240.png +2 -0
- data/vendor/examples/slider/ui-lightness/images/ui-icons_ffffff_256x240.png +2 -0
- data/vendor/examples/slider/ui-lightness/jquery-ui-1.8rc3.custom.css +302 -0
- data/vendor/examples/tipsy/jquery.tipsy.js +198 -0
- data/vendor/examples/tipsy/tipsy-bar.html +65 -0
- data/vendor/examples/tipsy/tipsy-line.html +67 -0
- data/vendor/examples/tipsy/tipsy.css +12 -0
- data/vendor/examples/tipsy/tipsy.gif +0 -0
- data/vendor/examples/tipsy/tipsy.js +66 -0
- data/vendor/examples/weather/weather.html +86 -0
- data/vendor/examples/weather/weather.js +42 -0
- data/vendor/examples/wheat/wheat.html +130 -0
- data/vendor/examples/wheat/wheat.js +70 -0
- data/vendor/lib/google-compiler/COPYING +202 -0
- data/vendor/lib/google-compiler/README +224 -0
- data/vendor/lib/google-compiler/compiler-20100201.jar +0 -0
- data/vendor/protovis-d3.3.js +15726 -0
- data/vendor/protovis-r3.3.js +287 -0
- data/vendor/src/behavior/Behavior.js +32 -0
- data/vendor/src/behavior/Drag.js +112 -0
- data/vendor/src/behavior/Pan.js +110 -0
- data/vendor/src/behavior/Point.js +157 -0
- data/vendor/src/behavior/Resize.js +104 -0
- data/vendor/src/behavior/Select.js +100 -0
- data/vendor/src/behavior/Zoom.js +85 -0
- data/vendor/src/color/Color.js +598 -0
- data/vendor/src/color/Colors.js +135 -0
- data/vendor/src/color/Ramp.js +17 -0
- data/vendor/src/data/Arrays.js +277 -0
- data/vendor/src/data/Dom.js +380 -0
- data/vendor/src/data/Flatten.js +146 -0
- data/vendor/src/data/Histogram.js +120 -0
- data/vendor/src/data/LinearScale.js +54 -0
- data/vendor/src/data/LogScale.js +142 -0
- data/vendor/src/data/Nest.js +257 -0
- data/vendor/src/data/Numbers.js +313 -0
- data/vendor/src/data/Objects.js +78 -0
- data/vendor/src/data/OrdinalScale.js +267 -0
- data/vendor/src/data/QuantileScale.js +180 -0
- data/vendor/src/data/QuantitativeScale.js +440 -0
- data/vendor/src/data/RootScale.js +55 -0
- data/vendor/src/data/Scale.js +86 -0
- data/vendor/src/data/Transform.js +109 -0
- data/vendor/src/data/Tree.js +124 -0
- data/vendor/src/data/Vector.js +118 -0
- data/vendor/src/geo/Geo.js +5 -0
- data/vendor/src/geo/GeoScale.js +307 -0
- data/vendor/src/geo/LatLng.js +23 -0
- data/vendor/src/geo/Projection.js +43 -0
- data/vendor/src/geo/Projections.js +117 -0
- data/vendor/src/lang/Array.js +112 -0
- data/vendor/src/lang/init.js +26 -0
- data/vendor/src/layout/Arc.js +178 -0
- data/vendor/src/layout/Bullet.js +164 -0
- data/vendor/src/layout/Cluster.js +205 -0
- data/vendor/src/layout/Force.js +309 -0
- data/vendor/src/layout/Grid.js +119 -0
- data/vendor/src/layout/Hierarchy.js +249 -0
- data/vendor/src/layout/Horizon.js +159 -0
- data/vendor/src/layout/Indent.js +83 -0
- data/vendor/src/layout/Layout.js +56 -0
- data/vendor/src/layout/Matrix.js +177 -0
- data/vendor/src/layout/Network.js +302 -0
- data/vendor/src/layout/Pack.js +323 -0
- data/vendor/src/layout/Partition.js +203 -0
- data/vendor/src/layout/Rollup.js +203 -0
- data/vendor/src/layout/Stack.js +391 -0
- data/vendor/src/layout/Tree.js +282 -0
- data/vendor/src/layout/Treemap.js +347 -0
- data/vendor/src/mark/Anchor.js +81 -0
- data/vendor/src/mark/Area.js +268 -0
- data/vendor/src/mark/Bar.js +93 -0
- data/vendor/src/mark/Dot.js +212 -0
- data/vendor/src/mark/Ease.js +150 -0
- data/vendor/src/mark/Image.js +154 -0
- data/vendor/src/mark/Label.js +155 -0
- data/vendor/src/mark/Line.js +195 -0
- data/vendor/src/mark/Mark.js +1237 -0
- data/vendor/src/mark/Panel.js +273 -0
- data/vendor/src/mark/Rule.js +143 -0
- data/vendor/src/mark/Transient.js +7 -0
- data/vendor/src/mark/Transition.js +195 -0
- data/vendor/src/mark/Wedge.js +244 -0
- data/vendor/src/physics/BoundConstraint.js +75 -0
- data/vendor/src/physics/ChargeForce.js +184 -0
- data/vendor/src/physics/CollisionConstraint.js +113 -0
- data/vendor/src/physics/Constraint.js +26 -0
- data/vendor/src/physics/DragForce.js +49 -0
- data/vendor/src/physics/Force.js +25 -0
- data/vendor/src/physics/Particle.js +81 -0
- data/vendor/src/physics/PositionConstraint.js +72 -0
- data/vendor/src/physics/Quadtree.js +195 -0
- data/vendor/src/physics/Simulation.js +159 -0
- data/vendor/src/physics/SpringForce.js +141 -0
- data/vendor/src/pv-internals.js +154 -0
- data/vendor/src/pv.js +95 -0
- data/vendor/src/scene/SvgArea.js +172 -0
- data/vendor/src/scene/SvgBar.js +28 -0
- data/vendor/src/scene/SvgCurve.js +354 -0
- data/vendor/src/scene/SvgDot.js +81 -0
- data/vendor/src/scene/SvgImage.js +45 -0
- data/vendor/src/scene/SvgLabel.js +46 -0
- data/vendor/src/scene/SvgLine.js +159 -0
- data/vendor/src/scene/SvgPanel.js +126 -0
- data/vendor/src/scene/SvgRule.js +26 -0
- data/vendor/src/scene/SvgScene.js +185 -0
- data/vendor/src/scene/SvgWedge.js +66 -0
- data/vendor/src/text/DateFormat.js +262 -0
- data/vendor/src/text/Format.js +78 -0
- data/vendor/src/text/NumberFormat.js +227 -0
- data/vendor/src/text/TimeFormat.js +115 -0
- data/vendor/test1.html +30 -0
- data/vendor/tests/behavior/drag-events.html +47 -0
- data/vendor/tests/behavior/drag.html +32 -0
- data/vendor/tests/behavior/drag2.html +33 -0
- data/vendor/tests/behavior/point-area-stacked.html +73 -0
- data/vendor/tests/behavior/point-area-stacked2.html +70 -0
- data/vendor/tests/behavior/point-area.html +67 -0
- data/vendor/tests/behavior/point-bar.html +62 -0
- data/vendor/tests/behavior/point-dot.html +60 -0
- data/vendor/tests/behavior/point-line.html +62 -0
- data/vendor/tests/behavior/point-lines-grid.html +65 -0
- data/vendor/tests/behavior/point-lines.html +61 -0
- data/vendor/tests/behavior/point-wedge.html +43 -0
- data/vendor/tests/behavior/resize.html +69 -0
- data/vendor/tests/behavior/select.html +37 -0
- data/vendor/tests/bzr.js +62 -0
- data/vendor/tests/center.js +13 -0
- data/vendor/tests/data/deviation.html +54 -0
- data/vendor/tests/data/histogram-discrete.html +50 -0
- data/vendor/tests/data/histogram.html +56 -0
- data/vendor/tests/data/log-adjusted.html +48 -0
- data/vendor/tests/data/log-ceil.html +48 -0
- data/vendor/tests/data/log-floor.html +48 -0
- data/vendor/tests/data/log-symmetric.html +48 -0
- data/vendor/tests/data/log.html +48 -0
- data/vendor/tests/data/max-index.html +36 -0
- data/vendor/tests/data/max.html +36 -0
- data/vendor/tests/data/min-index.html +36 -0
- data/vendor/tests/data/min.html +36 -0
- data/vendor/tests/data/ordinal-split-banded.html +45 -0
- data/vendor/tests/data/ordinal-split-banded2.html +45 -0
- data/vendor/tests/data/ordinal-split-flush.html +51 -0
- data/vendor/tests/data/ordinal-split.html +51 -0
- data/vendor/tests/data/range.html +105 -0
- data/vendor/tests/data/scale-date.html +46 -0
- data/vendor/tests/data/scale-date2.html +38 -0
- data/vendor/tests/data/scale-date3.html +38 -0
- data/vendor/tests/data/scale-date4.html +38 -0
- data/vendor/tests/data/scale-degenerate.html +143 -0
- data/vendor/tests/data/scale-linear.html +59 -0
- data/vendor/tests/data/scale-log.html +60 -0
- data/vendor/tests/data/scale-log2.html +60 -0
- data/vendor/tests/data/scale-log3.html +60 -0
- data/vendor/tests/data/scale-log4.html +60 -0
- data/vendor/tests/data/scale-log5.html +60 -0
- data/vendor/tests/data/scale-log6.html +60 -0
- data/vendor/tests/data/scale-quantile.html +47 -0
- data/vendor/tests/data/scale-quantile2.html +50 -0
- data/vendor/tests/data/scale-quantile3.html +48 -0
- data/vendor/tests/data/scale-root.html +60 -0
- data/vendor/tests/data/scale-root2.html +39 -0
- data/vendor/tests/data/scale-tick-format.html +54 -0
- data/vendor/tests/data/scale-ticks.html +45 -0
- data/vendor/tests/data/sum.html +42 -0
- data/vendor/tests/data/variance.html +42 -0
- data/vendor/tests/diamond.js +40 -0
- data/vendor/tests/flare-imports.js +222 -0
- data/vendor/tests/flare.js +284 -0
- data/vendor/tests/geo/countries-hires.js +257 -0
- data/vendor/tests/geo/countries-lores.js +197 -0
- data/vendor/tests/geo/population.js +250 -0
- data/vendor/tests/geo/scale-aitoff.html +58 -0
- data/vendor/tests/geo/scale-gall-peters.html +56 -0
- data/vendor/tests/geo/scale-hammer.html +58 -0
- data/vendor/tests/geo/scale-identity.html +56 -0
- data/vendor/tests/geo/scale-mercator.html +56 -0
- data/vendor/tests/geo/scale-sinusoidal.html +57 -0
- data/vendor/tests/geo/scale-smart-domain.html +58 -0
- data/vendor/tests/geo/scale.html +55 -0
- data/vendor/tests/geo/scale2.html +40 -0
- data/vendor/tests/geo/us-states.js +61 -0
- data/vendor/tests/heatmap.js +63 -0
- data/vendor/tests/lang/globals.html +41 -0
- data/vendor/tests/lang/init.html +31 -0
- data/vendor/tests/layers.js +28 -0
- data/vendor/tests/layout/arc-directed.html +33 -0
- data/vendor/tests/layout/arc-radial.html +36 -0
- data/vendor/tests/layout/arc-undirected.html +32 -0
- data/vendor/tests/layout/arc.html +33 -0
- data/vendor/tests/layout/arc2.html +32 -0
- data/vendor/tests/layout/bullet-multiples.html +60 -0
- data/vendor/tests/layout/bullet.html +45 -0
- data/vendor/tests/layout/bullets.js +37 -0
- data/vendor/tests/layout/cluster-fill-group.html +24 -0
- data/vendor/tests/layout/cluster-fill.html +28 -0
- data/vendor/tests/layout/cluster-partition-radial-fill.html +43 -0
- data/vendor/tests/layout/cluster-radial-fill-radius.html +26 -0
- data/vendor/tests/layout/cluster-radial-fill.html +29 -0
- data/vendor/tests/layout/cluster-radial-group-fill.html +30 -0
- data/vendor/tests/layout/cluster-radial-radius.html +30 -0
- data/vendor/tests/layout/cluster-radial.html +28 -0
- data/vendor/tests/layout/cluster-radial2.html +33 -0
- data/vendor/tests/layout/cluster.html +34 -0
- data/vendor/tests/layout/cluster2.html +32 -0
- data/vendor/tests/layout/force-toggle.html +46 -0
- data/vendor/tests/layout/force.html +45 -0
- data/vendor/tests/layout/force2.html +58 -0
- data/vendor/tests/layout/force3.html +41 -0
- data/vendor/tests/layout/force4.html +45 -0
- data/vendor/tests/layout/force5.html +53 -0
- data/vendor/tests/layout/grid-cols.html +31 -0
- data/vendor/tests/layout/grid-heatmap.html +25 -0
- data/vendor/tests/layout/grid-rows.html +31 -0
- data/vendor/tests/layout/grid.html +34 -0
- data/vendor/tests/layout/horizon-color.html +31 -0
- data/vendor/tests/layout/horizon.html +31 -0
- data/vendor/tests/layout/indent-toggle.html +62 -0
- data/vendor/tests/layout/indent.html +25 -0
- data/vendor/tests/layout/indent2.html +33 -0
- data/vendor/tests/layout/matrix-sort.html +28 -0
- data/vendor/tests/layout/matrix.html +35 -0
- data/vendor/tests/layout/network.html +43 -0
- data/vendor/tests/layout/pack-bubble.html +45 -0
- data/vendor/tests/layout/pack.html +26 -0
- data/vendor/tests/layout/pack2.html +32 -0
- data/vendor/tests/layout/partition-fill.html +27 -0
- data/vendor/tests/layout/partition-fill2.html +22 -0
- data/vendor/tests/layout/partition-fill3.html +27 -0
- data/vendor/tests/layout/partition-radial-fill-radius.html +25 -0
- data/vendor/tests/layout/partition-radial-fill.html +26 -0
- data/vendor/tests/layout/partition-radial-fill2.html +23 -0
- data/vendor/tests/layout/partition-radial-fill3.html +29 -0
- data/vendor/tests/layout/partition-radial-radius.html +29 -0
- data/vendor/tests/layout/partition-radial.html +30 -0
- data/vendor/tests/layout/partition-radial2.html +33 -0
- data/vendor/tests/layout/partition.html +33 -0
- data/vendor/tests/layout/partition2.html +32 -0
- data/vendor/tests/layout/rollup.html +50 -0
- data/vendor/tests/layout/stack-empty.html +27 -0
- data/vendor/tests/layout/stack-expand.html +41 -0
- data/vendor/tests/layout/stack-reverse.html +42 -0
- data/vendor/tests/layout/stack-right.html +42 -0
- data/vendor/tests/layout/stack-rule.html +61 -0
- data/vendor/tests/layout/stack-visible.html +43 -0
- data/vendor/tests/layout/stack.html +53 -0
- data/vendor/tests/layout/tree-radial.html +31 -0
- data/vendor/tests/layout/tree-radial2.html +34 -0
- data/vendor/tests/layout/tree-toggle.html +36 -0
- data/vendor/tests/layout/tree.html +31 -0
- data/vendor/tests/layout/tree2.html +35 -0
- data/vendor/tests/layout/treemap-hierarchy.html +40 -0
- data/vendor/tests/layout/treemap-margin.html +26 -0
- data/vendor/tests/layout/treemap-round.html +40 -0
- data/vendor/tests/layout/treemap-slice.html +34 -0
- data/vendor/tests/layout/treemap.html +37 -0
- data/vendor/tests/life.js +212 -0
- data/vendor/tests/mark/anchor.html +25 -0
- data/vendor/tests/mark/area-anchor-chain.html +42 -0
- data/vendor/tests/mark/area-anchor-line.html +57 -0
- data/vendor/tests/mark/area-anchor-stack.html +35 -0
- data/vendor/tests/mark/area-anchor.html +43 -0
- data/vendor/tests/mark/area-anchor2.html +33 -0
- data/vendor/tests/mark/area-cardinal.html +57 -0
- data/vendor/tests/mark/area-monotone.html +57 -0
- data/vendor/tests/mark/area-segmented-basis.html +30 -0
- data/vendor/tests/mark/area-segmented-cardinal.html +30 -0
- data/vendor/tests/mark/area-segmented-monotone.html +30 -0
- data/vendor/tests/mark/area-segmented-step.html +44 -0
- data/vendor/tests/mark/area-segmented.html +29 -0
- data/vendor/tests/mark/area-stacked-cardinal.html +54 -0
- data/vendor/tests/mark/area-stacked-monotone.html +54 -0
- data/vendor/tests/mark/area-stacked.html +53 -0
- data/vendor/tests/mark/area-step.html +43 -0
- data/vendor/tests/mark/area-zero.html +32 -0
- data/vendor/tests/mark/area.html +57 -0
- data/vendor/tests/mark/bar-anchor-stack.html +51 -0
- data/vendor/tests/mark/bar-anchor.html +44 -0
- data/vendor/tests/mark/bar-column-grouped.html +63 -0
- data/vendor/tests/mark/bar-column-stacked.html +56 -0
- data/vendor/tests/mark/bar-column.html +54 -0
- data/vendor/tests/mark/bar-grouped.html +63 -0
- data/vendor/tests/mark/bar-stacked.html +57 -0
- data/vendor/tests/mark/bar.html +54 -0
- data/vendor/tests/mark/cursor.html +41 -0
- data/vendor/tests/mark/def-type.html +23 -0
- data/vendor/tests/mark/dot-anchor.html +33 -0
- data/vendor/tests/mark/dot-radius.html +22 -0
- data/vendor/tests/mark/dot-stroke.html +43 -0
- data/vendor/tests/mark/dot.html +52 -0
- data/vendor/tests/mark/dot2.html +61 -0
- data/vendor/tests/mark/ease.html +90 -0
- data/vendor/tests/mark/event-dblclick.html +30 -0
- data/vendor/tests/mark/event-prototype.html +45 -0
- data/vendor/tests/mark/event-render.html +45 -0
- data/vendor/tests/mark/event.html +24 -0
- data/vendor/tests/mark/image-color-inherit.html +33 -0
- data/vendor/tests/mark/image-color.html +35 -0
- data/vendor/tests/mark/image-color2.html +35 -0
- data/vendor/tests/mark/image-heatmap.html +29 -0
- data/vendor/tests/mark/image.html +32 -0
- data/vendor/tests/mark/label-break.html +54 -0
- data/vendor/tests/mark/label-decoration.html +22 -0
- data/vendor/tests/mark/label-events.html +32 -0
- data/vendor/tests/mark/line-anchor.html +42 -0
- data/vendor/tests/mark/line-basis.html +54 -0
- data/vendor/tests/mark/line-brownian.html +57 -0
- data/vendor/tests/mark/line-cardinal.html +77 -0
- data/vendor/tests/mark/line-catmull-rom.html +78 -0
- data/vendor/tests/mark/line-curve.html +65 -0
- data/vendor/tests/mark/line-eccentricity.html +39 -0
- data/vendor/tests/mark/line-fill.html +24 -0
- data/vendor/tests/mark/line-join.html +51 -0
- data/vendor/tests/mark/line-monotone-non-monotone.html +53 -0
- data/vendor/tests/mark/line-monotone-two-way.html +61 -0
- data/vendor/tests/mark/line-monotone.html +53 -0
- data/vendor/tests/mark/line-polar.html +36 -0
- data/vendor/tests/mark/line-segmented-basis.html +57 -0
- data/vendor/tests/mark/line-segmented-cardinal.html +80 -0
- data/vendor/tests/mark/line-segmented-join.html +52 -0
- data/vendor/tests/mark/line-segmented-monotone.html +56 -0
- data/vendor/tests/mark/line-segmented-polar.html +30 -0
- data/vendor/tests/mark/line-segmented-step.html +41 -0
- data/vendor/tests/mark/line-segmented-step2.html +32 -0
- data/vendor/tests/mark/line-segmented.html +30 -0
- data/vendor/tests/mark/line-step.html +39 -0
- data/vendor/tests/mark/line-tension.html +59 -0
- data/vendor/tests/mark/line.html +51 -0
- data/vendor/tests/mark/panel-anchor.html +37 -0
- data/vendor/tests/mark/panel-anchor2.html +31 -0
- data/vendor/tests/mark/panel-anchor3.html +22 -0
- data/vendor/tests/mark/panel-anchor4.html +28 -0
- data/vendor/tests/mark/panel-anchor5.html +28 -0
- data/vendor/tests/mark/panel-append.html +29 -0
- data/vendor/tests/mark/panel-canvas.html +107 -0
- data/vendor/tests/mark/panel-fill.html +50 -0
- data/vendor/tests/mark/panel-mouse.html +53 -0
- data/vendor/tests/mark/panel-transform.html +67 -0
- data/vendor/tests/mark/property-cast.html +24 -0
- data/vendor/tests/mark/render-partial.html +42 -0
- data/vendor/tests/mark/rule-anchor.html +29 -0
- data/vendor/tests/mark/title.html +41 -0
- data/vendor/tests/mark/transition-anchor.html +47 -0
- data/vendor/tests/mark/transition-wedge.html +47 -0
- data/vendor/tests/mark/transition.html +106 -0
- data/vendor/tests/mark/wedge-donut.html +35 -0
- data/vendor/tests/mark/wedge-implied.html +42 -0
- data/vendor/tests/mark/wedge-pie.html +37 -0
- data/vendor/tests/mark/wedge-ring.html +27 -0
- data/vendor/tests/miserables.js +348 -0
- data/vendor/tests/physics/dorling.html +70 -0
- data/vendor/tests/physics/simulation.html +56 -0
- data/vendor/tests/social.js +28 -0
- data/vendor/tests/stanford.png +0 -0
- data/vendor/tests/style.css +5 -0
- data/vendor/tests/testify.css +29 -0
- data/vendor/tests/testify.js +16 -0
- data/vendor/tests/text/format-number.html +75 -0
- data/web/first.svg +1 -0
- data/web/index.html +48 -0
- metadata +434 -31
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
@@ -0,0 +1,250 @@
|
|
1
|
+
// pop: Population in 2005 mesured in people
|
2
|
+
// area: Area in km^2 / 10
|
3
|
+
var population = {
|
4
|
+
'AG': {pop:83039, area:44},
|
5
|
+
'DZ': {pop:32854159, area:238174},
|
6
|
+
'AZ': {pop:8352021, area:8260},
|
7
|
+
'AL': {pop:3153731, area:2740},
|
8
|
+
'AM': {pop:3017661, area:2820},
|
9
|
+
'AO': {pop:16095214, area:124670},
|
10
|
+
'AS': {pop:64051, area:20},
|
11
|
+
'AR': {pop:38747148, area:273669},
|
12
|
+
'AU': {pop:20310208, area:768230},
|
13
|
+
'BH': {pop:724788, area:71},
|
14
|
+
'BB': {pop:291933, area:43},
|
15
|
+
'BM': {pop:64174, area:5},
|
16
|
+
'BS': {pop:323295, area:1001},
|
17
|
+
'BD': {pop:15328112, area:13017},
|
18
|
+
'BZ': {pop:275546, area:2281},
|
19
|
+
'BA': {pop:3915238, area:5120},
|
20
|
+
'BO': {pop:9182015, area:108438},
|
21
|
+
'MM': {pop:47967266, area:65755},
|
22
|
+
'BJ': {pop:8490301, area:11062},
|
23
|
+
'SB': {pop:472419, area:2799},
|
24
|
+
'BR': {pop:186830759, area:845942},
|
25
|
+
'BG': {pop:7744591, area:11063},
|
26
|
+
'BN': {pop:373831, area:527},
|
27
|
+
'CA': {pop:32270507, area:909351},
|
28
|
+
'KH': {pop:13955507, area:17652},
|
29
|
+
'LK': {pop:19120763, area:6463},
|
30
|
+
'CG': {pop:3609851, area:34150},
|
31
|
+
'CD': {pop:58740547, area:226705},
|
32
|
+
'BI': {pop:7858791, area:2568},
|
33
|
+
'CN': {pop:1312978855, area:932743},
|
34
|
+
'AF': {pop:25067407, area:65209},
|
35
|
+
'BT': {pop:637013, area:4700},
|
36
|
+
'CL': {pop:16295102, area:74880},
|
37
|
+
'KY': {pop:45591, area:26},
|
38
|
+
'CM': {pop:17795149, area:46540},
|
39
|
+
'TD': {pop:10145609, area:125920},
|
40
|
+
'KM': {pop:797902, area:223},
|
41
|
+
'CO': {pop:4494579, area:103870},
|
42
|
+
'CR': {pop:4327228, area:5106},
|
43
|
+
'CF': {pop:4191429, area:62298},
|
44
|
+
'CU': {pop:11259905, area:10982},
|
45
|
+
'CV': {pop:506807, area:403},
|
46
|
+
'CK': {pop:13984, area:24},
|
47
|
+
'CY': {pop:836321, area:924},
|
48
|
+
'DK': {pop:5416945, area:4243},
|
49
|
+
'DJ': {pop:804206, area:2318},
|
50
|
+
'DM': {pop:67827, area:75},
|
51
|
+
'DO': {pop:9469601, area:4838},
|
52
|
+
'EC': {pop:13060993, area:27684},
|
53
|
+
'EG': {pop:72849793, area:99545},
|
54
|
+
'IE': {pop:4143294, area:6889},
|
55
|
+
'GQ': {pop:484098, area:2805},
|
56
|
+
'EE': {pop:1344312, area:4239},
|
57
|
+
'ER': {pop:4526722, area:10100},
|
58
|
+
'SV': {pop:6668356, area:2072},
|
59
|
+
'ET': {pop:78985857, area:100000},
|
60
|
+
'AT': {pop:8291979, area:8245},
|
61
|
+
'CZ': {pop:10191762, area:7727},
|
62
|
+
'GF': {pop:192099, area:8815},
|
63
|
+
'FI': {pop:5246004, area:30459},
|
64
|
+
'FJ': {pop:828046, area:1827},
|
65
|
+
'FK': {pop:2975, area:1217},
|
66
|
+
'FM': {pop:110058, area:70},
|
67
|
+
'PF': {pop:255632, area:366},
|
68
|
+
'FR': {pop:60990544, area:55010},
|
69
|
+
'GM': {pop:1617029, area:1000},
|
70
|
+
'GA': {pop:1290693, area:25767},
|
71
|
+
'GE': {pop:4473409, area:6949},
|
72
|
+
'GH': {pop:2253501, area:22754},
|
73
|
+
'GD': {pop:105237, area:34},
|
74
|
+
'GL': {pop:57475, area:41045},
|
75
|
+
'DE': {pop:82652369, area:34895},
|
76
|
+
'GU': {pop:16857, area:55},
|
77
|
+
'GR': {pop:11099737, area:12890},
|
78
|
+
'GT': {pop:12709564, area:10843},
|
79
|
+
'GN': {pop:9002656, area:24572},
|
80
|
+
'GY': {pop:739472, area:19685},
|
81
|
+
'HT': {pop:9296291, area:2756},
|
82
|
+
'HN': {pop:683411, area:11189},
|
83
|
+
'HR': {pop:455149, area:5592},
|
84
|
+
'HU': {pop:10086387, area:9210},
|
85
|
+
'IS': {pop:295732, area:10025},
|
86
|
+
'IN': {pop:1134403141, area:297319},
|
87
|
+
'IR': {pop:69420607, area:163620},
|
88
|
+
'IL': {pop:6692037, area:2171},
|
89
|
+
'IT': {pop:5864636, area:29411},
|
90
|
+
'CI': {pop:18584701, area:31800},
|
91
|
+
'IQ': {pop:27995984, area:43737},
|
92
|
+
'JP': {pop:127896740, area:36450},
|
93
|
+
'JM': {pop:2682469, area:1083},
|
94
|
+
'JO': {pop:5544066, area:8824},
|
95
|
+
'KE': {pop:35598952, area:56914},
|
96
|
+
'KG': {pop:5203547, area:19180},
|
97
|
+
'KP': {pop:23615611, area:12041},
|
98
|
+
'KI': {pop:92003, area:73},
|
99
|
+
'KR': {pop:47869837, area:9873},
|
100
|
+
'KW': {pop:2700, area:1782},
|
101
|
+
'KZ': {pop:15210609, area:269970},
|
102
|
+
'LA': {pop:566391, area:23080},
|
103
|
+
'LB': {pop:401074, area:1023},
|
104
|
+
'LV': {pop:2301793, area:6205},
|
105
|
+
'BY': {pop:9795287, area:20748},
|
106
|
+
'LT': {pop:3425077, area:6268},
|
107
|
+
'LR': {pop:3441796, area:9632},
|
108
|
+
'SK': {pop:5386995, area:4808},
|
109
|
+
'LI': {pop:34598, area:16},
|
110
|
+
'LY': {pop:5918217, area:175954},
|
111
|
+
'MG': {pop:18642586, area:58154},
|
112
|
+
'MQ': {pop:395896, area:106},
|
113
|
+
'MN': {pop:2580704, area:156650},
|
114
|
+
'MS': {pop:5628, area:10},
|
115
|
+
'MK': {pop:2033655, area:2543},
|
116
|
+
'ML': {pop:1161109, area:122019},
|
117
|
+
'MA': {pop:30494991, area:44630},
|
118
|
+
'MU': {pop:1241173, area:203},
|
119
|
+
'MR': {pop:2963105, area:102522},
|
120
|
+
'MT': {pop:402617, area:32},
|
121
|
+
'OM': {pop:2507042, area:30950},
|
122
|
+
'MV': {pop:295297, area:30},
|
123
|
+
'MX': {pop:104266392, area:190869},
|
124
|
+
'MY': {pop:25652985, area:32855},
|
125
|
+
'MZ': {pop:20532675, area:78409},
|
126
|
+
'MW': {pop:13226091, area:9408},
|
127
|
+
'NC': {pop:234185, area:1828},
|
128
|
+
'NU': {pop:1632, area:26},
|
129
|
+
'NE': {pop:1326419, area:126670},
|
130
|
+
'AW': {pop:102897, area:0},
|
131
|
+
'AI': {pop:12256, area:0},
|
132
|
+
'BE': {pop:10398049, area:0},
|
133
|
+
'HK': {pop:7057418, area:0},
|
134
|
+
'MP': {pop:80258, area:0},
|
135
|
+
'FO': {pop:48205, area:0},
|
136
|
+
'AD': {pop:73483, area:0},
|
137
|
+
'GI': {pop:291, area:0},
|
138
|
+
'IM': {pop:78357, area:0},
|
139
|
+
'LU': {pop:456613, area:0},
|
140
|
+
'MO': {pop:47309, area:0},
|
141
|
+
'MC': {pop:325, area:0},
|
142
|
+
'PS': {pop:3762005, area:0},
|
143
|
+
'ME': {pop:607969, area:0},
|
144
|
+
'YT': {pop:0, area:0},
|
145
|
+
'AX': {pop:0, area:0},
|
146
|
+
'NF': {pop:0, area:0},
|
147
|
+
'CC': {pop:0, area:1},
|
148
|
+
'AQ': {pop:0, area:0},
|
149
|
+
'BV': {pop:0, area:0},
|
150
|
+
'TF': {pop:0, area:0},
|
151
|
+
'HM': {pop:0, area:0},
|
152
|
+
'IO': {pop:0, area:0},
|
153
|
+
'CX': {pop:0, area:0},
|
154
|
+
'UM': {pop:0, area:0},
|
155
|
+
'VU': {pop:215366, area:1219},
|
156
|
+
'NG': {pop:141356083, area:91077},
|
157
|
+
'NL': {pop:1632769, area:3388},
|
158
|
+
'NO': {pop:4638836, area:30625},
|
159
|
+
'NP': {pop:27093656, area:14300},
|
160
|
+
'NR': {pop:10111, area:2},
|
161
|
+
'SR': {pop:452468, area:15600},
|
162
|
+
'NI': {pop:5462539, area:12140},
|
163
|
+
'NZ': {pop:4097112, area:26799},
|
164
|
+
'PY': {pop:5904342, area:39730},
|
165
|
+
'PE': {pop:27274266, area:128000},
|
166
|
+
'PK': {pop:158080591, area:77088},
|
167
|
+
'PL': {pop:38195558, area:30629},
|
168
|
+
'PA': {pop:3231502, area:7443},
|
169
|
+
'PT': {pop:10528226, area:9150},
|
170
|
+
'PG': {pop:6069715, area:45286},
|
171
|
+
'GW': {pop:1596929, area:2812},
|
172
|
+
'QA': {pop:796186, area:1100},
|
173
|
+
'RE': {pop:785159, area:250},
|
174
|
+
'RO': {pop:21627557, area:22987},
|
175
|
+
'MD': {pop:3876661, area:3288},
|
176
|
+
'PH': {pop:84566163, area:29817},
|
177
|
+
'PR': {pop:3946779, area:887},
|
178
|
+
'RU': {pop:143953092, area:1638094},
|
179
|
+
'RW': {pop:9233793, area:2467},
|
180
|
+
'SA': {pop:2361236, area:214969},
|
181
|
+
'KN': {pop:49138, area:36},
|
182
|
+
'SC': {pop:85532, area:46},
|
183
|
+
'ZA': {pop:47938663, area:121447},
|
184
|
+
'LS': {pop:1980831, area:3035},
|
185
|
+
'BW': {pop:1835938, area:56673},
|
186
|
+
'SN': {pop:1177034, area:19253},
|
187
|
+
'SI': {pop:1999425, area:2014},
|
188
|
+
'SL': {pop:5586403, area:7162},
|
189
|
+
'SG': {pop:4327468, area:67},
|
190
|
+
'SO': {pop:8196395, area:62734},
|
191
|
+
'ES': {pop:43397491, area:49904},
|
192
|
+
'LC': {pop:16124, area:61},
|
193
|
+
'SD': {pop:36899747, area:237600},
|
194
|
+
'SE': {pop:9038049, area:41033},
|
195
|
+
'SY': {pop:18893881, area:18378},
|
196
|
+
'CH': {pop:7424389, area:4000},
|
197
|
+
'TT': {pop:1323722, area:513},
|
198
|
+
'TH': {pop:63002911, area:51089},
|
199
|
+
'TJ': {pop:6550213, area:13996},
|
200
|
+
'TK': {pop:1401, area:1},
|
201
|
+
'TO': {pop:99361, area:72},
|
202
|
+
'TG': {pop:6238572, area:5439},
|
203
|
+
'ST': {pop:152622, area:96},
|
204
|
+
'TN': {pop:10104685, area:15536},
|
205
|
+
'TR': {pop:72969723, area:76963},
|
206
|
+
'TV': {pop:10441, area:3},
|
207
|
+
'TM': {pop:4833266, area:46993},
|
208
|
+
'TZ': {pop:38477873, area:88359},
|
209
|
+
'UG': {pop:28947181, area:19710},
|
210
|
+
'GB': {pop:60244834, area:24193},
|
211
|
+
'UA': {pop:46917544, area:57935},
|
212
|
+
'US': {pop:299846449, area:915896},
|
213
|
+
'BF': {pop:13933363, area:27360},
|
214
|
+
'UY': {pop:3325727, area:17502},
|
215
|
+
'UZ': {pop:26593123, area:42540},
|
216
|
+
'VC': {pop:119137, area:39},
|
217
|
+
'VE': {pop:26725573, area:88205},
|
218
|
+
'VG': {pop:22016, area:15},
|
219
|
+
'VN': {pop:85028643, area:32549},
|
220
|
+
'VI': {pop:111408, area:35},
|
221
|
+
'NA': {pop:2019677, area:82329},
|
222
|
+
'WF': {pop:15079, area:14},
|
223
|
+
'WS': {pop:183845, area:283},
|
224
|
+
'SZ': {pop:1124529, area:1720},
|
225
|
+
'YE': {pop:21095679, area:52797},
|
226
|
+
'ZM': {pop:11478317, area:74339},
|
227
|
+
'ZW': {pop:13119679, area:38685},
|
228
|
+
'ID': {pop:226063044, area:181157},
|
229
|
+
'GP': {pop:438403, area:169},
|
230
|
+
'AN': {pop:186392, area:80},
|
231
|
+
'AE': {pop:4104291, area:8360},
|
232
|
+
'TL': {pop:1067285, area:1487},
|
233
|
+
'PN': {pop:5, area:0},
|
234
|
+
'PW': {pop:20127, area:0},
|
235
|
+
'MH': {pop:5672, area:0},
|
236
|
+
'PM': {pop:6346, area:0},
|
237
|
+
'SH': {pop:6399, area:0},
|
238
|
+
'SM': {pop:30214, area:0},
|
239
|
+
'TC': {pop:24459, area:0},
|
240
|
+
'EH': {pop:440428, area:0},
|
241
|
+
'RS': {pop:9863026, area:0},
|
242
|
+
'VA': {pop:783, area:0},
|
243
|
+
'SJ': {pop:0, area:0},
|
244
|
+
'MF': {pop:0, area:0},
|
245
|
+
'BL': {pop:0, area:0},
|
246
|
+
'GG': {pop:0, area:0},
|
247
|
+
'JE': {pop:0, area:0},
|
248
|
+
'GS': {pop:0, area:0},
|
249
|
+
'TW': {pop:0, area:0}
|
250
|
+
};
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Aitoff Projection</title>
|
4
|
+
<script type="text/javascript" src="../../protovis-d3.3.js"></script>
|
5
|
+
<script type="text/javascript" src="countries-lores.js"></script>
|
6
|
+
<script type="text/javascript" src="../center.js"></script>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script type="text/javascript+protovis">
|
10
|
+
|
11
|
+
var w = 860,
|
12
|
+
h = 516,
|
13
|
+
geo = pv.Geo.scale("aitoff").range(w, h);
|
14
|
+
|
15
|
+
var vis = new pv.Panel()
|
16
|
+
.width(w)
|
17
|
+
.height(h)
|
18
|
+
.margin(2);
|
19
|
+
|
20
|
+
/* Countries. */
|
21
|
+
vis.add(pv.Panel)
|
22
|
+
.data(countries)
|
23
|
+
.add(pv.Panel)
|
24
|
+
.data(function(c) c.borders)
|
25
|
+
.add(pv.Line)
|
26
|
+
.data(function(b) b)
|
27
|
+
.left(geo.x)
|
28
|
+
.top(geo.y)
|
29
|
+
.fillStyle("steelblue")
|
30
|
+
.strokeStyle(null);
|
31
|
+
|
32
|
+
/* Latitude ticks. */
|
33
|
+
vis.add(pv.Panel)
|
34
|
+
.data(geo.ticks.lat())
|
35
|
+
.add(pv.Line)
|
36
|
+
.data(function(b) b)
|
37
|
+
.left(geo.x)
|
38
|
+
.top(geo.y)
|
39
|
+
.strokeStyle("#999")
|
40
|
+
.lineWidth(.5)
|
41
|
+
.interpolate("cardinal");
|
42
|
+
|
43
|
+
/* Longitude ticks. */
|
44
|
+
vis.add(pv.Panel)
|
45
|
+
.data(geo.ticks.lng())
|
46
|
+
.add(pv.Line)
|
47
|
+
.data(function(b) b)
|
48
|
+
.left(geo.x)
|
49
|
+
.top(geo.y)
|
50
|
+
.strokeStyle("#999")
|
51
|
+
.lineWidth(.5)
|
52
|
+
.interpolate("cardinal");
|
53
|
+
|
54
|
+
vis.render();
|
55
|
+
|
56
|
+
</script>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gall-Peters Projection</title>
|
4
|
+
<script type="text/javascript" src="../../protovis-d3.3.js"></script>
|
5
|
+
<script type="text/javascript" src="countries-lores.js"></script>
|
6
|
+
<script type="text/javascript" src="../center.js"></script>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script type="text/javascript+protovis">
|
10
|
+
|
11
|
+
var w = 860,
|
12
|
+
h = 516,
|
13
|
+
geo = pv.Geo.scale("gall-peters").range(w, h);
|
14
|
+
|
15
|
+
var vis = new pv.Panel()
|
16
|
+
.width(w)
|
17
|
+
.height(h)
|
18
|
+
.margin(2);
|
19
|
+
|
20
|
+
/* Countries. */
|
21
|
+
vis.add(pv.Panel)
|
22
|
+
.data(countries)
|
23
|
+
.add(pv.Panel)
|
24
|
+
.data(function(c) c.borders)
|
25
|
+
.add(pv.Line)
|
26
|
+
.data(function(b) b)
|
27
|
+
.left(geo.x)
|
28
|
+
.top(geo.y)
|
29
|
+
.fillStyle("steelblue")
|
30
|
+
.strokeStyle(null);
|
31
|
+
|
32
|
+
/* Latitude ticks. */
|
33
|
+
vis.add(pv.Panel)
|
34
|
+
.data(geo.ticks.lat())
|
35
|
+
.add(pv.Line)
|
36
|
+
.data(function(b) b)
|
37
|
+
.left(geo.x)
|
38
|
+
.top(geo.y)
|
39
|
+
.strokeStyle("#999")
|
40
|
+
.lineWidth(.5);
|
41
|
+
|
42
|
+
/* Longitude ticks. */
|
43
|
+
vis.add(pv.Panel)
|
44
|
+
.data(geo.ticks.lng())
|
45
|
+
.add(pv.Line)
|
46
|
+
.data(function(b) b)
|
47
|
+
.left(geo.x)
|
48
|
+
.top(geo.y)
|
49
|
+
.strokeStyle("#999")
|
50
|
+
.lineWidth(.5);
|
51
|
+
|
52
|
+
vis.render();
|
53
|
+
|
54
|
+
</script>
|
55
|
+
</body>
|
56
|
+
</html>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Hammer Projection</title>
|
4
|
+
<script type="text/javascript" src="../../protovis-d3.3.js"></script>
|
5
|
+
<script type="text/javascript" src="countries-lores.js"></script>
|
6
|
+
<script type="text/javascript" src="../center.js"></script>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script type="text/javascript+protovis">
|
10
|
+
|
11
|
+
var w = 860,
|
12
|
+
h = 516,
|
13
|
+
geo = pv.Geo.scale("hammer").range(w, h);
|
14
|
+
|
15
|
+
var vis = new pv.Panel()
|
16
|
+
.width(w)
|
17
|
+
.height(h)
|
18
|
+
.margin(2);
|
19
|
+
|
20
|
+
/* Countries. */
|
21
|
+
vis.add(pv.Panel)
|
22
|
+
.data(countries)
|
23
|
+
.add(pv.Panel)
|
24
|
+
.data(function(c) c.borders)
|
25
|
+
.add(pv.Line)
|
26
|
+
.data(function(b) b)
|
27
|
+
.left(geo.x)
|
28
|
+
.top(geo.y)
|
29
|
+
.fillStyle("steelblue")
|
30
|
+
.strokeStyle(null);
|
31
|
+
|
32
|
+
/* Latitude ticks. */
|
33
|
+
vis.add(pv.Panel)
|
34
|
+
.data(geo.ticks.lat())
|
35
|
+
.add(pv.Line)
|
36
|
+
.data(function(b) b)
|
37
|
+
.left(geo.x)
|
38
|
+
.top(geo.y)
|
39
|
+
.strokeStyle("#999")
|
40
|
+
.lineWidth(.5)
|
41
|
+
.interpolate("cardinal");
|
42
|
+
|
43
|
+
/* Longitude ticks. */
|
44
|
+
vis.add(pv.Panel)
|
45
|
+
.data(geo.ticks.lng())
|
46
|
+
.add(pv.Line)
|
47
|
+
.data(function(b) b)
|
48
|
+
.left(geo.x)
|
49
|
+
.top(geo.y)
|
50
|
+
.strokeStyle("#999")
|
51
|
+
.lineWidth(.5)
|
52
|
+
.interpolate("cardinal");
|
53
|
+
|
54
|
+
vis.render();
|
55
|
+
|
56
|
+
</script>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Identity Projection</title>
|
4
|
+
<script type="text/javascript" src="../../protovis-d3.3.js"></script>
|
5
|
+
<script type="text/javascript" src="countries-lores.js"></script>
|
6
|
+
<script type="text/javascript" src="../center.js"></script>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script type="text/javascript+protovis">
|
10
|
+
|
11
|
+
var w = 860,
|
12
|
+
h = 516,
|
13
|
+
geo = pv.Geo.scale().range(w, h);
|
14
|
+
|
15
|
+
var vis = new pv.Panel()
|
16
|
+
.width(w)
|
17
|
+
.height(h)
|
18
|
+
.margin(2);
|
19
|
+
|
20
|
+
/* Countries. */
|
21
|
+
vis.add(pv.Panel)
|
22
|
+
.data(countries)
|
23
|
+
.add(pv.Panel)
|
24
|
+
.data(function(c) c.borders)
|
25
|
+
.add(pv.Line)
|
26
|
+
.data(function(b) b)
|
27
|
+
.left(geo.x)
|
28
|
+
.top(geo.y)
|
29
|
+
.fillStyle("steelblue")
|
30
|
+
.strokeStyle(null);
|
31
|
+
|
32
|
+
/* Latitude ticks. */
|
33
|
+
vis.add(pv.Panel)
|
34
|
+
.data(geo.ticks.lat())
|
35
|
+
.add(pv.Line)
|
36
|
+
.data(function(b) b)
|
37
|
+
.left(geo.x)
|
38
|
+
.top(geo.y)
|
39
|
+
.strokeStyle("#999")
|
40
|
+
.lineWidth(.5);
|
41
|
+
|
42
|
+
/* Longitude ticks. */
|
43
|
+
vis.add(pv.Panel)
|
44
|
+
.data(geo.ticks.lng())
|
45
|
+
.add(pv.Line)
|
46
|
+
.data(function(b) b)
|
47
|
+
.left(geo.x)
|
48
|
+
.top(geo.y)
|
49
|
+
.strokeStyle("#999")
|
50
|
+
.lineWidth(.5);
|
51
|
+
|
52
|
+
vis.render();
|
53
|
+
|
54
|
+
</script>
|
55
|
+
</body>
|
56
|
+
</html>
|