Embed the charts
Every chart can be embedded with a few lines. The chart shows its own source, table number and when the figures were updated.
How to do it
Open the chart and choose “Embed this chart”. Copy the code and paste it into your page. The code looks like this:
<iframe src="https://tallvett.no/en/embed/innvandrere-landbakgrunn/"
title="Largest immigrant groups in Norway"
style="width:100%;border:0" height="460" loading="lazy"></iframe>
<script src="https://tallvett.no/embed/v1.js" async></script>What the code does
- The frame alone works. The script only fits the height to the chart. A publishing system that strips scripts still shows a complete chart.
- The title is required: it is how a screen reader announces the frame.
- The chart follows the reader's light or dark setting. Add #theme=light or #theme=dark to the address to fix it.
- Links in the chart open in a new tab, so the reader is never navigated away from your page.
Live or frozen
- Live follows the figures: the chart updates when Statistics Norway publishes new ones. Right for pages that should always show the latest.
- Frozen shows the figures as they were on a given date, for good. Right for a news story about one release. A frozen address never changes, except that a correction note may be added.
Without an iframe
If your publishing system does not support iframes, every chart also exists as a share image (PNG, 1080 × 1350) on the chart's page, for social media, newsletters and messages.
Credit
The chart carries its credit inside the frame, and it must not be removed. If you rebuild the chart in another tool, we ask for the same credit:
Source: Statistics Norway, table NNNNN. Chart: Tallvett, tallvett.no
Privacy
Embedded charts use no cookies, no local storage and no tracking. See About for more.
Addresses last
The address of an embedded chart is a promise: it does not stop working and does not change meaning silently. If a chart is retired, the address shows the last figures, marked as no longer updated.