Fork of React & D3 Starter
✓ Published0🌍 Public
A multi-line chart displays coffee shop performance over 150 days, tracking sales, profit, and customer counts as three colored paths (red, blue, green) against shared day and value axes. The example loads data from a CSV file using d3.csv, converts values to numbers, and renders the lines with d3.line, scaling positions with d3.scaleLinear and adding d3.axisBottom and d3.axisLeft. The visualization is built within a React component using refs and the d3-selection library, outputting to SVG.
AI-generated descriptionMIT Licensed