Skip to main content
100%

S18 - HW 3 - Bar Chart

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

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 description

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

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
91% match