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.