2014-11-25 133 views

回答

1

數據導入發生在這裏:

d3.csv("data.txt", function(error, data) { 
    data.forEach(function(d) { 
    d.Uhrzeit = parseDate(d.Uhrzeit); 
    d.Durchschn = +d.Durchschn; 
    d.Anz = +d.Anz; 
    }); 

d是每一行或觀察。如果您想要使用Gesamt而不是Uhrzeit,則這是您需要進行調整的位置。

+0

謝謝,但我把它改爲「d.Uhrzeit = d.Gesamt;」或「d.Gesamt = d.Gesamt;」或「d.Uhrzeit = + d.Gesamt;」和不工作... – Rolland 2014-11-25 02:05:35