Re-renders the thumbnail using the current theme. Called automatically whenever RevealSdkSettings.theme changes.
StaticfromChartTypeRenders the thumbnail for a visualization into the target element without requiring a dashboard or widget. Uses the default theme and no context ID.
The selector of the HTML element to render the thumbnail into.
The chart type to render.
The RVThumbnail instance.
StaticfromDashboardRenders a thumbnail for a dashboard into the target element.
When dashboardIdOrDashboard is a string it is treated as a dashboard ID and fetched from the server.
When it is an RVDashboard instance the already-loaded model is used directly.
Optionally renders only the thumbnail for a specific visualization.
The selector of the HTML element to render the thumbnail into.
A dashboard ID string or an RVDashboard instance.
Optionalviz: string | number | object | RVVisualization | nullOptional visualization identifier — a zero-based index, a title, an RVVisualization instance, or a plain object with title/chartType properties.
The RVThumbnail instance, or null if the dashboard could not be loaded.
StaticfromDashboardJsonRenders a thumbnail for a dashboard supplied as a JSON string (documentJsonString) into the target element. Optionally renders only the thumbnail for a specific visualization.
The selector of the HTML element to render the thumbnail into.
The full dashboard JSON string (documentJsonString format).
Optionalviz: string | number | object | RVVisualization | nullOptional visualization identifier — a zero-based index, a title, an RVVisualization instance, or a plain object with title/chartType properties.
The RVThumbnail instance.
Releases all resources held by this thumbnail instance (ResizeObserver, window resize listener, and the entry in the active-thumbnails registry). This is called automatically when the container element is removed from the DOM, so explicit calls are not required in most cases. It can still be called explicitly from a framework lifecycle hook (e.g. Angular
ngOnDestroy, ReactuseEffectcleanup) to release resources sooner.