Build Custom Visualizations for Apps/Scripts | Teradata AppCenter - 1.10 - Building Custom Visualizations for Apps and Scripts - Teradata AppCenter

Teradata® AppCenter User Guide

Teradata AppCenter
March 2020
User Guide

"" User, Administrator

AppCenter supports upload of custom visualization code for apps that run once or on schedule and SQL scripts. To create JavaScript code with visualizations that you can upload as a bundle file to your SQL app or script, do the following:

  1. In an app or SQL script, run any SELECT statement.
    You get JSON data in the following format:
                   "address":"santa clara"
                   "address":"san jose"
  2. In the visualization code, add $$$$$$ where you want the data you extracted to be inserted at runtime.
    For example:
    		<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
    		<script type="text/javascript" src=""></script>
    		<script type='text/javascript'>
    	  $(document).ready(function() {
    		 var data = $$$$$$;
    		 $('div p').text(JSON.stringify(data)); //converting the data to string for display
    		 <div style="width: 100%; height: 100%; width: 100%;">
  3. In Settings for your SQL app or script, select Custom (Upload) to upload the JavaScript bundle file.