Ero sivun ”Widget:Chlorophyll-a trend graph” versioiden välillä
Järvi-meriwikistä
p (Tekstin korvaus – ”resultItem.Päivämäärä[0]” muotoon ”resultItem.Päivämäärä[0].timestamp”) |
|||
Rivi 61: | Rivi 61: | ||
//console.log(resultItem["Klorofylli-a"]); | //console.log(resultItem["Klorofylli-a"]); | ||
− | var obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | var obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
var obsVal = resultItem["Klorofylli-a"][0].value; | var obsVal = resultItem["Klorofylli-a"][0].value; | ||
Rivi 112: | Rivi 112: | ||
resultItem = categoriesArr[e][a]; | resultItem = categoriesArr[e][a]; | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
obsVal = resultItem["Klorofylli-a"][0].value; | obsVal = resultItem["Klorofylli-a"][0].value; | ||
Rivi 129: | Rivi 129: | ||
resultItem = categoriesArr[e][a]; | resultItem = categoriesArr[e][a]; | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
obsVal = resultItem["Klorofylli-a"][0].value; | obsVal = resultItem["Klorofylli-a"][0].value; | ||
Rivi 158: | Rivi 158: | ||
resultItem = request.query.results[i].printouts; | resultItem = request.query.results[i].printouts; | ||
− | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0])); | + | obsDate = new Date(toDateFromSecsSince1970(resultItem.Päivämäärä[0].timestamp)); |
obsVal = resultItem["Klorofylli-a"][0].value; | obsVal = resultItem["Klorofylli-a"][0].value; | ||