I'm trying to create a raceProfile using D3.js. This raceProfile is a diagram showing altitude depending to the race distance. When I try to create my svg, i'm getting this error:
Error: <path> attribute d: Expected number, "M0,NaNL14.354838709…".
(anonymous) @ d3.min.js:3
oy @ d3.min.js:6
uy @ d3.min.js:6
(anonymous) @ profile3.html:131
(anonymous) @ d3.min.js:6
call @ d3.min.js:6
e @ d3.min.js:6 Here is the code i'm using to create my RaceProfile. In the error, the line 131 is:
var areaPath = self.svg.append('svg:path').datum(data).attr("class", "area").attr("d", self.area).node();And, I have the error returned because of :attr("d", self.area)
You should have all my ressources, but, don't hesitate if you need further informations.
As a student, if you have any ressources to share, i accept everything.
Best Regards, Damien.