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
<template>
<wave-wave-dashboard-lwc dashboard="0FKxx000000000xxxx" height="800" show-title="true">
</wave-wave-dashboard-lwc>
</template>
Example: CRM Analytics Dashboard component on an Experience Cloud page
<template>
<wave-community-dashboard dashboard="0FKxx000000000xxxx" height="800" show-title="true" community-base-path="/communitySite/s">
</wave-community-dashboard>
</template>
See Also
<!-- This link is currently broken due to LWC build issue - [Lighting Web Component Wave Dashboard Reference](https://developer.salesforce.com/docs/component-library/bundle/wave-wave-dashboard-lwc)--> <!-- This link is currently broken due to LWC build issue - [Lighting Web Component Wave Dashboard Reference](https://developer.salesforce.com/docs/component-library/bundle/wave-community-dashboard)-->