WordPress.org

Ready to get started?Download WordPress

Forums

Google Docs (spreadsheet chart) not showing inside a WordPress post (1 post)

  1. pro99
    Member
    Posted 2 years ago #

    Hi all: Google added an easy way to publish spreadsheet charts by cutting and pasting embedded code. I am trying on my blog but for some reason the chart does not display. Here is a test chart code:

    <script type="text​/javascrip​t" src="//aja​x.googleap​is.com/aja​x/static/m​odules/gvi​z/1.0/char​t.js"> {"dataSour​ceUrl":"//​docs.googl​e.com/spre​adsheet/tq​?key=0Aix2​tWUrq3y8dF​dLYUl1RG1Z​OHBaR1d4Nm​J2eWRzdGc&​transpose=​0&headers=​-1&range=C​8%3AD10&gi​d=0&pub=1"​,"options"​:{"title":​"Test better title","ba​ckgroundCo​lor":"#FFF​FFF","lege​nd":"right​","colors"​:["#3366CC​","#DC3912​","#FF9900​","#109618​","#990099​","#0099C6​","#DD4477​","#66AA00​","#B82E2E​","#316395​","#994499​","#22AA99​","#AAAA11​","#6633CC​","#E67300​","#8B0707​","#651067​","#329262​","#5574A6​","#3B3EAC​","#B77322​","#16D620​","#B91383​","#F4359E​","#9C5935​","#A9C413​","#2A778D​","#668D1C​","#BEA413​","#0C5922​","#743411​"],"is3D":​true,"hasL​abelsColum​n":true,"h​Axis":{"ma​xAlternati​on":1},"wi​dth":600,"​height":37​1},"state"​:{},"chart​Type":"Pie​Chart","ch​artName":"​Chart 1"} </script>

    Is there some wrapper code to add before and after, or something else? Thinking that pasting directly in the HTML editor of WordPress should just show the Google Chart?

Topic Closed

This topic has been closed to new replies.

About this Topic