Code Monkey home page Code Monkey logo

cheers-app's Introduction

Cheers-app

Projet fil rouge - HETIC

Team :

  • Lucas Benhayoun (Designer)
  • Rodrigo Tapia (Backend)
  • Jeremy Schiappapietre (Backend)
  • Guillaume Traub (Front)

Choices made:

SVG, Canvas or webGL ?

I chose to use a combination of webGL and SVG. I used a webGL powered map library, to have the best performance possible for the map, which has a lot of data to render. I built the datavisualization "on top" of the map so I didn't have to get into webGL complexity. We used SVG to display the clusters and individual points on the map, to be able to use DOM events and css interactivity. The use of clusters limits the actual number of nodes rended : approximately 15 to 30, which is really low and can be easily done with SVG's.

Libraries

Library Justification
axios easy to use and great browser support (down to IE9)
lodash performant and reliable utilities library ; why re-invent the wheel if lodash has a method for it ?
node-sass be able to use scss : variables, nesting, imports...
react-map-gl a react wrapper for mapboxGL JS, made by Uber and well maintained. Mapbox is a great map service, highly customizable and already provides some data visualization styles (heatmaps, clusters...). Using react-map-gl left us the possibility to switch to deck.gl which is the webGL data visualization library from Uber, if we needed to.
supercluster The only clustering library I found with the ability to aggregate data (we used it for the average beer price), well maintained (made by mapbox) and really performant (demo with 6 million points)
use-supercluster custom hook for supercluster, easy to use and improved performance because specific to react

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

yarn build

Runs the app in the production mode.

cheers-app's People

Contributors

g-traub avatar rodrigohetic avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.