1. In the UX Component, the user chooses a company, which means the user selects a CustomerID.
  2. An AJAX callback passes that CustomerID to an Xbasic function on the server.
  3. The Xbasic function:
  4. Uses that CustomerID value as an argument to filter an SQL statement that retrieves results and performs calculations.
  5. Formats the data so it can be assigned to a JavaScript array that the Google Chart API uses.
  6. Passes the formatted data to the Google Chart function, which is on the client, the mobile device.
  7. The Google Chart function, on the client/mobile device, displays the chart in an HTML div in the UX Component.