Skip to main content
100%

Sequential Color Scale bar chart

✓ Published4🌍 Public
KKwasi Acquaye
Last edited Mar 4, 2024
Created on Mar 4, 2024
Forked from D3 Bar chart

This bar chart visualizes the global sales figures for nine video games from 2015, ranging from Call of Duty at 14 million units down to Metal Gear at 3.38 million. It uses a sequential blue color scale to represent the magnitude of sales, with darker shades indicating higher values. The chart is built with D3 v6, using `d3.scaleBand` for the categorical x-axis and `d3.scaleLinear` for the y-axis and color mapping, rendered as SVG rectangles. Data is loaded from the `HW2.csv` file, and a color legend is generated with the `d3.legendColor` API.

AI-generated description
MIT Licensed

Similar vizzes