GithubHelp home page GithubHelp logo

itextech / 3d-visualization-testing-react Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mehedikhan72/3d-visualization-testing-react

0.0 0.0 0.0 10.27 MB

JavaScript 82.21% CSS 0.58% HTML 17.21%

3d-visualization-testing-react's Introduction

3D visualization in React

Showing geo data on a 3D globe is really fulfilling so I tried out this awesome library called react-globe.gl.

I have two globes in this react app. One showing recent earthquakes and the other one showing the population density of the countries of the world. The first one was straight-forward to implement but the second one was a bit tricky. I had to use an external API to write 'area' data to the geojson file and then use that file to render the globe using d3 to get the corresponding colors.

Recent Earthquakes

Recent earthquakes happening around the world.

Image Description

Population Density

Population density of the countries of the world, though the data is not very recent.

Image Description

How to run the app

  • Clone the repo
  • Run npm install or yarn install to install the dependencies
  • Run npm start or yarn start to start the app
  • Open http://localhost:3000 to view it in the browser.

Writing Area To the GeoJSON File

I had to write the area data to the geojson file using an external API to get things working. So I just put the folder there. You don't have to worry about that. You can take a look at it if you want to.

References

3d-visualization-testing-react's People

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.