WordPress.org

Forums

Google charts (3 posts)

  1. wilddogltd
    Member
    Posted 1 year ago #

    I am pulling about 20 Google charts to client site, but the link to the Google charts keep breaking, requiring me to regenerate the links and re-past all the code...and I have about 20 charts in this page..

    Anyone know what is going on?

    The page is:

    http://wordpress.wilddogworld.com/dashboard/

    An example of the code is:

    <script type="text/javascript" src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js">// <![CDATA[
    {"dataSourceUrl":"//docs.google.com/spreadsheet/tq?key=0AuNOnU_vz7HZdHpncXBRMHBPeWttWGFxSTNRTGVvQkE&transpose=0&headers=1&range=A1%3AG2&gid=0&pub=1","options":{"titleTextStyle":{"bold":true,"color":"#000","fontSize":"12"},"series":{"0":{"color":"#b45f06"},"1":{"color":"#6aa84f"},"3":{"color":"#ff0000"}},"animation":{"duration":500},"width":450,"hAxis":{"useFormatFromData":true,"title":"Number of functional wells and as %","minValue":null,"viewWindow":{"min":null,"max":null},"gridlines":{"count":"3"},"maxValue":null},"vAxes":[{"useFormatFromData":true,"title":"","minValue":null,"viewWindowMode":null,"viewWindow":null,"maxValue":null},{"useFormatFromData":true}],"chartArea":{"height":"61.875%","width":"61.778%","left":"4.889%","top":"18.453%"},"booleanRole":"certainty","title":"Scheme Functionality on Day of Survey","height":320,"legend":"right","isStacked":false,"tooltip":{}},"state":{},"view":{},"isDefaultVisualization":true,"chartType":"BarChart","chartName":"Chart 1"}
    // ]]></script>

    Thansk for any help

  2. wilddogltd
    Member
    Posted 1 year ago #

    OK.

    I can see what has happened, but I am at a loss to explain how it has happened. Some how the code has been wrapped in a

    // <![CDATA[// ]]>

    tag of some kind...what is this and how do I prevent it happening again?

    Thanks again for any help.

  3. hmayaktigranyan
    Member
    Posted 1 year ago #

    hi,
    here is plugin with shortcode http://wordpress.org/plugins/wp-google-charts/

Topic Closed

This topic has been closed to new replies.

About this Topic