This project is read-only.

Plotting Time on X-Axis

Mar 5, 2012 at 9:58 AM

I am very new to D3 component and I need help on plotting the time on x-axis.

I want to plot Y(double) value against the X time(hh:mm:ss). I want adjust Spacing of Tick on the X-axis with difference in 5 seconds.


Mar 6, 2012 at 3:04 AM

Try this, this may work (Some class name might be chnaged, this is based on some old version)



Mar 6, 2012 at 1:11 PM

Thanks Ravi for your quick response.


When I am using the code which you have suggested doesn't triggers when there is change in the seconds/milliseconds. I am looking for the graph like below image

Each line will have same x axis i.e. only time but y axis will change. For example red line y axis value range will be between 1000 to 3000 and for blue color line value range will be between 300 to 500.

Can you suggest me how can we achieve this type of graph.