Giter Site home page Giter Site logo

davidfeng88 / collisionviz Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 53.41 MB

A data visualization web app for motor vehicle collisions in New York City

Home Page: https://collisionviz.davidfeng.us/

JavaScript 89.46% HTML 3.21% SCSS 7.32%
nypd heatmap google-maps-api data-visualization google-charts motor-vehicle-collisions

collisionviz's Introduction

CollisionViz

Live

Screenshot

CollisionViz is a data visualization web app for motor vehicle collisions in New York City. It is built with

How to Use

  1. Select the date. The app will load all the collisions on that day from NYPD API, and show a time distribution chart and a heatmap.
  2. The app also shows markers for collisions that happened during 8AM-9AM. Click on the chart to change the hour. Click on a marker for collision details.

How to Develop

  1. npm install: installs node_modules and also builds development version of bundle.js and main.css, which can also be generated with npx webpack and npx sass src/scss/main.scss main.css
  2. NODE_ENV=production npx webpack: builds production / minified version of bundle.js
  3. npm start: webpack watches jsx file changes
  4. Open index.html in browser to see the app.
  5. npm audit fix to fix security issues in node modules.

Recent Changes

  • 8/2/2020: updated dependencies
  • 3/16/2020: major update
    • Add
      • adaptors for third party APIs
    • Change
      • reorganize files and directories
    • Remove - less is more
      • play/pause mechanism
      • custom crash icons
      • map layers
      • Redux

Future Work

  • get date and time from URL query params
  • use GitHub Actions to run npm start whenever master branch is updated, so that bundle.js does not have to be in this repo.

collisionviz's People

Contributors

davidfeng88 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.