Lightning Web Components for Analytics Dashboards
There are two Lightning web components for displaying dashboards in Salesforce. The wave-wave-dashboard-lwc component displays a CRM Analytics dashboard in a Lightning page. The wave-community-dashboard component displays a CRM Analytics dashboard in Experience Cloud.
The component, LWC CRM Analytics Dashboard, is available in both the Lightning App Builder and the Experience Cloud Builder as a drag-and-drop component. You can also create your own component to interact programmatically with the wave-wave-dashboard-lwc or wave-community-dashboard components.
To display a CRM Analytics dashboard, pass in the required attribute, which is either dashboard or developer-name. All other attributes have a default value and are specified only if you want to override the default with your own custom value.
Example: CRM Analytics Dashboard component on a Lightning Page
1<template>
2 <wave-wave-dashboard-lwc dashboard="0FKxx000000000xxxx" height="800" show-title="true">
3 </wave-wave-dashboard-lwc>
4</template>Example: CRM Analytics Dashboard component on an Experience Cloud page
1<template>
2 <wave-community-dashboard dashboard="0FKxx000000000xxxx" height="800" show-title="true" community-base-path="/communitySite/s">
3 </wave-community-dashboard>
4</template>See Also
- Lightning Web Component for Analytics Dashboards Reference
- Salesforce Help: Embed Dashboards in Lightning Pages
-
- Salesforce Help: Share CRM Analytics in Experience Cloud Sites
- Lightning Web Components Developer Guide