Embed an index on your site
Drop a live chart, ticker, statistics row, holdings table or card onto any web page with one iframe.
Every live index has a set of widgets you can drop onto any web page with a single <iframe> tag — a performance chart, a price ticker, a statistics row, the current holdings, or a compact card that combines them. They read the same data as the index's overview page, come in light or dark, and update with every session close.
Nothing to install and no API key: the widgets only ever show indices whose visibility is public, featured or unlisted (public by link, kept off the directory), and only what its Access grid shows the public — so the data they carry is already public.
Get the snippet
- 1
Open the index
From Team Workflows click the Embed action on the row, or open the index overview and click Embed in the toolbar.
- 2
Pick a widget and set the options
The preview on the right is the real widget, rendered live — what you see is exactly what your visitors get. Try the phone and tablet widths and the dark host-page toggle.
- 3
Make the index public if it is not
A banner at the top of the dialog says so, with a Make public button. Private indices show visitors a "This index is not public" tile.
- 4
Copy the snippet
Paste the
<iframe>where you want the widget. The Direct link tab gives the bare URL, which is what tools like Notion or Squarespace ask for.
The URL
Each widget is a URL of the form https://indexone.io/embed/workflow/{index id}/{widget}, with options as query parameters. You can write these by hand.
<iframe src="https://indexone.io/embed/workflow/idx_bm5kAwJ4Hnhm/chart?theme=dark&range=ITD"style="border:0; width:100%; height:520px" loading="lazy" title="My index"></iframe>
| Widget | Shows |
|---|---|
card | Latest value with a 90-day sparkline, a compact performance chart against the benchmark, and the sector split. The one to start with. |
chart | The performance chart with range chips and the index's benchmark rebased to the same start. |
ticker | Latest value, one-day change, sparkline and 1M / YTD / 1Y returns. |
stats | Annualised return, volatility, Sharpe, max drawdown and more, side by side with the benchmark. |
holdings | The current constituents and weights, or a sector / country breakdown. |
| Option | Applies to | Values | Default |
|---|---|---|---|
theme | all | light, dark, auto — auto follows the visitor's system setting, not your page | light |
bg | all | 1 makes the background transparent so the host page shows through | 0 |
title | all | 0 hides the index name and as-of date | 1 |
benchmark | card, chart, stats | 0 leaves out the benchmark configured on the index | 1 |
range | card, chart, stats | YTD, QTD, 3M, 6M, 1Y, 3Y, 5Y, ITD | 1Y |
chips | chart, stats | 0 hides the range selector | 1 |
height | chart | chart height in pixels | 360 |
stats | stats | comma-separated list: annualized-return, volatility, sharpe-ratio, sortino-ratio, max-drawdown, calmar-ratio, best-day, worst-day, tracking-error, beta, alpha | the first four |
group | holdings | symbol, sector, country | symbol |
limit | card, holdings | how many holdings or groups to show (0 on the card hides the sector split) | 10 |
Sizing
Widgets fill the width of their iframe and the snippet's height is measured from the loaded preview at the width you chose. It sits in the style attribute because some site editors strip the height attribute, which collapses the frame to 150px. If your page needs the frame to follow the content, the widget posts its rendered height to the parent window once loaded and whenever it changes:
<script>window.addEventListener('message', (e) => {if (e.data?.type !== 'indexone-embed') return;document.querySelectorAll('iframe[src*="/embed/workflow/' + e.data.workflowId + '/"]').forEach((f) => { f.style.height = e.data.height + 'px'; });});</script>
Values are end-of-day