Skip to content

Converting the UFO Sightings dataset into an HTML table using d3.js

Notifications You must be signed in to change notification settings

rochiecuevas/UFO_Sightings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aliens Among Us

Aliens Among Us is the product of converting the UFO Sightings dataset, which is presented as an array of objects, into a HTML table through the use of d3.js and plotting the data into bar graphs using plotly.js.

The table is filterable based on date, country, state, city, and alien ship shape. Hovering over the graphs show the number of sightings. These visualisations allow one to develop insights about the UFO sightings eyewitnesses have reported in the first half of January 2010.

There are three files containing the codes used in creating the page:

  1. index.html: the table containing UFO sightings. It has been made viewable for big screens, mobile phones, and tablets.
  2. app.js: the code used to put the data provided (as a list of dictionaries; in Javascript referred to as an array of objects) into tables and to create bar charts.
  3. main.css: the customised styles that were not included in Bootstrap CSS.

Head over to the repository's wiki section to see the detailed description of the code used in generating the final output.

The final product (index.html) consists of three sections:

Section Screenshot
hero hero landing page
table table
graphs graph

Insights:

The graphs revealed that the highest number of UFO sightings occurred on January 1st; that these sightings were mostly described as light; and they were mostly seen in California. These pieces of information suggest that many UFO spotters most likely mistook distant fireworks (as people ushered in the New Year) as alien space ships.

Why were sightings mostly reported in California?

There are two factors that might have led to the high reporting in the state: population and clear nighttime skies. Among US states, California had the highest population in 2010 and has the second highest number of clear days in a year. It's possible that there were just more people spending more time outdoors at night, looking up into the heavens.

About

Converting the UFO Sightings dataset into an HTML table using d3.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published