Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
Ppjdhungana@gmail.com
Last edited Jul 14, 2023
Created on Jul 14, 2023
Forked from Hello VizHub

This bar chart displays weapon exporter values for different countries in 2017 as horizontal bars. Using React with SVG rendering, it loads data from a CSV file via d3.csv, while d3-scaleBand positions the countries on the y-axis and d3.scaleLinear maps the values to bar widths. The bars are colored with CSS class .bar, and the chart is built within a React component that receives data, dimensions, and margins as props.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes