π Public
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 descriptionMIT Licensed
Comments
Sign in to join the discussion.