Solid and dashed line in D3 line chart
<p>I want to build a line chart using D3 so that when the data points decrease (ie 5, 4,3,2) the line is solid and when the data points increase (ie 2,3,4,5) the line is dotted.</p>

<p>I found this resource on dashed lines <a href="http://www.d3noob.org/2013/01/making-dashed-line-in-d3js.html" rel="noreferrer">http://www.d3noob.org/2013/01/making-dashed-line-in-d3js.html</a> just wondering where I would include the logic based on the up and down trend.</p>