Skip to main content
100%

S18 - HW 3 - Bar Chart

✓ Published0🌍 Public
UUdochukwuNweke
Last edited Jan 27, 2018
Created on Jan 27, 2018

This example shows two identical bar charts displaying the frequency of letters in the English language, based on data from a TSV file. The charts use D3 v4 to render SVG elements, with d3-dsv for parsing the tab-separated values, d3-scale for position encodings, and d3-axis for axes. Each chart applies conventional margins and uses a band scale for the x-axis (letters) and a linear scale for the y-axis (frequencies), with bars colored steelblue. The first chart includes a y-axis label, while the second chart omits it, illustrating a minor variation in annotation. The visualization demonstrates standard D3 bar chart construction with axes, scales, and data binding.

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>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/9fd2c2ff21ebdac2e44c6f6b8e2e6912'>S18 - HW 3 - Bar Chart</a>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/be860580445aecb98e8f29ef0055255e'>S18 - HW 3 - Bar Chart</a>

forked from <a href='http://bl.ocks.org/UdochukwuNweke/'>UdochukwuNweke</a>'s block: <a href='http://bl.ocks.org/UdochukwuNweke/75e876f7025a36912a26703661238083'>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
92% match