Skip to main content
100%

S18 - HW 3 - Bar Chart

✓ Published0🌍 Public
VVarsha-Ravi
Last edited Jan 30, 2018
Created on Jan 30, 2018

This bar chart visualizes the frequency of letters in the English language using a TSV dataset. The visualization is rendered as two separate SVG bar charts (Bar Chart 1 and Bar Chart 2), each displaying the same data with letters on the x-axis and their corresponding frequencies on the y-axis. The charts use D3 v4 features including d3-dsv for parsing tab-separated values, d3-scale for position encodings (band scale for the x-axis and linear scale for the y-axis), d3-axis for axes, and d3-format for number formatting. Each chart applies conventional margins, uses a steelblue fill for the bars, and includes labeled axes with frequency values formatted as percentages. The two charts are structurally identical but are implemented in separate SVG elements to demonstrate the construction process.

AI-generated description

CS 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:

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>

gpl-3.0 Licensed

Similar vizzes

Loading thumbnail…

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.

UUdochukwuNweke
88% match