Log Data in the Cloud
Make a URL that records and plots data in the Wolfram Cloud.
code
Make a URL that clears the data:
how it works
This example was live-coded at the Wolfram Research booth at SXSW, March 12, 2014.
Store an empty list of data in the Wolfram Cloud:
Out[1]= | |
Deploy a URL that adds a value to the data list and plots the cumulative result. Each time you visit the URL with a value specified in the query string—for example, “?data=3”—the value is added to the data in the cloud and the result is plotted:
Out[2]= | |
These hyperlinks add various values to the data:
After clicking the 1, 3, 2, and 5 links, the output looks like this in the cloud:
Deploy a function to clear the accumulated data:
Out[4]= | |