Coder Social home page Coder Social logo

ufo-s's Introduction

UFOs (The Truth is out there)

Project Overview

Dana pick the subject UFO sightings to write her article. The data of UFO sightings is in a javascript file. Dana needs to manipulate the data by adding filters and put all data in a tidy html page.

Challenge overview

1.Include five total filters in the table:

  Date
  City
  State
  Country
  Shape

To create these additional filters, keep the following points in mind:

  • You will need to create a new function that will replace your handleClick(); function. This function saves the element, value, and the id of the filter that was changed. - Create an if-else statement to add filter data from input, or clear the filter if no input data exists.
  • Additionally, create a function named filterTable(); that will perform the following actions: - Set the filtered data to the table. - Loop through all of the filters and keep any data that matches the filter values. - Rebuild the table by calling the buildTable(); function created earlier.
  • Finally, using d3.selectAll();, attach an event listener to pick up changes that are made to each filter.

Summary

The website has been finished, and the article is ready to go. The purpose of the challenge is to be able to filter the UFO sighting data by date, city, state, country, and shape in a visually organized html.

The technologies used were javascript, bootstrap, and html. The raw data (data.js) and filter functionality (app.js) were written with javascript. The app.js pulls and filters the raw data. The bootstrap contains CSS- and JavaScript-based design templates for typography, forms, buttons, navigation and other interface components, which is where the type of style comes from. The html is where all the data is organized and the filter input is entered.

Goals

  1. Create, update, and deploy JavaScript functions to provide additional table filters.
  2. Update and deploy forEach (for loop) to loop through the filters and update them with user input.
  3. Update and populate the dynamic filters and table using JavaScript and HTML.

Recommendation

  1. Let find UFOs API to do dynamic search instead of the static JSON data file
  2. Let scrape some UFOs news from websites and update the home page instead of static text news
  3. Table data display needs to be modified so it can look great in small mobile phone.

Languages

  1. Javascript ES6 standard
  2. D3.js
  3. CSS3
  4. HTML5

Software

  1. Visual Studion Code

Resources

  1. app.js <-- the javascript (Controller)
  2. index.html<-- the html (Viewer)
  3. data.js<-- the data (Model)
  4. style.css(static/css/style.css) <-- the UI styles

ufo-s's People

Contributors

rahul99gangu avatar

Watchers

 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.