S18 - HW3 - Scatterplot
CS 725/825 - Spring 2018 - Homework 3 - Scatterplot
** Modified README.md by dralph **
Q1. What is the type of mark used in the scatterplot?
The mark for the scatterplot is a Point.
Q2. List the channels, the attribute they are mapped to, and the data type of that attribute.
- Position channel which maps to x (Rushing TDs) and y (Passing TDs) attributes/coordinates (numerical/quantitative).
Q3. After your changes, list the channels, the attribute they are mapped to, and the data type of that attribute.
This remains the same:
- Position channel which maps to x (Rushing TDs) and y (Passing TDs) attributes/coordinates (numerical/quantitative).
Added:
- Hue channel which maps to the "Conf" attribute (11 conferences; label/categorical).
- Size channel which maps to the "Interceptions" attribute (numerical/quantitative).
Hue/Color Assignments:
- 'Big 12'--> 'tan'
- 'CUSA'--> 'blue'
- 'SEC'--> 'crimson'
- 'Big Ten'--> 'silver'
- 'ACC'--> 'green'
- 'Pac-12'--> 'navy'
- 'American'--> 'red'
- 'Ind'--> 'gold'
- 'Sun Belt'--> 'yellow'
- 'MAC'--> 'black'
- 'MWC'--> 'gray'
The size channel modified existing dot size in a function:
- 3.5+(i["Interceptions"]*0.4)
Extra Credit: Add a color legend to the chart.
- Legend added to show the color assignments for the conferences.
References:
- https://jnnnnn.blogspot.com.au/2017/02/distinct-colours-2.html
- https://bl.ocks.org/d3indepth/fabe4d1adbf658c0b73c74d3ea36d465
- https://stackoverflow.com/questions/35186840/add-different-colors-to-each-bar-in-d3
- /weiglemc/6185069
- https://bl.ocks.org/enjalot/7c0fe907ba2010fed420
- https://github.com/d3/d3-color
Built with blockbuilder.org
forked from weiglemc's block: S18 - HW3 - Scatterplot