Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
Mmok3bat
Last edited May 1, 2021
Created on Apr 27, 2021

This example presents an animated bar chart of country values, with data loaded from a CSV file. The chart visualizes numerical values for each country using horizontal bars, with axes positioned on the left and bottom. It imports D3 functions like `csv`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the visualization. The bars transition in width over 800 milliseconds, with each bar sequentially delayed using `transition.duration` and `delay`. The SVG rendering includes a styled message from a local ES6 module, all within a pink-background container.

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