Hi, 
I'm starting this thread because I notice there has only been piecemeal 
discussion here about embedding the API in WordPress sites. I have a lot of 
experience with this - I spent the last year creating a subscription 
Wordpress site https://riskyfinance.com which depends heavily on Google 
charts. I used a plugin called Code Embed 
<https://en-gb.wordpress.org/plugins/simple-embed-code/> which lets me 
paste Javascript into my Wordpress posts and it works pretty well, however 
there are a couple of limitations: 

1. If I want multiple charts on a single page, I have to include 
google.load and google.setOnLoadCallback in each chart script, otherwise 
the charts won't work. 
2. If I want multiple charts, I get a red chart draw error if use the 
gstatic loader, hence I am forced to use jsapi (so please don't turn it 
off!)

I am interested in what kind of performance penalty these constraints 
impose on my site, and whether anyone has experience or recommendations for 
doing things in a better way. Changing things incurs developer costs so I 
want to understand the trade offs before doing that. 

I appreciate that Google Visualization staff aren't responsible for how 
their API works in WordPress, but I would point out that WordPress is very 
widely used (25% of sites worldwide use it apparently) so it might be 
useful for the team to look into it and provide some FAQs or 
recommendations. 

Regards,
Nick 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/2e547cfb-1350-47bb-9318-3866a273cbaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to