Is there a way to properly pass the context of
Test = function(){
this.x = //(1) How do I access 'this' in the return statement?
this.line = d3.svg.line()
.interpolate("linear")
.x(function (d) {
return this.x(d.x);
})
}
Though using 'this.x' in the return does not provide the desired context as indicated in (1), How can I correctly access it within the return statement?