I have an area chart that thanks to some people on Stack Overflow I finally got working. Now I need to add some date to the beginning and the end dates that come from the data.
dataDefect.forEach(function(d) {
d.projectDate = parseDate(d.projectDate);
d.severity = +d.severity[0];
});
x.domain(d3.extent(dataDefect, function(d) { return d.projectDate; }));
y.domain([0, d3.max(dataDefect, function(d) { return d.severity + 10; })]);
How do I add 30 days to the date so that I can draw some trends lines that show what might happen 30 days from now?