Git Product home page Git Product logo

d3_geojson_example's Introduction

A really quick example of getting geoJSON to display using D3

This repo is part of the From Shapefile to geoJSON post.

About

Check out coffee/vis.coffee for the implementation.

Also, this example has been reworked with a JavaScript only version in js/vis.js.

Pick your poison!

Running

You can start up a local webserver by using python’s simple server:

python -m SimpleHTTPServer 3000

or thin in ruby

thin start
# might have to run 'bundle install' first

Now go to http://0.0.0.0:3000

and you have a basic visualization

OR – I’ve been using node’s http-server as of late, which works just as well.

You need to have it installed:

npm install -g http-server

Then you just run http-server in the root directory of your site:

http-server ./

Now go to http://0.0.0.0:8080

Inspiration

As detailed in the post, most of this code comes from Bostock’s Choropleth Example .

Automatically figuring out the boundaries and scale of the projection comes from another Bostock example .

d3_geojson_example's People

Contributors

vlandham avatar

Stargazers

samdus avatar João Marins avatar Tomasz Szymczyszyn avatar Matt Canute avatar Xinzi Zhou avatar Yao Yong avatar Luis Sevillano avatar Linfeng Zhou avatar Michael Dizon avatar Ryan J. Smith avatar Ryan Wold avatar Zach Stednick avatar

Watchers

 avatar James Cloos avatar Stevieb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.