How do I embed an interactive chart in a Medium post?
Quick answer
Medium does not accept embed code or scripts. To embed an interactive chart, paste the chart's URL on its own line in the editor and press Enter; if the chart's host is on Embedly's list of supported providers (Datawrapper is), Medium turns the link into a live embed once the story is published, and if it is not, the link becomes a preview card. For a chart host that is not on the list, export a PNG, upload it, and link it to the live chart.
You cannot paste embed code into Medium. The editor takes a URL on its own line: paste the link to the chart, press Enter, and if the chart's host is one of the providers that Embedly supports, Medium turns the link into an interactive embed once the story is published. If the host is not on that list, the link becomes a preview card. Medium's help center states both halves of this plainly: embedding with the embed code is not supported, and users cannot insert and run scripts. So an interactive chart in a Medium post comes from a host on Embedly's provider list, and anything else goes in as an image that links to the live chart.
That is a different mechanism from every other platform covered on this blog. WordPress, Squarespace and Webflow take an iframe. LinkedIn and Google Docs take nothing live at all. Medium takes live embeds, but only through a third party's allow-list, which makes the question "is my chart tool on Embedly" rather than "where is the HTML block".
What Medium's help page actually says
The Medium Help Center article on embeds, last updated 20 October 2025 when we read it, gives the whole procedure in three steps. While editing, go to a new line and paste the URL of the content, which must start with https:// or http://. Press Enter to convert the link into an embed. The embed becomes interactive once you publish the story, so in the draft you will not see it working.
Then the two rules. If the service is supported on Medium, the link changes into an embed; if not, the editor converts it into a preview card. And: "Embedding with the embed code is not supported." A separate answer on the same page says Medium does not allow users to insert and run scripts, for security and privacy reasons, though example code blocks can be shown for discussion.
Who decides what is supported is Embedly, a dedicated embedding service. The help page says Embedly keeps a list of currently over 300 providers that have been directly integrated, and that content from those services can be embedded on Medium. Embedly's own documentation on Medium repeats it: Medium uses Embedly's API, you do not need an Embedly account, and Medium only supports embedding from the providers on Embedly's list. Among the data visualization examples the help page names are ChartBlocks and Infogram.
Route 1: a chart host that is on Embedly's list
Datawrapper is on the list, its own documentation has a dedicated page for Medium, and that page is the right answer to this query for most people. The procedure, from Datawrapper's guide as updated 18 June 2025: publish the chart, choose the "Visualization only" URL under the share options and copy it, then in Medium press Enter to get a new line, paste the URL, and press Enter again. The chart appears in the editor and is responsive once published. Datawrapper's tip for checking the result is to open the share link to your Medium draft in an incognito window, which shows the story as readers will see it, chart working.
Datawrapper's strengths here are real: it is on the list, its charts resize with the column, and the Medium page says the feature is available on its free plan. For a bar chart of quarterly numbers or a line of one series, there is no reason to look further. Its limits are the ones covered in Datawrapper alternatives for finance newsletters: it is a general-purpose chart tool, so a yield curve, a volatility surface or an options chain is built somewhere else first.
Route 2: an image that links to the live chart
If the chart lives on a host that is not on Embedly's list, pasting its link gives you a preview card: title, description, thumbnail, and a click-through. That is sometimes enough. More often you want the chart itself visible in the flow of the story, and for that the honest answer is the same one that works in email and on LinkedIn: export the chart as a PNG at the width Medium displays, upload it as an image, and put the link to the live interactive version in the sentence beneath it.
Two habits make this work. Put the as-of date in the chart title inside the image, because a picture does not update and a reader six months later should be able to tell. And keep the link text specific, "interactive version, updates daily", so the click is worth making. The static image plus a live link is exactly the path Quadesto documents for Substack, which has the same restriction for a different reason.
Checking before you publish
Medium's own page says the embed becomes interactive only after publishing, so a static-looking block in the draft is not a failure. Use the incognito preview of the draft link to confirm the embed renders. If what you see is a card with a title and a thumbnail rather than the chart, the host is not on the list, and no amount of re-pasting will change that. Switch to Route 2.
One more thing the help page makes clear: becoming a provider is open to any host. Embedly adds new supported providers on a regular basis and there is no cost to joining, so the list changes. Check it rather than assuming.
Where Quadesto fits
A Quadesto chart does not render inside a Medium story today, because Medium only expands links from Embedly's provider list. Export the PNG, upload it, and link it to the live chart, which keeps updating on its own page, with a "Made with Quadesto" credit on the free tier, removed on Creator at £39 a month, and full custom branding on Pro. Start free.