Skip to main content
100%

A4_Bar-chart_LogScale

✓ Published1🌍 Public
DDuc Pham
Last edited Feb 26, 2024
Created on Feb 26, 2024
Forked from A4_Bar-chart

This bar chart visualizes average salaries by job title using a logarithmic y-axis, which makes it easier to compare values across a wide range, from 1 to $1,000,000. The chart is built with D3.js v6, using `d3.scaleBand` for the x-axis and `d3.scaleLog` for the y-axis, with bars colored steelblue that turn orange on hover. Tooltips appear on mouseover, displaying the job title and salary, while the x-axis labels are rotated for readability. Data is loaded from a CSV file containing job titles and salaries, and the visualization is rendered as an SVG element.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes