dataset
✓ Published20🌍 Public
This example displays a horizontal bar chart of the top 20 most traded stocks on the Brazilian B3 exchange, using data from a local CSV file. It loads D3 v5 from UNPKG and imports `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `format` to parse the data, map quantities to bar widths, and render axes with a `.3s` tick format. The SVG renders steelblue rectangles, with labels and a title, while a separate ES6 module attempts to handle a button click but contains incomplete syntax.
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