Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task-8

Public visualization

Viewing a saved revision (read-only)

3b14babf08e14255b396b3a1e38126be

Task-8

0 stars0🌍 Public
Rravularasesh3102@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024

This visualization shows Olympic medal counts by country using an interactive stacked bar chart. Hovering over the color legend highlights the corresponding medal category and dims the others. The chart uses D3’s `scaleLinear`, `scaleBand`, and `stack` to create bars, with a `flatRollup` grouping data by country and medal type. A custom `colorLegend` module handles mouse interactions, adjusting opacity and stroke width. The data source is `transformedData` from an external module, rendered responsively with `observeResize`.

AI-generated description