WordPress plugin intelligence profile

Tally Graph

Add Google charts and graphs to your WordPress site based on tallies of any numeric custom field over time. Visualize progress toward any goal.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.0
Current version0.4.4
WordPress coverageTested up to WordPress 6.0
Minimum stackWP 2.5.1 · PHP —
Directory statusactive
Last directory update16 Oct 20224y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Tally Graph version 0.4.4 as active, updated 4y ago and tested up to WordPress 6.0.

Overview

About this plugin

No recent updates? This plugin once went 9 years without an update. It probably works!

WordPress already lets you attach time-based custom data to posts. Tally Graph lets you plot that data over time using the Google Chart API. Any numeric data will work, whether it is related to athletic training, profits, environmental footprint, weight loss, or any topic you care about.

Features

  • Tallies data from any numeric value you enter under “Custom Field” in the WordPress post editor.
  • Provides daily, weekly, monthly, or yearly tallies.
  • Tally either data that accumulates, like donations, or just track a number like current weight.
  • You can make basic use of Tally Graph without any knowledge of the Google Chart API, but you can also use nearly any Google Chart API parameters.
  • Rarely requires upgrading

Limitations

Tally Graph is easier to use than direct Google Chart API calls, but may not be what you need if:

  • You’re looking for a point-and-click full graphical user interface
  • A post for each data point is too cumbersome for your graphs
  • You need to graph time intervals shorter than a day

Move on to the Other Notes tab for details.

Usage

You’ll want to do two things to use Tally Graph:

  • Enter Data – put the numbers you want to track in a WordPress custom field.
  • Visualize Data – tally and plot your numbers over time in a Google Chart.

Enter Data

Tally Graph looks in WordPress custom fields for data to pass on to the Google Chart API. As indicated by those instructions, a custom field consists of a key and value. You’ll make up the key.

The value must be some kind of number. In the next step you’ll use the key name to tell Tally Graph which custom field data to use.

If you want to enter data without publishing a post, just put the custom fields on a dummy post and check “Keep this post private”. You may still want to edit the post date.

Visualize Data

Say you have a bunch of posts with the custom field key “Marbles Lost”. You may feel like you’ve been losing your marbles faster recently, but you’re not sure, so you write a new post (or a page) containing this shortcode:

[tally_graph key="Marbles Lost"]

The Tally Graph plugin will replace that shortcode with a bar chart of how many marbles you’ve lost each month for the past six months. Those are default settings you can change with some more parameters.

[tally_graph key="Marbles Lost" tally_interval="day" interval_count="14" to_date="2008-05-01" chs="300x220" chtt="Marbles Lost"]

That shortcode results in a 300 pixel wide, 220 pixel high graph of your marbles lost in the 14 days prior to May 1st, 2008.

Shortcodes are great in post and page content, but if you want a graph somewhere else on your site, like in a sidebar, you’ll need a template tag. Aside from the different format, it works the same:

>

That makes a nice sidebar graph of marbles lost over 4 weeks, up to the date of the last post displayed.

Tag Reference

Read the Usage section first.

You type a tag directly into a post or page using WordPress shortcode format. To put a tag in a theme template, use template tag with querystring parameters. Both formats take the same parameters listed below.

tally_graph

This tag is replaced with an image created with the Google Chart API.

Shortcode: [tally_graph key="My Key"]

>

Parameters:

-

key – Required.

The key name of the custom field to use for the graph. Multiple keys can be included, separated by a comma.

-

tally_interval

valid values: day, week, month, or year. default is month.

this is the interval of time over which the custom field values are tallied.

-

label_interval

valid values: day, week, month, or year. default is tally_interval.

this is the interval of time that is labeled at the bottom of the graph

-

interval_count

Default is 6.

This is the number of intervals to include in the graph.

-

to_date

Valid values include several date formats, like 2007-10-31, October 31, 2007, today, or yesterday. Default is the date of the most recent post displayed.

The graph is constructed backward in time from this date.

-

method

Valid values are cumulative, track, or delta. Default is cumulative.

The cumulative method totals custom field values for each interval.

The track method doesn’t total field values, but fills in time gaps between values. This is good for tracking numbers like current weight that you just want to track without tallying.

The delta method computes a running total, adding changes to the total for each interval. This can be used for data where only losses and gains are entered. One entry is necessary to establish a starting value, then gains and losses are recorded as positive and negative values.

-

no_cache

Valid values: true or false. Default is false.

Turn off URL caching. Rarely used – only when the same graph appears more than once on a page.

-

chs

Default is 200x200.

This is a Google Chart API parameter, the chart size in pixels.

-

cht

Default is bvs.

This is a Google Chart API parameter, the chart type. bvs is a vertical bar chart.

-

Any other Google Chart API parameters are passed along, so you can go nuts with all the options. You’ll probably use at least chtt, the chart title.

tally_graph_url

If you want to create your own image tag in a template, this tag will give you only the URL for the chart.

>

Parameters are the same as the tally_graph tag.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • charts
  • google
  • graphs
  • mashup
  • visualization
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.0
Minimum requirementsWordPress 2.5.1 · PHP not listed
Update activity16 Oct 20224y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.