Skip to main content
100%

White hat in D3

✓ Published0🌍 Public
KKwasi Acquaye
Last edited Apr 9, 2024
Created on Apr 9, 2024

This example presents a horizontal bar chart of 2015 global video game sales, with a single bar chart comparing CO2 emissions by country, highlighting China in red. The D3.js (v7) visualization encodes values as bar heights, with axes, data labels, and a title. It uses `d3.scaleBand` for the categorical x-axis, `d3.axisBottom` and `d3.axisLeft` for ticks, and applies hover styling via CSS. The sketch.js file, however, uses Processing to load a CSV and draw a similar chart for game sales, demonstrating a different rendering approach in the same gallery.

AI-generated description
MIT Licensed

Similar vizzes