Embed a Chart in Webflow
Put a live chart on any Webflow page or CMS template
Webflow sites often carry case studies, reports and landing pages that lean on numbers. A chart from InstaCharts goes into a Code Embed element and stays connected to the spreadsheet behind it, so the published page shows current figures with no site update needed.
- Live and interactive
- Updates when your data changes
- Free plan available
Marketing Campaign Performance
Live
A live grouped line chart embedded with InstaCharts, the kind of chart you can add to Webflow. Hover over the chart to see each value.
Open TemplateAt a glance
What you need to embed a chart in Webflow
An InstaCharts chart shared publicly, its Responsive Embed Tag, and a Code Embed element on your Webflow page.
Code to copy
Responsive Embed Tag
Where it goes in Webflow
Code Embed element
Updates
Automatic when the chart or its data changes
About Webflow
What is Webflow?
Webflow is a visual website builder and hosting platform founded in 2013. Designers and marketing teams use it to build responsive sites on a visual canvas, with a CMS for blog posts, case studies and other collections. Custom HTML goes into Code Embed elements or into the page and site settings.
Visit webflow.comChart ideas
Charts that work well in Webflow
Start from a template with sample data, then replace the rows with your own numbers and embed the chart in Webflow.
Case study results
Show a client's campaign results over time on a case study page.
See the grouped line chart templateLanding page proof
Plot ad spend against conversions to back up a claim on a landing page.
See the scatter plot templatePerformance benchmarks
Chart page load time against bounce rate on an agency or product site.
See the grouped scatter plot templateIn InstaCharts
Make the chart and copy its embed code
Step 1
Add your data
Upload a CSV or Excel file, paste a table, import a file from a web link or connect a Google Sheet. InstaCharts reads your columns and suggests a chart.
To add a new sheet, launch the Add New Sheet dialog. There's a few ways to import your data, the easiest is Blank Sheet. In the empty spreadsheet on the Blank Sheet page, paste in your data straight from Excel. Click Next to see a data preview, then click Import. InstaCharts then draws a chart from the data automatically.
Step 2
Pick and style the chart
Choose the chart type and the columns for each axis, then set the title, colors and labels. Charts made from a synced Google Sheet or web link keep updating.
Easily change the shape of the chart using the Chart Type dropdown. Here, we are changing from a bar chart to a pie chart. Use the right click menu to show data labels on the pie chart, and to hide the legend. Finally we will change the chart theme and color scheme to get our chart to match our website.
Step 3
Share it and copy the Responsive Embed Tag
Click Share on the toolbar, choose Share Chart and set the share mode to Public. Under Embed in a webpage, choose Responsive next to Embed Tag and copy the code.
Click Share on the toolbar to open the Share & Templates dialog. Change the pie chart's share mode to Public. Under the Embed in a webpage tab, keep Responsive selected and copy the embed code.
In Webflow
Add the chart to Webflow
Paste the Responsive Embed Tag into a Code Embed element.
- 4
Step 4
Add a Code Embed element
Open the Add panel in the Webflow Designer and drag a Code Embed element onto the page where the chart belongs.
- 5
Step 5
Paste the Embed Tag
Paste the Responsive Embed Tag from InstaCharts into the code editor and click Save and Close.
- 6
Step 6
Publish the site
Publish the site and open the live page. The script in the Embed Tag sets the chart's height on the published page.
What the Responsive Embed Tag looks like
Copy your own code from the Share dialog. YOUR_CHART_ID stands for the id InstaCharts gives your chart.
<div class="instacharts-embed" data-src="embeds/YOUR_CHART_ID" style="width:600px; max-width:100%;">
<iframe src='https://instacharts.io/app/embeds/YOUR_CHART_ID' title="Quarterly Revenue" width="100%" height="600px" style="border-radius:6px; border: 1px solid rgba(0, 0, 0, 0.1); background:#ffffff;" frameborder="0" data-responsive="1"></iframe>
<script src="https://instacharts.io/app/scripts/embed.js" ></script>
</div>Tips
Tips for charts in Webflow
- Webflow runs custom scripts on the published site. Check the chart on your staging domain or live site to see it at its final height.
- To show a different chart on each CMS item, add a plain text field to the collection for the chart's Embed URL. In a Code Embed on the collection template, insert that field into the iframe's src.
- Turn on SEO caption to put the chart's title and a description of its data below the chart, where search engines index it with the rest of the page.
- Use the Customize toggle in the Share dialog to set the width, border and background color to match your design before copying the tag.
FAQ
Embedding charts in Webflow: FAQ
Answers to common questions about adding InstaCharts charts to Webflow.
Can I embed a different chart on each Webflow CMS item?
Yes. Add a plain text field to the collection and store each item's Embed URL in it. On the collection template, add a Code Embed with an iframe tag and insert the field as the iframe's src.
Does the chart work on mobile in Webflow?
Yes. The Responsive Embed Tag sets the chart's width and lets it shrink on narrow screens, and the chart redraws to fit the frame. Check the tablet and phone breakpoints after publishing.
Does an embedded chart update when my data changes?
Yes. The embed loads the chart from InstaCharts each time the page opens, so changes to the chart and new data from a synced Google Sheet, a web link or Zapier show up with no new embed code.
Is it free to embed a chart?
Yes. The free plan includes 200 share and embed views a month, and free charts show an InstaCharts watermark. Paid plans remove the watermark and raise the limit to 1,000 views a month on Starter and 100,000 on Pro.
Can I embed a data table or a dashboard?
Yes. Turn on Full Dataset or Plotted Data in the Settings tab of the Share dialog to add sortable table views to the chart embed. Dashboards have their own Share dialog with an Embed URL and Embed Tag.
Can I see where my chart is embedded?
Yes, on paid plans. The Analytics tab of the Share dialog counts embed views apart from share link views and lists the top pages that load the chart.
Want the full reference?
Read the embed charts documentation for sizing, the embed toolbar, SEO options and domain whitelisting.
Explore
Embed a chart on another platform
Step by step guides for every website builder and app InstaCharts covers.
- Embed a Chart in Notion
- Embed a Chart in WordPress
- Embed a Chart in Wix
- Embed a Chart in Squarespace
- Embed a Chart in Ghost
- Embed a Chart in Shopify
- Embed a Chart in Bubble
- Embed a Chart in Google Sites
- Embed a Chart in Framer
See which embed code each platform needs on the embed a chart page.
Make a chart for your Webflow page
InstaCharts makes data visualization easy, so you can build clear reports without design experience.