S18 - HW 3 - Bar Chart
This bar chart visualizes the frequency of letter usage in the English language using a vertical bar for each of the 26 letters. The chart uses a line mark (rectangles) with vertical spatial position encoding frequency values and horizontal position encoding letters, as an ordered data type. It employs d3-dsv to parse the tab-separated data, d3-scale for position encodings, and d3-axis for axes. The first chart uses a categorical color scheme, while the second chart applies a sequential blue color scale where saturation encodes frequency, with the most frequent letter (E) shown in the highest intensity. Both charts use conventional margins, d3-scaleBand for the x-axis, and d3-scaleLinear for the y-axis, with axes labeled accordingly. </script> </body> </html> S18 - HW 3 - Bar Chart This visualization presents two bar charts displaying the frequency of letter usage in the English language, based on a TSV dataset. The charts use vertical and horizontal spatial positions as primary channels: the y-axis encodes letter frequency, while the x-axis represents each letter. The first chart uses a categorical color palette to distinguish bars, while the second chart applies a sequential color scale (interpolateBlues), where the intensity of the blue hue corresponds to the frequency—higher frequency letters like "E" appear with the highest intensity, and lower frequency letters like "Z" appear with the lowest. Both charts employ D3 v4 with SVG rendering, including axes, labels, and margins, and are designed to compare the distribution of letter frequencies in English. The data is ordered by frequency.
AI-generated descriptionCS 725/825 - Spring 2018 - Homework 3 - Bar Chart
See the assignment instructions at http://www.cs.odu.edu/~mweigle/CS725-S18/HW3
Explanation of how the bar chart is constructed (for the most part) is available at https://bost.ocks.org/mike/bar/3/
Other helpful links (scale, domain, range):
Original README.md
This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features:
- d3-dsv - parse tab-separated values
- d3-format - number formatting
- d3-scale - position encodings
- d3-array - data processing
- d3-axis - axes
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3885304'>Bar Chart</a>
forked from <a href='http://bl.ocks.org/weiglemc/'>weiglemc</a>'s block: <a href='http://bl.ocks.org/weiglemc/eda81fbb0af9c2de3ca5fccd3943b0e2'>S18 - HW 3 - Bar Chart</a> Bar Chart
The mark used in the bar chart is a line mark.
The channels are vertical and horizontal spatial positions. The vertical spatial position is mapped to the frequency of the letter usage. The horizontal spatial position is mapped to the letters in english word.<br/> -Data type: Ordered
The channels after editing:
The hue (actual colors)
The channels are vertical and horizontal spatial positions. The vertical spatial position is mapped to the frequency of the letter usage. The horizontal spatial position is mapped to the letters in english word<br/>
Data type: Ordered
After editing the bottom chart, the channels are: <br />
- The vertical and horizontal spatial positions, the vertical spatial position encodes the frequency of letter occurence<br />
- The next channels is saturation where the letter with the highest frequency has the highest intensity and the least letter has the least intensity. From the bottom chart, the letter "E" has the highest intensity because it has the highest frquency while letter "Z" has the least frquency and the least intensity.<br />
- Data Type: Ordered