S18 - HW 3 - Bar Chart
This visualization presents two bar charts displaying the frequency of letters in the English language, derived from a TSV file. Each chart uses thick line marks (rectangles) with length and position as the primary channels, mapping letter categories to the x-axis and quantitative frequency values to the y-axis. The first chart applies an ordinal color scale with 26 distinct hues, one for each letter, while the second chart uses a linear color scale to encode frequency through color saturation, ranging from dark for the most frequent letter (E) to light for the least frequent (Z). Both charts are rendered as SVGs using D3 v4, with axes, labels, and margins configured for clear comparison of letter frequency distributions.
AI-generated descriptionCS 725/825 - Spring 2018 - Homework 3 - Bar Chart
Varsha Ravi-01067335
This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language.
- Type of mark used - Lines (Thick lines)
- List of channels - Length,Position
- Attributes they are mapped to - Position of y axis of Quantitative, Position of x axis of Categorical
- Data type - Frequency dimension, Alphabet
Graph 1 - In graph 1 Color hue was applied to get different colors for each alphabet. This could be obtained using colorScale = d3.scaleOrdinal(d3.schemeCategory20); , but this provides only 20 set of colors and the colors will be repeated for the next 6 colors as the loop repeats. Thus the data set has been called using .domain and then using range 26 different colors have been assigned.
- Channels - Length, position, color hue
- Attributes they are mapped to - Position of x axis(Letters) of Quantitative, Position of y axis(frequency) of Categorical
- Data types - Frequency dimension, Alphabet
Graph 2 - In Graph 2 color saturation was applied to get saturation of clors from darker shade to lighter shade to the highest to lowest frequency respectively.
- Channels - Length, position, color saturation
- Attributes they are mapped to - Position of x axis(Letters) of Quantitative, Position of y(frequency) axis of Categorical
- Data types - Frequency dimension, Alphabet
References: