Reusable
✓ Published0🌍 Public
This example displays a reusable scatter plot of Apple stock close prices over time, using a subset of the first 100 data points from the plotly finance-charts-apple CSV. The visualization shows a blue dot for each sample, mapped with index on the x-axis and price on the y-axis, along with labeled axes. The code defines a `scatterPlot` function that accepts SVG and layout properties, using `d3.scaleLinear` for both axes, `d3.axisBottom` and `d3.axisLeft` for ticks, and appends circles to the SVG with D3 v7.
AI-generated descriptionMIT Licensed