InstaCharts logo Squarespace InstaCharts + Squarespace

Embed a Chart in Squarespace

Show a live chart on any Squarespace page or blog post

Squarespace sites for studios, shops, consultants and nonprofits use charts to show results, prices and progress. InstaCharts provides an Embed Tag that fits in a Squarespace Embed block, and the chart stays connected to its data after the page is published.

  • Live and interactive
  • Updates when your data changes
  • Free plan available

How Did You Hear About Us

Live
How Did You Hear About Us donut chart made with InstaCharts

A live donut chart embedded with InstaCharts, the kind of chart you can add to Squarespace. Hover over the chart to see each value.

Open Template

At a glance

What you need to embed a chart in Squarespace

An InstaCharts chart shared publicly, its Responsive Embed Tag, and a Embed block with a code snippet on your Squarespace page.

Code to copy

Responsive Embed Tag

Where it goes in Squarespace

Embed block with a code snippet

Updates

Automatic when the chart or its data changes

About Squarespace

What is Squarespace?

Squarespace is a website builder and hosting platform founded in 2003 and based in New York. It is known for its designer templates, and it includes tools for online stores, appointment scheduling, blogs and email campaigns. Creative studios, restaurants, consultants and shops use it to run their sites.

Visit squarespace.com

In InstaCharts

Make the chart and copy its embed code

  1. 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.

  2. 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.

  3. 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 Squarespace

Add the chart to Squarespace

Paste the Responsive Embed Tag into a Embed block with a code snippet.

  1. 4

    Step 4

    Add an Embed block

    Edit the page or blog post, click Add Block where the chart should go and choose Embed.

  2. 5

    Step 5

    Switch to Code Snippet

    Open the block's settings and click the code icon in the URL field to switch the block to Code Snippet.

  3. 6

    Step 6

    Paste the Embed Tag

    Paste the Responsive Embed Tag from InstaCharts into the code field, then save the page and view it on the live site.

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 Squarespace

  • Scripts in code snippets can stay inactive while you edit. Save and open the live page to see the chart at its final height.
  • Squarespace also has a Code block that accepts the same Embed Tag, so use whichever block your site offers.
  • Turn on SEO caption to add the chart's title and a description of its data below the chart, in your site's font and text color.

FAQ

Embedding charts in Squarespace: FAQ

Answers to common questions about adding InstaCharts charts to Squarespace.

Can I add a chart to a Squarespace blog post?

Yes. Blog posts use the same blocks as pages, so add an Embed block inside the post and paste the Embed Tag.

How do I change the chart's size in Squarespace?

Set the width and height with the Customize toggle in the InstaCharts Share dialog before copying the Embed Tag. The Responsive Embed Tag keeps the chart within the width of the Squarespace column and sets the height to fit the chart.

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.

Related guides

Explore

Embed a chart on another platform

Step by step guides for every website builder and app InstaCharts covers.

See which embed code each platform needs on the embed a chart page.

Make a chart for your Squarespace page

InstaCharts makes data visualization easy, so you can build clear reports without design experience.