Skip to main content
Version: 0.2.0

API Reference

The SAS Visual Analytics SDK provides a set of components and APIs that enable you to render reports and report parts. It also enables you to use SAS data to drive your own components or visualizations.

Top-Level Exports

Loading with <script>

When you load the library with a script element, the vaReportComponents global variable is not ready to use until all of the other assets are loaded. The vaReportComponents.loaded event is dispatched once it is ready.

<script
async
src="https://unpkg.com/@sassoftware/va-report-components@0.2/dist/umd/va-report-components.js"
></script>
<script>
window.addEventListener('vaReportComponents.loaded', function () {
// The SAS Visual Analytics SDK is loaded and ready
const connectToServer = vaReportComponents.connectToServer;
});
</script>

Importing

All top-level exports can be imported like this:

ES5 (UMD)

const connectToServer = vaReportComponents.connectToServer;

ES6

import { connectToServer } from '@sassoftware/va-report-components';