Anyone tried embedding Google Charts within Confluence?
I encountered a strange scenario where I embed a working code below within the html macro. It works in preview mode and the saved page, but will always throw error "undefined is not a function" during normal page view.
Thanks in advance.
Yeh - this in on our roadmap for the AppFusions' Google Docs to Confluence (and JIRA) connector.
If anyone else wants this, do let us know at email@example.com
It hasn't raised in priority that much - but we'll get to it..
You might want to consider the gvCharts jQuery plugin if you want to reuse your code.
It'll take an HTML table and convert it into a Google Chart. It would be a bit more flexible if you want to roll this into a plugin at some stage. Here's a demo.
I used the Google Charts API and embedded it into the HTML macro as follows:
<img style="-webkit-user-select: none" src="https://chart.googleapis.com/chart?cht=p&chs=380x200&chd=t:41,55,4&chl=41%|55%|4%&chdl=Cash|Credit_Card|Check&chco=26AD21|1D82C4|F0A016">
And it works perfectly fine.