Skip to main content
100%

Fork of Bar Chart Diverging Color

✓ Published0🌍 Public
AAlark Joshi
Last edited May 3, 2023
Created on Mar 16, 2022

This example visualizes the relationship between years of experience and salary, using a sequential blue color scale to encode salary values across individual bars. The chart displays a diverging color legend and axes labeled with dollar amounts and experience years. Built with D3.js (v7), it loads salary data from a CSV file, uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.scaleSequential` with `d3.interpolateBlues` for color mapping. The legend is generated using the d3-legend library, and the rendering uses SVG.

AI-generated description

States with Stamen employees as of January 2022

MIT Licensed

Similar vizzes