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
SASReportElement
SASReportPageElement
SASReportObjectElement
connectToServer
registerDataDrivenContent
DataDrivenContentHandle
setUseHighContrastReportTheme
setLoadingTheme
setLocale
setFormatterLocale
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>