これは簡単なはずです!
JavaScript の Date オブジェクトがあり、 D3 の time functionsを使用して魅力的な文字列に変換したいと考えています。
var format = d3.time.format('%e %b').parse;
console.log('graph_x', graph_x, typeof graph_x, String(graph_x), format(String(graph_x)));
これは私に与えます:
graph_x
Tue Dec 25 2012 08:26:10 GMT+0000 (GMT)
object
Tue Dec 25 2012 08:26:10 GMT+0000 (GMT)
null
Date オブジェクトを "Tue 25" のような素敵な文字列に変換するにはどうすればよいですか?