• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 12 years ago
  • Updated almost 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A very simple "choropleth" style map with D3. All you need is a GeoJSON of polygons.

Simple Map (D3)

A very simple "choropleth" style map with tooltips with D3. All you need is a GeoJSON of polygons.

Usage

See code.minnpost.com/simple-map-d3 for instructions, configuration, and examples.

Development

Install

  1. Install NodeJS.
  2. Install Grunt: npm install -g grunt-cli
  3. Install Bower: npm install -g bower
  4. Install packages: npm install && bower install

Build

  1. Run: grunt

Testing

There are some very basic tests in the tests/ folder. Run them like so: node tests/core.js

Browser support

As this library depends heavily on D3 and SVG, Simple Map will only work in "modern" browsers. The following is some basic tests run on Tesling.

browser support

More Repositories

1

object-sync-for-salesforce

WordPress plugin that maps and syncs data between Salesforce objects and WordPress objects.
PHP
96
star
2

tulip

Tulip is a customizable application for creating static or D3 based maps.
JavaScript
35
star
3

gs-proxy

A simple cache proxy for Google spreadsheets.
Python
30
star
4

legislature-tracker

An application that pulls in Open States data and combines with editorial expertise to create a live view into a state legislature session.
JavaScript
30
star
5

mbtiles2s3

A simple command line tool to export MBTiles to an S3 location.
Python
19
star
6

minnpost-nice-ride

Nice Ride data analysis
C
17
star
7

aranger

A simple way to arrange items in a grid.
JavaScript
16
star
8

minnpost-crime

Crime data processing, analysis, and visualization. Minneapolis only at the moment.
CSS
12
star
9

minnpost-elections-dashboard

An elections results dashboard for MN elections.
HTML
11
star
10

minnpost-styles

The MinnPost super fly style guide.
HTML
10
star
11

minnpost-scraper-mn-election-results

A scraper for MN election results.
Python
8
star
12

election-night-api

A scraper and API for election night for US states that provide some live data feeds on election night.
Python
8
star
13

drupal-permissions

A bash script to help set Drupal permission correctly. Please do not use blindly, read the code first.
Shell
8
star
14

tilestream-server

Some notes and configuration for running a simple Tilestream server on EC2.
7
star
15

car-code

An aggregate look at the code being written in the data journalism world.
Python
7
star
16

minnpost-templates

Templates for front-end-based news applications and inline graphics using Yeoman.
JavaScript
6
star
17

donations

Python app to integrate Stripe and Salesforce, using Recurring Donations model from Nonprofit Starter Pack
Python
6
star
18

jsonproxy

A Python Flask based proxy to turn JSON endpoints into JSONP for cross-domain requests. Meant to be easily deployed to Heroku. Allows for caching and whitelisting.
Python
6
star
19

minnpost-governor-budget-2013

A visualization of Governor Dayton's 2013-2014 budget proposal.
JavaScript
5
star
20

MinnBot

Just because.
CoffeeScript
5
star
21

minnpost-legislature-roundup-2012

Python
5
star
22

minnpost-climate

A running look at current weather in a historical context.
JavaScript
5
star
23

mn-foia-dpa-requests

This is a set of links, instructions, and notes about making Data Practices Act (DPA) requests (federally known as Freedom of Information Act (FOIA))
5
star
24

minnpost-fec-data-analysis

Data analysis of FEC campaign data.
Python
4
star
25

mailchimp-salesforce-sync

Apex
4
star
26

minnpost-campaign-finance

A dashboard look at campaign finance for Minnesota elections.
JavaScript
4
star
27

minnpost-tilemill-minnesota-population

first commit
Python
4
star
28

leaflet-addons

Various addons for leaflet.
JavaScript
4
star
29

minnpost-basemaps

Instructions and relevant files for the MinnPost base map(s)
Shell
4
star
30

minnpost-same-day-registration-map

Python
4
star
31

minnpost-snow-emergency

Snow emergency information.
JavaScript
4
star
32

minnpost-mpls-mayoral-questionnaire

An interactive look at the 2013 mayoral candidates views on specific questions.
JavaScript
3
star
33

minnpost-minneapolis-mayors

A simple view on the 2013 Minneapolis mayoral candidates.
JavaScript
3
star
34

minnpost-redistricting-map-open-seats-2012

Map and visualizations of new districts and open seats
JavaScript
3
star
35

minnpost-wordpress

MinnPost.com in WordPress
PHP
2
star
36

minnpost-heroku-cron

A cron server for various things, meant to run on Heroku
JavaScript
2
star
37

minnpost-legislature-tracker

2013 Legislature Tracker piece for MinnPost.
JavaScript
2
star
38

wp-post-image-watermarks

Image watermarks based on WordPress post data
PHP
2
star
39

minnpost-largo

Largo child theme for MinnPost
PHP
2
star
40

migrate-drupal-to-wordpress

SQL to migrate from Drupal 6 to WordPress
2
star
41

minnpost-wordpress-salesforce-plugin

Plugin to extend the Salesforce plugin for MinnPost needs.
PHP
2
star
42

minnpost-lacu

Some many lakes!
JavaScript
2
star
43

minnpost-whos-running-2018

Tracking candidates for MN statewide and federal office in 2018
Python
2
star
44

minnpost.github.io

A Github page for the MinnPost organization that is focused on giving an overview of our code on Github.
HTML
2
star
45

minnpost-my-boundaries

Small application for exploring boundaries.minnpost.com API
2
star
46

minnpost-mn-court-dockets

A scraper to grab court dockets from U.S. District courts in Minnesota
JavaScript
2
star
47

minnpost-hennepin-county-3rd-commissioner-primary-candidates

A preference builder for Hennepin County Special Election for 3rd Commissioner District primary on April 29, 2014.
JavaScript
2
star
48

minnpost-hennepin-county-parcels

A (map) look at Hennepin County parcels, specifically around market value.
JavaScript
2
star
49

minnpost-green-line-story-map

A look at various stops on the new Green Line that connects Minneapolis and St. Paul.
JavaScript
2
star
50

minnpost-voting-districting

Techniques used to split Minnesota voting precincts into higher level district boundaries.
Shell
2
star
51

minnpost-mn-legislature-votes

Visualization of Minnesota Legislature Votes.
Python
1
star
52

minnpost-whos-running-2022

Tracking Minnesota candidates for the 2022 election
Python
1
star
53

minnpost-mn-taxes-visualizations

A bubble tree that breaks down tax sources in Minnesota.
1
star
54

minnpost-bridges

A look at the data on bridges across Minnesota.
1
star
55

wp-message-inserter-plugin

Inserts site messaging into WordPress layouts
PHP
1
star
56

minnpost-mn-congress-keyvotes

Visualization of congressional key-votes.
1
star
57

minnpost-membership

WordPress plugin for membership stuff
PHP
1
star
58

minnpost-temperature-record-breaking-2012

HTML
1
star
59

minnpost-minimum-wage-map

Looks at minimum wage across the country with an MN context.
JavaScript
1
star
60

all-good-proxy

A simple proxy that caches only (HTTP status) good results, and invalidates cache only when a good response is found.
JavaScript
1
star
61

minnpost-voter-turnout-map-2014

Mapping voter turnout for 2014 general election in MN
JavaScript
1
star
62

i-mage-proxerific

A simple image proxy server for MN legislature images.
JavaScript
1
star
63

jsanimator

A really basic animation library based off of Animator.js.
1
star
64

blocked-content-template

Allows WordPress themes to have a blocked content template
PHP
1
star
65

minnpost-2012-my-elections

A ballot explorer for the 2012 elections
1
star
66

minnpost-dangerous-intersections

Map of dangerous intersections in Minnesota
1
star
67

minnpost-weather

Code used for the weather widgets on MinnPost.com
1
star
68

minnpost-cross-subsidy-map

A map visualizing special education cross-subsidies in Minnesota school districts 2010-11.
1
star
69

minnpost-minnesota-amendments-list

Fancy tables listing for Minnesota constitutional amendments.
1
star
70

minnpost-gender-gap-mn

1
star
71

minnpost-hazmat

A look at HAZMAT accidents.
CSS
1
star
72

minnpost-data-toolbox

1
star
73

minnpost-GRAD-math-test

A quiz interface for the MN GRAD math test
1
star
74

minnpost-minimum-wage-timeline

A vertical timeline of minimum wage in Minnesota
JavaScript
1
star
75

minnpost-payday-lending

Interactive pieces to payday lending story.
1
star
76

minnpost-medicare-provider-charges

An interactive analysis of 2011 Medicare provider charges data released by the CMS for MN
JavaScript
1
star
77

minnpost-mn-gambling-timeline

A timeline about gambling in Minnesota.
1
star
78

minnpost-legislature-roundup-2013

What was passed or vetoed in the 2013 MN State Legislature
JavaScript
1
star
79

minnpost-marriage-analysis

A look at marriages in Minnesota, specifically given the new same-sex marriage laws.
JavaScript
1
star
80

wp-analytics-tracking-generator

Configurable Google Analytics tracking code only, no UI in WordPress
PHP
1
star
81

minnpost-2014-follow-the-money

Visualization of the campaign finance in the state-level, MN elections.
JavaScript
1
star
82

minnpost-minneapolis-zoning-map

Basic zoning map using new open data
JavaScript
1
star
83

minnpost-mpls-council-member-questionairre

Minneapolis Council Member Questionairre
JavaScript
1
star
84

minnpost-kartograph-example

A set of examples using Kartograph.
1
star
85

newsjobs

A very, quick attempt at making a more helpful view into the News Apps jobs spreadsheet.
JavaScript
1
star
86

wp-lozad-lazyload

Lazy Load images, iframes, scripts, and other content with the Lozad library
JavaScript
1
star
87

minnpost-dnr-invasive

Map of invasive species in Minnesota
Python
1
star
88

minnpost-gettysburg-address

A fill in the blank version of the Gettysburg Address
JavaScript
1
star
89

ractive-decorators-google-analytics

A decorator to make it easy to include custom track events for Google Analytics in Ractive.
JavaScript
1
star
90

jquery-custom

Customized jQuery versions that namespace jQuery as jQueryCustom. Good for including in places where jQuery is already there.
1
star
91

example_puff

This is an example puff project for the Drupal Fluff module.
1
star
92

minnpost-firearm-analysis

Analysis of firearms in Minnesota and the US.
1
star
93

minnpost-election-map-2012

A Minnesotan election map of candidates for 2012
JavaScript
1
star
94

minnpost-2012-election-state-leg-change

Visualization for the State Legislature makeup change after the 2012 elections.
1
star
95

minnpost-2014-legislature-tracker

A 2014 Minnesota Legislature Tracker
JavaScript
1
star
96

minnpost-green-line-demographics

Demographics around the new Green Line
JavaScript
1
star
97

minnpost-metro-parcels

A (map) look at Twin Cities metro parcels.
JavaScript
1
star
98

minnpost-mn-legislature-balance

Application to interact with the political balance of the MN Legislature.
1
star
99

sds

SDS (Simple Dataset Syndication) is a basic way to describe datasets.
1
star
100

minnpost-mps-salary-vs-frl

Is there a relationship between a school's median teacher salary or median experience level and the school's free-and-reduced-lunch-students percentage?
JavaScript
1
star