Cannot embed Google chart on wordpress.com
-
By all accounts, this is something I should be able to do. This web page, for example, insists that I should be able to embed a Google chart on wordpress.com:
Yet, when I do it, I only get a link pasted on wordpress. Why is this happening and how I can I fix it?
Thanks!
The blog I need help with is: (visible only to logged in users)
-
I am also trying to insert some bar chart in my blog. Word-press does not allow the javascript to be used in the code. If I am coding my page then it must allow, in this way it wont be any unidentified resource.
Please tell us the way, we can insert a bar graph/chart in the wordpress post/page. -
I was able to insert charts and images from Google Drive using something like this:
[googleapps domain="docs" dir="<relative path to chart or image (minus https://docs.google.com/ chunk —e.g., spreadsheets/... instead of https://docs.google.com/spreadsheets/...)>" width="700" height="500" /]
Google gives you code for embedding your charts based on the iframe tag, such as this embeddable code:
<iframe width=”371″ height=”242″ seamless frameborder=”0″ scrolling=”no” src=”full url for sharing from Google spreadsheets“></iframe>
It seems the iframe tag posed security problems to WordPress users sharing the same server, so it is disallowed.
If you’re okay with embedding charts as noninteractive graphics, you can also use something like this on wordpress.com:
<div><img src=”<full url to graphic file>” alt=”” /></div>
You do need to have the graphic somewhere on the web. I found, though, that images stored on Google Drive have strange URLs that don’t work well with the img tag.
I am not an expert on any of this, but hopefully these tips will help you get started or at least point you in the right direction.
-
I have also tried with iframe.
It was creating problem in the beginning, but after adjusting hight and width accordingly in both spreadsheet, where the graph is, and in the page, where I am inserting the graph, it is working fine.
Check @ :
- The topic ‘Cannot embed Google chart on wordpress.com’ is closed to new replies.