Skip to main content
100%

XQuery Grain Mashup

✓ Published0🌍 Public
CCliffordAnderson
Last edited Dec 15, 2014
Created on Dec 1, 2014

This example visualizes cereal production in the United States as a column chart, plotting annual metric tons over time from 1961 to 2013. It fetches data from the World Bank API using XQuery’s HTTP client module, then transforms the XML response into a JavaScript array of date–value pairs. The chart is rendered with the Google Visualization API’s `ColumnChart`, which also displays a trendline for annual production. The XQuery code builds the HTML page dynamically, embedding the JSON data directly into a script tag for the Google Charts library to consume.

AI-generated description

Similar vizzes