DocsGuidesEmbed an index on your site

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. 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. 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. 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. 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>
WidgetShows
cardLatest value with a 90-day sparkline, a compact performance chart against the benchmark, and the sector split. The one to start with.
chartThe performance chart with range chips and the index's benchmark rebased to the same start.
tickerLatest value, one-day change, sparkline and 1M / YTD / 1Y returns.
statsAnnualised return, volatility, Sharpe, max drawdown and more, side by side with the benchmark.
holdingsThe current constituents and weights, or a sector / country breakdown.
OptionApplies toValuesDefault
themealllight, dark, auto — auto follows the visitor's system setting, not your pagelight
bgall1 makes the background transparent so the host page shows through0
titleall0 hides the index name and as-of date1
benchmarkcard, chart, stats0 leaves out the benchmark configured on the index1
rangecard, chart, statsYTD, QTD, 3M, 6M, 1Y, 3Y, 5Y, ITD1Y
chipschart, stats0 hides the range selector1
heightchartchart height in pixels360
statsstatscomma-separated list: annualized-return, volatility, sharpe-ratio, sortino-ratio, max-drawdown, calmar-ratio, best-day, worst-day, tracking-error, beta, alphathe first four
groupholdingssymbol, sector, countrysymbol
limitcard, holdingshow 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

Workflow indices are valued at each session close, and that is what the widgets show — the as-of date is printed next to the title. There is no intraday tick.

Where to go next