How to: Use the Charts API instead of Image charts
-
As I’m sure you already know, the “straight to image” Google Chart API is deprecated.
So a switch to the newer API in the next update, would be Awesome ??In the meantime, here’s how you can switch to it now, without modifying the plugin at all (have a look at the screenshot to get an idea how it works).
A small warning: I’ve only tested this on the default settings, so this might not work for Everyone.
1. First, assuming you know how to modify your files, add the code in this file to
functions.php
: gad-replace-chart_functions.phpThat adds the javascript for the Google API, and a link to
gad-replace-chart.js
2. Upload gad-replace-chart.js to
/<THEME-FOLDER>/js/gad-replace-chart.js
3. Check out your Dashboard!
https://www.ads-software.com/extend/plugins/google-analytics-dashboard/
- The topic ‘How to: Use the Charts API instead of Image charts’ is closed to new replies.