Embeddable Chart Builder
Make a self-contained chart to embed anywhere: inline SVG, standalone HTML, accessible snippet.
How it works
Paste a small table and get a chart you can host yourself: inline SVG markup, a <figure> snippet with an accessible data-table fallback, a standalone .svg file and a standalone .html file with no external scripts (optionally with a tiny inline script for tooltips and keyboard focus).
- The data is parsed like the CSV/Excel Chart Studio (delimiter, number formats and dates detected automatically) and drawn with the site’s deterministic SVG chart library: Okabe–Ito colours, dash patterns, a <title>/<desc> text alternative and role="img".
- The SVG is passed through a strict allow-list sanitiser, so the markup contains no scripts, event handlers, external links or style attributes and can be pasted into most CMSs.
- The <figure> snippet keeps the data accessible: the SVG is labelled by its title and description, the caption carries the source line, and a <details> element holds the full data table as a fallback for screen readers, text browsers and copy-paste.
- The standalone HTML file contains everything inline (a few lines of CSS; with the interactive option a ~1 KB vanilla script that makes data marks focusable and shows their values). It loads nothing from other servers.
Use this tool in an app
These free programs for your browser have this tool built in, next to everything else the task needs.
-
RavingDesk Paper trading & data workspace
Practise trading on paper and chart your data: orders, risk, datasets, analyses, reports.
Related tools
- CSV/Excel Chart Studio – Turn CSV, TSV or Excel data into line, bar, pie, scatter or histogram charts with SVG/PNG export.
How to use the Embeddable Chart Builder
Create a self-contained, accessible chart for your website or CMS as inline SVG, a figure snippet with data table, or a standalone HTML file.
What it is for
Chart embeds from big online services load scripts from someone else's server, track your readers and break when the service changes. This builder makes a chart you host yourself. Paste a small table and you get:
- inline SVG markup to paste into an HTML block,
- a
<figure>snippet: the SVG plus a caption, source line and a collapsible data table for screen readers and copy-paste, - an
<img>snippet for when you upload the SVG file to your media library, - a standalone .svg and a standalone .html file that loads nothing from other servers. Optionally the HTML gets a tiny inline script for hover and keyboard tooltips.
It's made for small, presentation-ready tables (a handful of categories and series). For exploring a big spreadsheet, the CSV/Excel Chart Studio is better.
Worked example
The built-in example is three fruits over two years:
Fruit,2025,2026
Apples,12,15
Pears,9,11
Plums,4,7
Chart type bar, title Fruit sold (tonnes), y-axis label tonnes, source note Source: example data.
Result: "Embeddable chart "Fruit sold (tonnes)" (bar): categories 3, series 2; ready to embed (inline SVG 3.4 KB, standalone HTML 4.9 KB)." The first column became the labels and both year columns became series ("First column "Fruit" used as labels; 2 numeric column(s) as series"). The <img> snippet got a generated alt text, "Bar chart of 2025, 2026 by Fruit: 3 categories.", and the caption carries the source line.
The second example, a donut of visits by channel with the interactive option, came to 2.3 KB of SVG and a 5 KB standalone HTML file with tooltips. For a single series the generated alt text lists the values: "Search 5,200, Direct 2,100, Social 1,300, Email 600."
How to read the result
- Preview is the exact SVG you'll embed.
- Figure snippet is the most accessible option. Paste it into an HTML/custom-code block. The
<details>element holds the data table. - img snippet: replace
/path/to/…svgwith the URL of the uploaded file. - Downloads: the standalone SVG for your media library, the HTML file to open locally, attach or host as is.
- Data table shows what was parsed. Check it if a column is missing (it probably wasn't numeric).
Tips and common mistakes
- Write your own text alternative when the chart has a message ("Plum sales almost doubled"). The generated description only lists the structure or values.
- Keep the source line. It's shown under the chart and travels with every copy.
- Width and height set the aspect ratio and text size, not a fixed size. The SVG scales to its container, so 640×360 works on phones and desktops.
- Some CMSs strip inline SVG. If yours does, upload the .svg file and use the
<img>snippet. You lose the data table, so add it as a normal table below. - The interactive script only goes into the standalone HTML file. The inline snippets stay script-free so they pass strict CMS filters.
- Line and scatter charts expect dates or numbers in the first column. Bars and pies expect labels.
FAQ
Does the chart load anything from your server?
No. Every output is self-contained. Once you've copied the code or downloaded the file, nothing depends on this site.
Can I change colours or fonts?
The palette is the colour-blind-safe Okabe–Ito set and the text uses your reader's system font. You can edit the SVG by hand, but there are no colour settings in the form.
Will it work in WordPress or similar CMSs?
Usually, in a "Custom HTML" block. The markup contains no scripts, event handlers or style attributes. If your CMS still strips SVG, use the file upload and the <img> snippet.
How much data can I use?
Upload files up to 5 MB (first sheet only), but charts stay readable only with a modest number of categories and series.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://embeddablechartbuilder.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://embeddablechartbuilder.usefulweb.site/mcp· tool nameembeddable_chart_builder
Example request
curl -s -X POST https://embeddablechartbuilder.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"data":"Fruit,2025,2026\nApples,12,15\nPears,9,11\nPlums,4,7","chartType":"bar","title":"Fruit sold (tonnes)","yLabel":"tonnes","sourceNote":"Source: example data"}'