GithubHelp home page GithubHelp logo

taxfoundation / congressional-district-interactive Goto Github PK

View Code? Open in Web Editor NEW
2.0 8.0 1.0 5.66 MB

Interactive map showing Congressional district level average tax cuts for the TCJA.

Home Page: https://taxfoundation.org/2018-tax-reform-congressional-districts-map/

HTML 6.89% JavaScript 93.11%
topojson react mapping taxes d3-geo

congressional-district-interactive's Introduction

Congressional District Interactive Mapping Tool

Data Sources

To create the individual state topojson files, the mapshaper tool was used with the following configuration:

mapshaper -i cb_2015_us_cd114_500k.shp name='' -proj wgs84 -split STATEFP -o format=geojson
mapshaper -i *.json -o format=topojson force

Splitting directly to topojson does not create separate files, so you must first split to geojson and then convert to topojson. D3 expects WGS84 coordinate system, from which it will then apply whatever other projection (in this case, Mercator). Failing to project to WGS84 will result in computer generated art, not a map.

For Alaska specifically, which was 1mb originally, it was simplified with the -simplify 10% argument in mapshaper.

congressional-district-interactive's People

Contributors

dependabot[bot] avatar tvanantwerp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

congressional-district-interactive's Issues

change hover text

Change it to:

Average income: <#>
Average state taxes paid: <#>
Average federal tax cut: <#> or <#>% less than pre-TCJA levels

Color Scale Adjustments

Truncate color scale so that districts with tax cuts range from #d3ed9c to #476db0. This should help with those areas that look washed out.

image

Shading

When I'm at $500k and above for single folks, the shading is much, much lighter than anything else.

DC Mapping

Currently, the data for DC is not being displayed.

Income

I think we need to add a note about how the "average income" is the "average" between the two end points of the range.

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.