# Google Charts HTML embed problem

**URL:** <https://forum.bubble.io/t/google-charts-html-embed-problem/132500>\
**Category:** Need help\
**Created:** [January 25, 2021, 4:31pm UTC](https://forum.bubble.io/t/google-charts-html-embed-problem/132500 "2021-01-25T16:31:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranchdev](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@ranchdev](https://forum.bubble.io/u/ranchdev)\
**Post date:** [January 25, 2021, 4:31pm UTC](https://forum.bubble.io/t/google-charts-html-embed-problem/132500/1 "2021-01-25T16:31:11Z")

</div>

Does anyone know why Google Chart html elements don’t seem to work? I am just copying directly off the google chart examples that google provides. A preview of the Chart shows up in the design editor, but does not show up when the page is previewed. Instead it creates an error. I am guessing it has something to do with not having the Google script not being properly defined. Any ideas?

Here is an example. There is only one html element on the index page. It is a Google Charts script copied directly off the Google Charts documentation. A preview of the chart is shown in the design editor, but when previewing or running the app it does not show the chart.

> **[Bubble Editor - Google-scripts](https://bubble.io/page?name=index&id=google-scripts&tab=tabs-1)**
>
> Build stuff without code and launch a startup without a tech-cofounder! Bubble is a visual programing language. Instead of typing code, use a visual editor to build applications.

---

<div class="post-metadata">

**Author:** ![ranchdev](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@ranchdev](https://forum.bubble.io/u/ranchdev)\
**Post date:** [January 26, 2021, 1:53am UTC](https://forum.bubble.io/t/google-charts-html-embed-problem/132500/2 "2021-01-26T01:53:04Z")

</div>

I figured out that the charts will display if I put them within an iframe. Not sure why.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 5, 2021, 4:31pm UTC](https://forum.bubble.io/t/google-charts-html-embed-problem/132500/3 "2021-04-05T16:31:15Z")

</div>

Closed on April 5, 2021, 4:31pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
