This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Google Charts

Description

This is a plugin to add Google Charts to your WordPress site. It currently ONLY supports line and sparkline charts. More to come soon!

Usage

Call the function like so: google_charts(“w=400&h=200&type=lc&class=chartoverview&xt=x,y&yfull=1”,array(‘data’=>$click_array,’dates’=>$dates))

Variable #1:
w – Width in Pixels for the chart
h – Height in Pixels for the chart
type – Line Chart (lc) or Sparkline (ls) are only supported
class – The class to apply to the image (optional)
xt – Set to (x,y) for Line Chart or Sparklines
yfull – Set to (1) to show every value passed, Set to (0) to show only the first and last value passed (as labels)

Variable #2:
array variable #1 – This is the data to pass for the Y axis, it has to be named ‘data’
array variable #2 – This is the data to pass for the X axis, it has to be named ‘dates’ (but values don’t have to be a date)

Installation

  1. Unpack the entire contents of this plugin zip file into your wp-content/plugins/ folder locally
  2. Upload to your site
  3. Navigate to wp-admin/plugins.php on your site (your WP plugin page)
  4. Activate this plugin

OR you can just install it with WordPress by going to Plugins >> Add New >> and type Google Charts

Contributors & Developers

“Google Charts” is open source software. The following people have contributed to this plugin.

Contributors