Labs/Test Pilot/ExperimentAPI: Difference between revisions

Line 238: Line 238:


* experiment: reference the 'live' experiment object itself.  This reference can be used to get the contents of the data store (as CSV or as JSON), to check the experiment status, etc. etc.  TODO: document public API of experiment object
* experiment: reference the 'live' experiment object itself.  This reference can be used to get the contents of the data store (as CSV or as JSON), to check the experiment status, etc. etc.  TODO: document public API of experiment object
* document: the status page document, the one you are running in.  Because this code is in a securable-module context, the document reference would not otherwise be available.  It's provided in case you want to do "document.getElementById" or whatever.
* document: the status page document, the one you are running in.  (Because this code is in a securable-module context, the document reference would not otherwise be available.) You can use the document object to do "document.getElementById()" and get references to tags in your html and do fun things.
* graphUtils: a simple graphing library object containing methods drawTimeSeriesGraph() and drawPieChart().  TODO: Document how to use these methods.
* graphUtils: A reference to a live instance of the [http://code.google.com/p/flot/ flot] JS chart-plotting library, which you can use to draw graphs as you see fit.


=== Observer ===
=== Observer ===
1,007

edits