Example with code (d3.js v4 and v6)695
This post follows the previous basic area chart. It shows how to display the trend line on top, with the individual observations represented as circle as well. It is actually a mix between a scatterplot, a line chart and an area chart. This example works with d3.js v4
and v6
stroke
to the area. But this highlights the whole border, not only the top.. The workaround is to plot a line chart on top using the d3.line()
function.