FundChart DocsTry with your fund

Docs/Embed on your site

Embed fund charts on any website (plain HTML)

The generic one-line embed: how it works on any page you can paste HTML into.

Updated 8 Nov 2026View as Markdown

What investors find today

Most fund pages are a paragraph and a PDF link. An investor who wants the numbers downloads the factsheet, zooms, and scrolls. The large managers show a live page instead: facts, headline returns, performance against the benchmark, exposure, holdings, monthly returns, in the firm's colours and current to last month-end. FundChart draws that page from the factsheet or workbook you already produce, and any page you can paste HTML into can show it: a hand-built site, a static site generator, a CMS template, an intranet page.

Before you start

  • A FundChart workspace with the fund published (its review: Check data, Layout, Approve). In the fund's review, open the Layout step, press Layout and open the Embed code card. Copy beside "Full fund page" gives two lines: a script tag, and a <fundchart-page> tag with your token and the fund's id.
  • Your site's domains under Settings → API & agents → allowed domains. The token draws only on the domains you list; with none listed it draws anywhere, which is fine while you test on localhost.
  • Access to the page's HTML.

Paste two lines

Put the tag where the fund page should appear, and the script line once anywhere on the page (the end of <body> is a good place).

<fundchart-page token="fcp_YOUR_TOKEN" fund="YOUR_FUND_ID" name="your-fund"></fundchart-page>

<script async src="https://embed.fundchart.io/e.js"></script>

That is all. The page lays itself out to the width of the box it sits in, so put it in your content column, not a narrow sidebar. Never give it, or anything around it, a fixed height: a full page is two to five thousand pixels tall and grows with the sections you switch on.

A plain HTML page with the fund page in place: the fund's name, as-at date, fund facts and the headline returns.
A plain HTML page with the fund page in place: the fund's name, as-at date, fund facts and the headline returns.

On a phone the same tag gives the phone layout: one column, bars turned sideways, tables that fit the screen.

The same page on a phone, 390 pixels wide.
The same page on a phone, 390 pixels wide.

Three tags, one script

The script defines three tags. Use as many as you like on one page; the script line appears once.

  • <fundchart-page token fund>: the whole fund page, drawn from the layout you saved in FundChart.
  • <fundchart-center token>: every published fund in the workspace as one table, for a Funds page. Add link-template="/funds/{slug}" and each row becomes a link to your own fund page: a click or tap anywhere on the row opens it.
  • <fundchart-widget type="perf-chart" token fund>: one chart on its own, for a column of your own layout. Types: facts, hero, perf-chart, perf-table, growth, allocation, allocation-donut, exposure, exposure-donut, risk-return, holdings, monthly, disclaimer. A widget the fund has no data for draws nothing, so pick from the sections its page shows.
<fundchart-center token="fcp_YOUR_TOKEN" link-template="/funds/{slug}"></fundchart-center>

<fundchart-widget type="perf-chart" token="fcp_YOUR_TOKEN" fund="YOUR_FUND_ID"></fundchart-widget>
The fund centre: each published fund with its 1-year, 3, 5 year and since-inception returns and its as-at date.
The fund centre: each published fund with its 1-year, 3, 5 year and since-inception returns and its as-at date.

On a phone the fund centre turns each fund into a card, its returns labelled side by side.

The fund centre on a phone: one card per fund.
The fund centre on a phone: one card per fund.
A single performance chart: the fund against its benchmark over 1, 3, 5 and 10 years and since inception.
A single performance chart: the fund against its benchmark over 1, 3, 5 and 10 years and since inception.

Matching your site

The look (Editorial or Classic), the brand colour, the font and the sections are set in FundChart, in the Layout step, and every page that shows the fund follows. Attributes on the tag override them for that one tag, for example background="inherit" to let your own page colour show through, or sections="facts,perf-chart,disclaimer" for a shorter page. The full list is in the developer docs.

The embed draws inside its own box (a shadow root): your stylesheet does not reach it and its styles do not leak onto your page, so nothing on either side breaks the other.

Month-end

Nothing changes on your site. Upload next month's factsheet in FundChart, review, approve; the page on your site shows the new month within a minute. Every figure traces to a line in the file you uploaded, and the audit trail records who uploaded, who approved and when it went live.

If it does not show

  • Nothing at all: the script line is missing, or a content security policy on your site blocks embed.fundchart.io and api.fundchart.io. Allow both in script-src and connect-src.
  • A dashed box reading "this fund isn't published yet, or the token is wrong": publish the fund, or copy the tag again from the Embed code card.
  • "domain not allowed for this token": add your domain under allowed domains.
  • Your footer draws over the charts: something around the tag has a fixed height. Set it to auto.
  • The phone layout on a desktop: the tag sits in a narrow column. Move it to the full content width.
  • A single widget draws nothing: the fund has no data for that type. Use one of the sections its full page shows.