Skip to main content
Version: 2.16.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://cdn.developer.sas.com/packages/va-report-components/latest/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>

Loading with imports

When you load the library as an ES module, APIs are available as named imports. See the ES module imports guide for more information about loading the library as a module.

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