Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a simple bar chart visualization created with D3.js, displaying data from a CSV file loaded from a GitHub repository. The code uses `d3.select` to append a paragraph to the page and `d3.csv` to fetch the dataset, then renders axes with `d3.axisBottom` and `d3.axisLeft`. The chart includes dollar-formatted tick labels on the y-axis and uses a height-based translation for proper positioning. The implementation relies on D3 v5, imported via ES6 modules, with the page structure defined in an HTML file and styling in a linked CSS stylesheet.
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