🌍 Public
Viewing a saved revision (read-only)
9be23b6eb0c643d798e0c79e20833d49
Q1
This bar chart displays the average salary for various job titles, using data loaded from a remote CSV file. The visualization renders as an SVG with colored bars, a rotated x-axis for readability, and hover tooltips that reveal exact salary values. The code employs D3 v7 APIs including `d3.csv`, `d3.rollup`, `d3.mean`, `d3.scaleBand`, and `d3.scaleLinear`. Each bar is colored via a categorical ordinal scale, and mouse events trigger tooltip transitions to provide interactive feedback.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.