Skip to main content
100%

Fork of Butter Macronutrients

✓ Published0🌍 Public
Eerickflorescallejas064@gmail.com
Last edited Sep 3, 2025
Created on Sep 3, 2025
Forked from Clickable Circles

A bar chart displays the percentage of varicella cases in Bolivia by year, with bars colored teal by default and turning coral when clicked to highlight a selected year. The chart loads data from a CSV file, maps it with numeric year and percentage values, and renders axes and bars using d3.scaleBand, d3.scaleLinear, d3.axisBottom, and d3.axisLeft. A unidirectional data flow pattern in udf.js manages state, passing selections between viz.js, setupSVG.js, and renderBarChart.js.

AI-generated description

Varicella Cases in Bolivia

This visualization shows the percentage of varicella (chickenpox) cases in Bolivia over the years. Click on any bar to highlight it.

Files

  • index.html: Main HTML file
  • index.js: Entry point
  • udf.js: Implements unidirectional data flow pattern
  • viz.js: Main visualization logic
  • setupSVG.js: SVG setup utility
  • renderBarChart.js: Bar chart rendering logic
MIT Licensed

Similar vizzes