🌍 Public
Viewing a saved revision (read-only)
5e05255a4d9f41fca6cbe5f4accbb060
task 9 and 10 Q2
This visualization displays monthly sales data as an area chart, where hovering over a bar reveals a tooltip with the exact month and sales value. The chart uses d3.area() to draw the shaded region, d3.scaleBand() and d3.scaleLinear() for the axes, and SVG rectangles to capture mouse events. Data loads from a CSV file via d3.csv, and the tooltip appears with a transition. The visualization includes rotated x-axis labels and custom axis titles.
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.