Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dianaow/star-wars-viz

A simple implementation of a scatter plot built with React + D3 (Typescript)
https://github.com/dianaow/star-wars-viz

d3js d3v4 data-visualization reactjs star-wars star-wars-api typescript

Last synced: 5 days ago
JSON representation

A simple implementation of a scatter plot built with React + D3 (Typescript)

Awesome Lists containing this project

README

        

# Star Wars Data Visualization

## [Live Demo](http://star-wars-viz.s3-website-ap-southeast-1.amazonaws.com/)
An interactive scatter plot built with React, D3v4 and Typescript.

Features:
- Data extracted from [swapi API](https://swapi.dev/)
- Dropdown to pick a species from the list of existing ones.
- Scatter plot points have a tooltip which shows on mouse hover and hides on mouse out.

![alt text](https://github.com/dianaow/star-wars-viz/raw/master/demo.gif "Demo")

Tag versions:
- v1.0: Barebones workable interactive scatter plot with javascript
- v2.0: Barebones workable interactive scatter plot with typescript
- v3:0: Sylized UI and scatter plot

## Getting started

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.

Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.

You will also see any lint errors in the console.

### `yarn build`

Builds the app for production to the `build` folder.

It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed!