GithubHelp home page GithubHelp logo

data-visualization-final-project's Introduction

CS 480x Final Project: The Cite Site

Team Members:

Camelia D. Brumar, Karsten Roberts, Thomas Wiles

To Run Locally

Run npm install in terminal pointed at this directory. Then:
On UNIX: DEBUG=final-project:* npm run devstart
On Windows: set DEBUG=final-project:* & npm run devstart

Link to website

https://cs480x-finalproj.herokuapp.com/

Link to screencast

https://drive.google.com/file/d/1XXTSnp6-5avM_cMBkNQ-78uAGHj7czQd/view?usp=sharing

Link to process book

https://drive.google.com/file/d/1VemA8jp3hQkZoHCOATvGlz_yVHrrF08q/view?usp=sharing

Program Structure:

  • In the views folder we have the html used for the webpages in the project.
  • In the public folder there is the following:
    • javascript folder with the separate scripts treeSquare.js for the treemap and the main index.js, which contains the code that handles the behaviour of the html: takes the word the user typed in the box and uses it to request the similar topics and the citations from Wikimedia. With this data we create the treemap and the list on its right.
    • stylesheets folder contains the css that define the syle of the webpage and the charts.
  • The routes folder contains the server routers. The main one is index.js, which deals with all requests to the wikipedia REST API

Project Features and Functionality

  • Search bar: Enter any existing Wikipedia page in the search bar and press enter or click the button to set that article as the root node. Any terms entered that are not registered Wikipedia pages will return an alert error.
  • TreeMap (Left): After searching for an article, a treemap will populate with the 5 most similar articles to what the user entered. The boxes are sized based on how references these similar articles have. Clicking on one of rectangles of the treemap will search for that article instead and repopulate the page.
  • Citation List (Right): A list of all references that contain links within them for the current root node/search term are displayed on the right. Clicking the hyperlink opens a new tab to the source page of the citation, and clicking the 'see reference in context' button opens a tab showing where that reference is used in the Wikipedia article in question.

Resources used

Technical Achievements

  • Fully integrated Wikipedia REST API
  • Made a way to give treemap children proper relative size without creating a heirarchy of entire database of wikipedia pages
  • Learned how to use Promises!

Design Achievements

  • Made cool timeline
  • Treemap follows screen when scrolling down to keep context
  • Searching new page starts you back at the top of the timeline
  • Linked timeline to treemap

data-visualization-final-project's People

Contributors

karstenroberts avatar kamibrumi avatar tgwiles avatar codementum 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.