Embed a Chart in Bubble
Add charts and dashboards to a no-code Bubble app
Bubble apps often need a reporting screen for customers or admins. InstaCharts charts and dashboards go into an HTML element, so a Bubble app can show interactive charts built from a spreadsheet, a Google Sheet or rows sent through Zapier.
- Live and interactive
- Updates when your data changes
- Free plan available
Subscription Plan Mix
Live
A live donut chart embedded with InstaCharts, the kind of chart you can add to Bubble. Hover over the chart to see each value.
Open TemplateAt a glance
What you need to embed a chart in Bubble
An InstaCharts chart shared publicly, its Responsive Embed Tag, and a HTML element on your Bubble page.
Code to copy
Responsive Embed Tag
Where it goes in Bubble
HTML element
Updates
Automatic when the chart or its data changes
About Bubble
What is Bubble?
Bubble is a no-code platform for building web applications, founded in 2012 and based in New York. Founders and teams use its visual editor, built-in database and workflows to build marketplaces, internal tools, client portals and SaaS products.
Visit bubble.ioChart ideas
Charts that work well in Bubble
Start from a template with sample data, then replace the rows with your own numbers and embed the chart in Bubble.
Subscription plan mix
Show admins how customers split across plans in a SaaS dashboard.
See the donut chart templateSupport volume
Map support tickets by day and hour in an internal tool.
See the heatmap templateFeature requests
Chart feature priorities by customer segment on a roadmap page.
See the grouped bar chart 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 Bubble
Add the chart to Bubble
Paste the Responsive Embed Tag into a HTML element.
- 4
Step 4
Add an HTML element
In the Bubble editor, open the Design tab and drag an HTML element from the Visual elements list onto the page.
- 5
Step 5
Paste the Embed Tag
Double click the element to open its property editor and paste the Responsive Embed Tag from InstaCharts into the HTML field on the Appearance tab.
- 6
Step 6
Preview the app
Click Preview to run the app and check the chart. Set the element's height to fit the chart in the Layout tab.
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 Bubble
- Bubble can insert dynamic data into the HTML field. Store each user's or record's Embed URL in a field and insert it as the iframe's src to show a different chart on each page.
- Dashboards embed the same way. Copy the Embed Tag from the dashboard's Share dialog to show several charts, KPIs and tables in one element.
- Shared charts load from a public link. On paid plans, turn on Domain Whitelisting with your app's domain in the Settings tab of the Share dialog.
FAQ
Embedding charts in Bubble: FAQ
Answers to common questions about adding InstaCharts charts to Bubble.
Can I show a different chart to each Bubble user?
Yes. Save each user's chart Embed URL in a field on the User type, then insert that field as dynamic data into the iframe's src in the HTML element.
Can I send data from Bubble to InstaCharts?
Yes, through Zapier. The InstaCharts Zapier app adds data rows to a sheet, and charts built on that sheet update with each new row.
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 Webflow
- Embed a Chart in Wix
- Embed a Chart in Squarespace
- Embed a Chart in Ghost
- Embed a Chart in Shopify
- 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 Bubble page
InstaCharts makes data visualization easy, so you can build clear reports without design experience.