Skip to main content
100%

Cocktail Ingredient Pairings

✓ Published3🌍 Public
Jjhcliu19
Last edited Dec 26, 2019
Created on Oct 29, 2019

A horizontal bar chart shows the 20 most common ingredients in cocktails filtered by a selected main alcohol. A dropdown menu lets users choose among spirits like Gin, Rum, or Tequila, with the chart updating to display ingredient frequency counts. The React app uses d3.csv for data loading, d3.scaleBand and d3.scaleLinear for positioning, and d3.nest for aggregation. Data comes from Hotaling & Co.’s cocktail dataset, rendered as SVG rectangles with tooltips.

AI-generated description

This visualization is based on the dataset of cocktails collected by alcohol importer and distiller Hotaling & Co. The original dataset was modified to parse out and clean up the ingredients.

There is a dropdown menu that allows the user to choose the main types of alcohol to act as the filter. The chart will then return the ingredients in the cocktails containing the displayed ingredients.

MIT Licensed

Similar vizzes