title: How can I use d3.js to create a trend/exponential regression line?
body: <p>I'm trying to create a curved line showing a trend in data in a graph, but I can't figure out how to generate the necessary data points, similar to the second graph in this image:</p>
  
  <p><img src="https://i.stack.imgur.com/S9igj.gif" alt="Least Squares Fitting Graphs"></p>
  
  <p>All of the documentation and examples I find use math that goes over my head, any pseudocode would be great.</p>