d3 convert x axis from array indices to dates
问题 I have a data that is an array of values, like this: [244, 13, 24, 0, 18, 24, 3, 4, ... ] While array indices are simply integers, in this data they represent a range of dates such that the 0th index represents, say, 06/04/2013 and the last index represents 09/30/2013 although they're actually in seconds since 1970, so 1370378409 and 1380575923 would be more precise. I would like my x-axis to show the dates that the array indices represent. So that the ticks would look like dates: Mon 08 ,