Giter Site home page Giter Site logo

planetize's Introduction

Data Visualizations

Data visualization is all about telling a story with numbers. Charts and graphs often do a better job of showing a specific result or outcome than 10,000 words. The key to good data visualization is understanding what type of chart or graph best showcases the data, smart labels for quickly understanding each axis and datapoint and animations that give the user extra information.

Take 10 minutes and read the following on when to use what graph or chart:

Which Chart?

The next step is knowing what Javascript tool to use to implement your visualizations. There are a lot of different libraries out there, some incredibly complex and capable of anything (D3), some work better on frameworks than others (Victory for React), some allow for user interactions such as drag-n-drop (ECharts).

Chart.js is one of my favorite tools for data visualization because it's canvas based, super easy to implement, has some cool animation features and lots of customization, and has a lot of different types of graphs. I don't need hours of config, just require it and give it labels, an array of data, and options (if you want.)

PlanetIZE

App to play around with all known planet data. You can download the latest Nasa Exoplanet data at NASA Exoplanet Archive and insert into /data. Just be sure to delete the comment lines at the top of the csv that describe each column. The first row should be the data headers.

To get started, clone down and ...

$ npm install

$ webpack

$ npm start

The end goal of this exercise is to complete one of the below:

  • Build a chart that shows the progression in number of planets discovered each year.
  • Use the Galactic Longitude and Galactic Latitude of each planet to build a Galactic map of all planets.
  • Build a radar chart with Equilibrium Temperature to show the range of temps of each planet. Filter out any planet that doesn't have a measured Equilibrium Temperature.
  • Build a graph that shows the probability of life for each planet. You will have to scan through the data and figure out an algorithm that makes sense. Be ready to defend your algorithm.

Data for each planet

Each planet has the following data points. Many of the planets have an empty string for some of the data points because it can't or hasn't been measured yet.

  • COLUMN pl_hostname: Host Name
  • COLUMN pl_letter: Planet Letter
  • COLUMN pl_discmethod: Discovery Method
  • COLUMN pl_pnum: Number of Planets in System
  • COLUMN pl_orbper: Orbital Period [days]
  • COLUMN pl_orbsmax: Orbit Semi-Major Axis [AU]
  • COLUMN pl_orbeccen: Eccentricity
  • COLUMN pl_orbincl: Inclination [deg]
  • COLUMN pl_bmassj: Planet Mass or M*sin(i)[Jupiter mass]
  • COLUMN pl_bmassprov: Planet Mass or M*sin(i) Provenance
  • COLUMN pl_radj: Planet Radius [Jupiter radii]
  • COLUMN pl_dens: Planet Density [g/cm**3]
  • COLUMN pl_ttvflag: TTV Flag
  • COLUMN pl_kepflag: Kepler Field Flag
  • COLUMN pl_k2flag: K2 Mission Flag
  • COLUMN pl_nnotes: Number of Notes
  • COLUMN ra_str: RA [sexagesimal]
  • COLUMN ra: RA [sexagesimal]
  • COLUMN dec_str: Dec [sexagesimal]
  • COLUMN dec: Dec [sexagesimal]
  • COLUMN st_dist: Distance [pc]
  • COLUMN st_optmag: Optical Magnitude [mag]
  • COLUMN st_optband: Optical Magnitude Band
  • COLUMN gaia_gmag: G-band (Gaia) [mag]
  • COLUMN st_teff: Effective Temperature [K]
  • COLUMN st_mass: Stellar Mass [Solar mass]
  • COLUMN st_rad: Stellar Radius [Solar radii]
  • COLUMN rowupdate: Date of Last Update
  • COLUMN pl_name: Planet Name
  • COLUMN pl_tranflag: Planet Transit Flag
  • COLUMN pl_rvflag: Planet RV Flag
  • COLUMN pl_imgflag: Planet Imaging Flag
  • COLUMN pl_astflag: Planet Astrometry Flag
  • COLUMN pl_omflag: Planet Orbital Modulation Flag
  • COLUMN pl_cbflag: Planet Circumbinary Flag
  • COLUMN pl_orbtper: Time of Periastron [days]
  • COLUMN pl_orblper: Long. of Periastron [deg]
  • COLUMN pl_rvamp: Radial Velocity Amplitude [m/s]
  • COLUMN pl_eqt: Equilibrium Temperature [K]
  • COLUMN pl_insol: Insolation Flux [Earth flux]
  • COLUMN pl_massj: Planet Mass [Jupiter mass]
  • COLUMN pl_msinij: Planet M*sin(i) [Jupiter mass]
  • COLUMN pl_masse: Planet Mass [Earth mass]
  • COLUMN pl_msinie: Planet M*sin(i) [Earth mass]
  • COLUMN pl_bmasse: Planet Mass or M*sin(i) [Earth mass]
  • COLUMN pl_rade: Planet Radius [Earth radii]
  • COLUMN pl_rads: Planet Radius [Solar radii]
  • COLUMN pl_trandep: Transit Depth [percent]
  • COLUMN pl_trandur: Transit Duration [days]
  • COLUMN pl_tranmid: Transit Midpoint [days]
  • COLUMN pl_tsystemref: Time System Reference
  • COLUMN pl_imppar: Impact Parameter
  • COLUMN pl_occdep: Occultation Depth [percentage]
  • COLUMN pl_ratdor: Ratio of Distance to Stellar Radius
  • COLUMN pl_ratror: Ratio of Planet to Stellar Radius
  • COLUMN pl_def_reflink: Default Reference
  • COLUMN pl_disc: Year of Discovery
  • COLUMN pl_disc_reflink: Discovery Reference
  • COLUMN pl_locale: Discovery Locale
  • COLUMN pl_facility: Discovery Facility
  • COLUMN pl_telescope: Discovery Telescope
  • COLUMN pl_instrument: Discovery Instrument
  • COLUMN pl_status: Status
  • COLUMN pl_mnum: Number of Moons in System
  • COLUMN pl_st_npar: Number of Stellar and Planet Parameters
  • COLUMN pl_st_nref: Number of Stellar and Planet References
  • COLUMN pl_pelink: Link to Exoplanet Encyclopaedia
  • COLUMN pl_edelink: Link to Exoplanet Data Explorer
  • COLUMN pl_publ_date: Publication Date
  • COLUMN hd_name: HD Name
  • COLUMN hip_name: HIP Name
  • COLUMN st_rah: RA [hrs]
  • COLUMN st_glon: Galactic Longitude [deg]
  • COLUMN st_glat: Galactic Latitude [deg]
  • COLUMN st_elon: Ecliptic Longitude [deg]
  • COLUMN st_elat: Ecliptic Latitude [deg]
  • COLUMN st_plx: Parallax [mas]
  • COLUMN gaia_plx: Gaia Parallax [mas]
  • COLUMN gaia_dist: Gaia Distance [pc]
  • COLUMN st_pmra: Proper Motion (RA) [mas/yr]
  • COLUMN st_pmdec: Proper Motion (Dec) [mas/yr]
  • COLUMN st_pm: Total Proper Motion [mas/yr]
  • COLUMN gaia_pmra: Gaia Proper Motion (RA) [mas/yr]
  • COLUMN gaia_pmdec: Gaia Proper Motion (Dec) [mas/yr]
  • COLUMN gaia_pm: Gaia Total Proper Motion [mas/yr]
  • COLUMN st_radv: Radial Velocity [km/s]
  • COLUMN st_sp: Spectral Type
  • COLUMN st_spstr: Spectral Type
  • COLUMN st_logg: Stellar Surface Gravity [log10(cm/s**2)]
  • COLUMN st_lum: Stellar Luminosity [log(Solar)]
  • COLUMN st_dens: Stellar Density [g/cm**3]
  • COLUMN st_metfe: Stellar Metallicity [dex]
  • COLUMN st_metratio: Metallicity Ratio
  • COLUMN st_age: Stellar Age [Gyr]
  • COLUMN st_vsini: Rot. Velocity V*sin(i) [km/s]
  • COLUMN st_acts: Stellar Activity S-index
  • COLUMN st_actr: Stellar Activity log(R'HK)
  • COLUMN st_actlx: X-ray Activity log(Lx)
  • COLUMN swasp_id: SWASP Identifier
  • COLUMN st_nts: Number of Time Series
  • COLUMN st_nplc: Number of Planet Transit Light Curves
  • COLUMN st_nglc: Number of General Light Curves
  • COLUMN st_nrvc: Number of Radial Velocity Time Series
  • COLUMN st_naxa: Number of Amateur Light Curves
  • COLUMN st_nimg: Number of Images
  • COLUMN st_nspec: Number of Spectra
  • COLUMN st_uj: U-band (Johnson) [mag]
  • COLUMN st_vj: V-band (Johnson) [mag]
  • COLUMN st_bj: B-band (Johnson) [mag]
  • COLUMN st_rc: R-band (Cousins) [mag]
  • COLUMN st_ic: I-band (Cousins) [mag]
  • COLUMN st_j: J-band (2MASS) [mag]
  • COLUMN st_h: H-band (2MASS) [mag]
  • COLUMN st_k: Ks-band (2MASS) [mag]
  • COLUMN st_wise1: WISE 3.4um [mag]
  • COLUMN st_wise2: WISE 4.6um [mag]
  • COLUMN st_wise3: WISE 12.um [mag]
  • COLUMN st_wise4: WISE 22.um [mag]
  • COLUMN st_irac1: IRAC 3.6um [mag]
  • COLUMN st_irac2: IRAC 4.5um [mag]
  • COLUMN st_irac3: IRAC 5.8um [mag]
  • COLUMN st_irac4: IRAC 8.0um [mag]
  • COLUMN st_mips1: MIPS 24um [mag]
  • COLUMN st_mips2: MIPS 70um [mag]
  • COLUMN st_mips3: MIPS 160um [mag]
  • COLUMN st_iras1: IRAS 12um Flux [Jy]
  • COLUMN st_iras2: IRAS 25um Flux [Jy]
  • COLUMN st_iras3: IRAS 60um Flux [Jy]
  • COLUMN st_iras4: IRAS 100um Flux [Jy]
  • COLUMN st_photn: Number of Photometry Measurements
  • COLUMN st_umbj: U-B (Johnson) [mag]
  • COLUMN st_bmvj: B-V (Johnson) [mag]
  • COLUMN st_vjmic: V-I (Johnson-Cousins) [mag]
  • COLUMN st_vjmrc: V-R (Johnson-Cousins) [mag]
  • COLUMN st_jmh2: J-H (2MASS) [mag]
  • COLUMN st_hmk2: H-Ks (2MASS) [mag]
  • COLUMN st_jmk2: J-Ks (2MASS) [mag]
  • COLUMN st_bmy: b-y (Stromgren) [mag]
  • COLUMN st_m1: m1 (Stromgren) [mag]
  • COLUMN st_c1: c1 (Stromgren) [mag]
  • COLUMN st_colorn: Number of Color Measurements

planetize's People

Contributors

alex-tideman avatar

Watchers

James Cloos avatar Eric Sayler 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.