generate_embed
Generates an iframe embed code for sharing a Plotly chart on websites or blogs. Returns the HTML snippet, width, height, and accessibility note.
Instructions
Generate iframe embed code for sharing a chart in websites/blogs.
Self-contained embed snippet pasteable into any website or CMS. Renders via Plotly.js CDN.
Returns: {iframe_code, width, height, note}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Accessible title for the iframe | Chart |
| width | No | Embed width in pixels | |
| figure | Yes | Plotly figure dict from create_chart() | |
| height | No | Embed height in pixels |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||