S18 - HW 3 - Bar Chart
CS 725/825 - Spring 2018 - Homework 3 - Bar Chart
Kavyashree Sirigere Prakash
BAR CHART
- What is the type of mark used in the bar chart?
Line is the mark type used in the Bar Chart.
List the channels, the attribute they are mapped to, and the data type of that attribute.
Channels are:
- Vertical spatial position channel
- Horizontal spatial position channel
(Using Length to get position)
Attributes are :
- Frequency of Alphabets is quantitative data plotted in vertical spatial position channel.
- Alphabets are categorical data which is plotted in horizontal spatial position channel.
After your changes, list the channels, the attribute they are mapped to, and the data type of that attribute.
Chart 1
Channels are:
- Vertical spatial position channel mapped to frequency of alphabet which is quantitative type attribute
- Horizontal spatial position channel mapped to alphabet(letter) which is categorical type attribute
- Hue mapped to the alphabet(letter) which is categorical type attribute
Chart 2
Channels are:
- Vertical spatial position channel mapped to frequency of alphabet which is quantitative type attribute
- Horizontal spatial position channel mapped to alphabet(letter) which is categorical type attribute
- Saturation mapped to the frequency of alphabet(letter) which is quantitative type attribute
References
- https://stackoverflow.com/questions/42149691/how-can-i-use-d3-scale-chromatic-functions-with-a-domain-other-than-0-1
- https://github.com/d3/d3-scale#band_domain
- http://d3-legend.susielu.com/#size-linear