Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Beer Style Explorer Pseudo-Viz

Public visualization

Viewing a saved revision (read-only)

fd3b5efe6b5642ac8a336ac92451b3e1

Beer Style Explorer Pseudo-Viz

0 stars0🌍 Public
Mmilepore@gmail.com
Last edited Oct 25, 2024
Created on Sep 20, 2024
Forked from Marks and Channels

The Beer Style Explorer pseudo-viz combines bar length and line marks to compare beer styles. Bars encode the number of reviews per style, while an overlaid red line uses y-position to show the average rating for each style. The visualization uses D3's `select` and `line` APIs, with `scaleBand` and `scaleLinear` for the axes, and `axisBottom`, `axisLeft`, and `axisRight` to render the chart. Both signals are presented on a shared categorical x-axis, with the line connecting the average ratings across styles.

AI-generated description

A demonstration of basic D3 usage to implement the concept of Marks and Channels. Includes usage of:

  • Point Marks by X, Y, Size
  • Line mark varying in length
  • Scaling factors
  • SVG Rectangles
  • selection.each()
  • SVG Path Elements
  • d3.symbol()
  • SVG attributes transform and fill
  • D3 Color Schemes
  • JavaScript Modules

Part of the Constructing Visualizations Playlist.

See also blocks.roadtolarissa.com: Marks and Channels (a vanilla JavaScript version of this).