Skip to content

DS4200-S23-Class/hw-06

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hw-06

hw-06 - Brushing and Linking

Link to GitHub Pages: [insert your clickable hyperlink here]

Clone this repo and work locally. Be sure to push the final version of your code (and any significant updates along the way) before submitting. To work locally, you will need to set up a Python Simple Server. Instructions for this are included below.

Purpose

The purpose of this assignment is to practice creating a coordinated, multiview visualization.

Instructions

  1. Resources to support this assignment are provided in the Resources section below.

  2. You can find a reference for what your final webpage should look like in the "reference" folder of your cloned directory.

  3. Create a GitHub Page for your repo and add the link to your GitHub Page above where you see [insert your clickable hyperlink here].

  4. Using the index.html file included in your repo, an external stylesheet (no styling should be done inline; it should all be done via external css), and an external javascript file (no javascript code should be included in your html file; it should all be done via external js) please do the following:

    • Make all font on your webpage Arial.
    • Add a title: "hw-06".
    • Add a centered header: "hw-06 - D3 Brushing & Linking".
    • Create three columns on your webpage, they should be even thirds of the page.
    • In the left column, use D3 to create a Petal_Length vs Sepal_Length scatterplot. Choose three appropriate colors (think about color maps and data types) to represent the species of each point. Color points accordingly, with 50% opacity. Your chart does not need axis titles, but do add a header to title the chart.
    • In the middle column, use D3 to create a Petal_Width vs Sepal_Width scatterplot. Color points as you did for the first scatterplot. Your chart does not need axis titles, but do add a header to title the chart.
    • In the right column, create a bar chart that shows count of each iris species in the dataset. There are 50 of each type, and you may hard code the data for this plot. Color bars to match the coloring of points in the scatterplots. Your chart does not need axis titles, but do add a header to title the chart.
    • Finally, add brushing and linking.
      • If the user brushes over points in the second scatter plot, corresponding points in the first scatter plot should be highlighted with increased opacity and an orange border and corresponding bars should be highlighted with an orange border in the bar chart.
    • Add a centered header to the bottom of your page. The header should say "Acknowledgements" in font smaller than the font used for your first header. Under this header, add a div. Inside of this div add a bulleted list of the resources you used to complete this assignment.

Python Simple Server

  • In order to read data from csv files, you will need to use a python simple server. To do that, follow these steps:
    • CD or open a terminal / command prompt window in the same folder that holds your website code.
    • Start a python simple server with one of these commands (depending on how you set python up on your machine): python -m http.server, python3 -m http.server, or py -m http.server.
    • After running the command, wait for the output: Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/).
    • Open your web browser (Firefox or Chrome) and navigate to the URL: http://localhost:8000. This is where you will see your code rendered.

Resources

  • HTML Page on w3schools. (On the left-hand side of the page there is a menu bar with links to various topics.)

  • CSS Page on w3schools. (On the left-hand side of the page there is a menu bar with links to various topics.)

Note that there are different versions of D3 (we are using version 6), so make sure the tutorials you use are up-to-date (or you at least understand what is different about v6 versus older versions).

Submission

  • Be sure to push all changes to your repo and follow all instructions above.
  • Submit your assignment on Gradescope

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages