---
schema_version: "1"
id: f3ffa88d01124275fde4b914483864a56263a82fc08efe97c778071ce525765c
title: Lightning Web Components for Analytics Dashboards
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/dashboard-component/guides/bi-dbcomp-lwc-overview.md
canonical_url: https://developer.salesforce.com/docs/analytics/dashboard-component/guide/bi-dbcomp-lwc-overview.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 312b68bbbfac903a9352b6c7087aeda25069e218fadcdd22574d30d43cc8bce8
products:
  - Analytics Dashboard Component
  - analytics
---
# 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

```xml
<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

```xml
<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)-->
- [Lightning Web Component for Analytics Dashboards Reference](https://developer.salesforce.com/docs/analytics/dashboard-component/guide/bi-dbcomp-lwc-reference.md)
- _Salesforce Help_: [Embed Dashboards in Lightning Pages](https://help.salesforce.com/s/articleView?id=analytics.bi_embed_lightning.htm)
- - _Salesforce Help_: [Share CRM Analytics in Experience Cloud Sites](https://help.salesforce.com/s/articleView?id=analytics.bi_app_communities.htm)
- [Lightning Web Components Developer Guide](https://developer.salesforce.com/docs/platform/lwc/guide)
