Replacing the data in data.csv in example with your data should work. D3 will scale and plot the values on the graph by itself. If you want to change the x-scale and want to include time as well, you have to change the format specifier in the same line that you have mentioned from this line:

var parseDate = d3.time.format("%d-%b-%y").parse;

To this line:

var parseDate = d3.time.format("%m/%d/%Y-%H:%M:%S").parse;

I have added the sample for your code, check this out: line chart with date and time.

Here are the list of format specifiers that you can use and here is the example.

Related Query