Tell us what’s happening:
Hey , there i 'm struggling in completing the d3.js projects , can you tell me whats going wrong here ,i am not able to see the x-axis
The axis is at the margin. You can’t see it unless you translate the xAxisGroup with .attr("transform", "translate(0, 50)"). vary the arguments to translate until it is where you need it to be.
There is a reason the ticks are not there and that reason has nothing to do with the reason for not seeing the x-axis. The value of Time is a string. Does that mean anything to you? Replace:
var xAxisScale = d3.scaleLinear()
.domain([xMin, xMax])
.range([0, width]);
with
var xAxisScale = d3.scaleLinear()
.domain([10, 100])
.range([0, width]);
You will see where the problem is.
You are using xMin and xMax which are both strings and you are passing them to linear scale.
can have a look at this too, link ,i am still confused about the date thing . here it is in format of mm:ss , i’m getting invalid date format if i try to debug