🌍 Public
Viewing a saved revision (read-only)
b8c38d37ddf94515af498e37b394a3b5
Fork of Line Chart ice 7
This example visualizes restaurant profit trends from 1985 to 2024 using a line chart with overlaid circular points. The visualization combines a D3.js v7 line path and scatter-style circles to show profit values across years, with hover tooltips revealing exact figures. The code uses `d3.scaleBand` for the time axis and `d3.scaleLinear` for the profit axis, while the data comes from a remote JSON file. The line path and points are both styled with green fills, transitioning to orange on hover.
AI-generated description