> This page location: /docs.md > /docs/development.md > /docs/charts.md > /docs/charts/embed-charts-and-dashboards.md > /docs/charts/embedding-charts.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

<!--
Tab options on this page. Append to the .md URL to filter:
  ?tabs=<id,...>   select specific tabs (e.g. ?tabs=nodejs,shell)
  ?allTabs=true    include every tab
  (no param)       default: one tab per tabset

Available tabs:
  other tabs: unauthenticated, verified-signature
-->

# Embed Charts with an iframe

You can embed a chart into a web application with an iframe and specify settings such as height, width, refresh interval, and display theme.

Charts embedded within an iframe may be either:

- Unauthenticated, in which case they are viewable by anyone.

- Authenticated with a Verified Signature.

  **Note:**

  Authentication with a Verified Signature is deprecated. The [Embedding Charts SDK](https://www.mongodb.com/docs/charts/embedding-charts-sdk.md#std-label-embedding-charts-sdk) offers authentication through several [authentication providers.](https://www.mongodb.com/docs/charts/configure-auth-providers.md#std-label-configure-auth-providers)

## Prerequisites

- You must be a dashboard [Author](https://www.mongodb.com/docs/charts/dashboards/dashboard-access/dashboard-permissions.md#std-label-dashboard-permissions) to enable embedding for a chart.

- [Create a New Dashboard](https://www.mongodb.com/docs/charts/dashboards.md#std-label-create-new-dashboard)

- [Create a Chart](https://www.mongodb.com/docs/charts/build-charts.md#std-label-create-new-chart)

## Procedure

### Unauthenticated

1. Select a dashboard.

   From the Dashboards page, select the dashboard containing the chart you wish to make embeddable. For instructions on navigating to dashboards, see [Dashboards.](https://www.mongodb.com/docs/charts/dashboards.md#std-label-dashboards)

2. Select a chart.

   From the dashboard, click  at the top-right of the chart to access its embedding information. Select Embed chart from the dropdown menu.

   **Note:**

   If a chart is on a dashboard that has embedding enabled, the Embed Chart option is automatically enabled. Therefore, you can't select the Embed chart option for charts within dashboards that have embedding enabled.

3. Enable external sharing on the data source.

   If you have already enabled external sharing on the data source this chart uses, skip this step. If you haven't yet enabled embedding on the data source, you can do so now. Click the Configure external sharing link.

4. Select the Unauthenticated tab in the dialog window.

   ![Embed unauthenticated chart](/images/charts/embed-chart-anon.png)

5. Toggle Enable unauthenticated access to On.

6. (*Optional*) Specify filterable fields for your chart.

   Specify the fields on which chart viewers can filter data. By default, no fields are specified, meaning the chart cannot be filtered until you explicitly allow at least one field.

   Alternatively, you can specify all the fields in your chart by selecting Allow all fields in the data source used in this
   chart.

   To learn more about filterable fields, see [Specify Filterable Fields.](https://www.mongodb.com/docs/charts/filter-embedded-charts.md#std-label-specify-filter-fields)

7. Select the panel labeled Iframe.

   Selecting the Iframe panel reveals the iframe embedding code and allows you to set refresh and display theme options.

8. Set options.

   The refresh interval determines how often your chart refreshes with new data, if any, from your data source.

   If you are a free user, a new four-hour option is selected by default as the auto-refresh interval.

   You can select the Light or Dark display theme for your chart.

9. Copy the iframe embedding code.

   The iframe embedding code contains your chart's base URL and chart ID, as well as any options you have set.

10. (Optional) Set additional options.

    You can edit the iframe code manually to set several other chart options, including height, width, and border radius. See [Embedded Chart Options](https://www.mongodb.com/docs/charts/embedded-chart-options.md) for more information about chart options.

After your iframe code is ready with any options you've set, you can place it in a web page to display your chart.
