Assignment 2.1
✓ Published0🌍 Public
A horizontal bar chart displays weapon export values for six countries in 2017, using a linear scale for the numeric count and a band scale for country categories. The SVG rendering loads data from a local CSV file and builds the visualization with D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `format`. Axis ticks extend across the plot, while red axis labels, green bars, and a styled title demonstrate custom color and font adjustments. The example also showcases ES6 module imports and D3 loaded via UNPKG.
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.
MIT Licensed