Created
July 9, 2015 17:03
-
-
Save morozov/1b1fd52c5a88898f952e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = [ | |
{ | |
"timestamp": 1436450162, | |
"temperature": 23 | |
} | |
]; | |
var mgData = data.map(function (point) { | |
return { | |
date: new Date(point.timestamp * 1000), | |
value: point.temperature | |
} | |
}); | |
MG.data_graphic({ | |
title: "Temperature", | |
data: mgData /*, etc */ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment