Visualization

Generating the data for a graph uses the JSON queries. For example, you could use a JSON message to embed a chart in a web page.

The screen capture shows a JSON message that serves as the source for rendering a chart in a web site.

Figure 18.   JSON message for Google chart data
Image

This shows all the square brackets of several arrays with values. The JSON that generates this payload queries the history for a particular ramp in a station:

history:/json/Ramp|bql:select top 5 value

This is another (different) example of a schema and the JSON message that creates its chart.

Figure 19.   JSON schema and output
Image

Gold (orange) identifies the basic Query ord. The block identified by the green box and arrow (data) is the bound query result. The resulting graph looks like the following on a web page.

Figure 20.   Charts created by JSON messages
Image