JSON example for timestamped data added git-svn-id: http://soc.googlecode.com/svn/wiki@3162 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/StatisticsModule.wiki b/StatisticsModule.wiki index bf46667..76c1390 100644 --- a/StatisticsModule.wiki +++ b/StatisticsModule.wiki
@@ -35,6 +35,7 @@ * Results will be *raw JSON* (at this stage). _Need to decide precise format of this JSON data, (for clarity). An example here would help enormously._ + According to [http://code.google.com/apis/visualization/documentation/using_overview.html#embeddingavis what Google Visualization asks for], something roughly like: {{{ { @@ -121,6 +122,26 @@ _Mario: What's the simplest change to the JSON data collected that would allow us to show one of these?_ +Something like +{{{ +{ + [ + { + "timestamp": timestamp1, + "caption": "If we want an additional description", + "data": JSONObject + }, + { + "timestamp": timestamp2, + "caption": "Additional description 2", + "data": JSONObject + } + ] +} +}}} + +should suit our needs at a first glance. If _timestamp_ is not present we can consider the Array of JSONObjects (being _JSONObject_ a JSON object as defined formerly) as a simple order. + * *Drag slider* to see how profile changes over time, e.g. on a map. * *Timestamped data* may be all that we need.