exist-db tested XQuery Grain Mashup
✓ Published0🌍 Public
CCliffordAnderson
Last edited Dec 15, 2014
Created on Dec 15, 2014
This example visualizes cereal production in the United States from 1961 to 2013 as a column chart. It retrieves data from the World Bank API using the `httpclient:put` or `http:send-request` functions, then formats the response as a JSON array of date-value pairs. The code uses Google Charts (`google.load` and `google.visualization`) to render the chart, adding a trendline to the production data. The XQuery generates an HTML page embedding the chart, with the data parsed and ordered by year before being passed to the visualization library.
AI-generated description