TP2
✓ Published0🌍 Public
This example visualizes sales data from a CSV file using a bar chart rendered as SVG. It shows individual product IDs on the x-axis and their corresponding sales figures on the y-axis, with purple bars and axis labels. The visualization is built with D3 v5, using `csv`, `scaleBand`, `scaleLinear`, `axisLeft`, and `axisBottom` to load the data and construct the chart. A tooltip appears on mouseover, displaying the sales value for each bar.
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