d3.js v5 line chart with dates
This example shows a line chart of weekly Net Promoter Scores over several months, with each data point highlighted by a circle and labeled with its numeric value. The chart uses a time-scaled x-axis for dates and a linear y-axis for scores, with the line smoothed using `d3.curveMonotoneX`. The code builds the visualization with D3 v5, using `d3.scaleTime`, `d3.scaleLinear`, `d3.line`, and `d3.axisBottom`, while rendering the marks as SVG circles and text labels. The data are hardcoded as an array of date-and-score pairs, and the y-axis range is fixed to start slightly below the minimum score.
AI-generated descriptionforked from <a href='http://bl.ocks.org/LyssenkoAlex/'>LyssenkoAlex</a>'s block: <a href='http://bl.ocks.org/LyssenkoAlex/1317e8dcf3d40f33b341552cf82a10b2'>d3.js v5 line chart with dates</a>