{"id":3796,"date":"2008-10-07T02:07:58","date_gmt":"2008-10-07T02:07:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/tally-graph\/"},"modified":"2022-10-16T03:43:24","modified_gmt":"2022-10-16T03:43:24","slug":"tally-graph","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/tally-graph\/","author":412,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.4.4","stable_tag":"0.4.4","tested":"6.0.11","requires":"2.5.1","requires_php":"","requires_plugins":"","header_name":"Tally Graph","header_author":"Dylan Kuhn","header_description":"","assets_banners_color":"","last_updated":"2022-10-16 03:43:24","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/tally-graph\/","header_author_uri":"http:\/\/www.cyberhobo.net\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":10954,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1":{"tag":"0.1","author":"cyberhobo","date":"2015-05-27 21:10:22"},"0.1.1":{"tag":"0.1.1","author":"cyberhobo","date":"2008-10-07 13:08:31"},"0.2":{"tag":"0.2","author":"cyberhobo","date":"2008-12-29 06:00:52"},"0.3":{"tag":"0.3","author":"cyberhobo","date":"2009-03-20 17:12:03"},"0.3.1":{"tag":"0.3.1","author":"cyberhobo","date":"2009-03-20 22:09:06"},"0.3.2":{"tag":"0.3.2","author":"cyberhobo","date":"2009-04-01 18:40:07"},"0.3.3":{"tag":"0.3.3","author":"cyberhobo","date":"2010-02-09 14:47:29"},"0.4.0":{"tag":"0.4.0","author":"cyberhobo","date":"2010-09-13 13:07:03"},"0.4.1":{"tag":"0.4.1","author":"cyberhobo","date":"2012-04-16 04:03:59"},"0.4.2":{"tag":"0.4.2","author":"cyberhobo","date":"2013-06-27 17:43:26"},"0.4.3":{"tag":"0.4.3","author":"cyberhobo","date":"2022-10-16 03:31:23"},"0.4.4":{"tag":"0.4.4","author":"cyberhobo","date":"2022-10-16 03:43:24"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.1.1","0.2","0.3","0.3.1","0.3.2","0.3.3","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2799479,"resolution":"1","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2799479,"resolution":"3","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2799479,"resolution":"2","location":"plugin"}},"screenshots":{"1":"Some examples of custom fields attached to a post. They'll be tallied by the\npost date.","2":"Some different kinds tally graphs in a page.","3":"Some monthly tally graphs in a sidebar."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4108,150,4109,12513,18208],"plugin_category":[],"plugin_contributors":[79890],"plugin_business_model":[],"class_list":["post-3796","plugin","type-plugin","status-publish","hentry","plugin_tags-charts","plugin_tags-google","plugin_tags-graphs","plugin_tags-mashup","plugin_tags-visualization","plugin_contributors-cyberhobo","plugin_committers-cyberhobo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/tally-graph.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/tally-graph\/trunk\/screenshot-1.png?rev=2799479","caption":"Some examples of custom fields attached to a post. They'll be tallied by the\npost date."},{"src":"https:\/\/ps.w.org\/tally-graph\/trunk\/screenshot-2.png?rev=2799479","caption":"Some different kinds tally graphs in a page."},{"src":"https:\/\/ps.w.org\/tally-graph\/trunk\/screenshot-3.png?rev=2799479","caption":"Some monthly tally graphs in a sidebar."}],"raw_content":"<!--section=description-->\n<p>No recent updates? This plugin once went 9 years without an update. It probably works!<\/p>\n\n<p>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.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Tallies data from any numeric value you enter under \"Custom Field\" in the WordPress post editor.<\/li>\n<li>Provides daily, weekly, monthly, or yearly tallies.<\/li>\n<li>Tally either data that accumulates, like donations, or just track a number like current weight.<\/li>\n<li>You can make basic use of Tally Graph without any knowledge of the Google Chart API, but you can also use nearly any <a href=\"https:\/\/developers.google.com\/chart\/image\/docs\/chart_params\">Google Chart API parameters<\/a>.<\/li>\n<li>Rarely requires upgrading<\/li>\n<\/ul>\n\n<h4>Limitations<\/h4>\n\n<p>Tally Graph is easier to use than direct Google Chart API calls, but may not be what you need if:<\/p>\n\n<ul>\n<li>You're looking for a point-and-click full graphical user interface <\/li>\n<li>A post for each data point is too cumbersome for your graphs<\/li>\n<li>You need to graph time intervals shorter than a day<\/li>\n<\/ul>\n\n<p>Move on to the Other Notes tab for details.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>You'll want to do two things to use Tally Graph:<\/p>\n\n<ul>\n<li><em>Enter Data<\/em> - put the numbers you want to track in a WordPress custom field.<\/li>\n<li><em>Visualize Data<\/em> - tally and plot your numbers over time in a Google Chart.<\/li>\n<\/ul>\n\n<h4>Enter Data<\/h4>\n\n<p>Tally Graph looks in WordPress <a href=\"http:\/\/codex.wordpress.org\/Using_Custom_Fields\">custom fields<\/a> 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.<\/p>\n\n<p>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.<\/p>\n\n<h4>Visualize Data<\/h4>\n\n<p>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:<\/p>\n\n<pre><code>[tally_graph key=\"Marbles Lost\"]\n<\/code><\/pre>\n\n<p>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.<\/p>\n\n<pre><code>[tally_graph key=\"Marbles Lost\" tally_interval=\"day\" interval_count=\"14\" \nto_date=\"2008-05-01\" chs=\"300x220\" chtt=\"Marbles Lost\"]\n<\/code><\/pre>\n\n<p>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.<\/p>\n\n<p>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 <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\">template tag<\/a>. Aside from the different format, it works the same:<\/p>\n\n<pre><code>&lt;?php echo tally_graph('key=Marbles Lost&amp;tally_interval=week&amp;interval_count=4'); ?&gt;\n<\/code><\/pre>\n\n<p>That makes a nice sidebar graph of marbles lost over 4 weeks, up to the date of the last post displayed.<\/p>\n\n<h3>Tag Reference<\/h3>\n\n<p>Read the Usage section first.<\/p>\n\n<p>You type a tag directly into a post or page using WordPress <a href=\"http:\/\/codex.wordpress.org\/Shortcode_API\">shortcode format<\/a>. To put a tag in a theme template, use <a href=\"http:\/\/codex.wordpress.org\/Template_Tags\/How_to_Pass_Tag_Parameters#Tags_with_query-string-style_parameters\">template tag with querystring parameters<\/a>. Both formats take the same parameters listed below.<\/p>\n\n<h4>tally_graph<\/h4>\n\n<p>This tag is replaced with an image created with the Google Chart API.<\/p>\n\n<p>Shortcode: <code>[tally_graph key=\"My Key\"]<\/code><\/p>\n\n<p>Template Tag: <code>&lt;?php echo tally_graph('key=My Key'); ?&gt;<\/code><\/p>\n\n<p>Parameters:<\/p>\n\n<ul>\n<li><p><strong>key<\/strong> - Required.<\/p>\n\n<p>The key name of the custom field to use for the graph.  Multiple keys can be included, separated by a comma.<\/p><\/li>\n<li><p><em>tally_interval<\/em><\/p>\n\n<p>valid values: <code>day<\/code>, <code>week<\/code>, <code>month<\/code>, or <code>year<\/code>.  default is <code>month<\/code>.<\/p>\n\n<p>this is the interval of time over which the custom field values are tallied.<\/p><\/li>\n<li><p><em>label_interval<\/em><\/p>\n\n<p>valid values: <code>day<\/code>, <code>week<\/code>, <code>month<\/code>, or <code>year<\/code>.  default is tally_interval.<\/p>\n\n<p>this is the interval of time that is labeled at the bottom of the graph<\/p><\/li>\n<li><p><em>interval_count<\/em><\/p>\n\n<p>Default is <code>6<\/code>.<\/p>\n\n<p>This is the number of intervals to include in the graph.<\/p><\/li>\n<li><p><em>to_date<\/em><\/p>\n\n<p>Valid values include several date formats, like <code>2007-10-31<\/code>, <code>October 31, 2007<\/code>, <code>today<\/code>, or <code>yesterday<\/code>. Default is the date of the most recent post displayed.<\/p>\n\n<p>The graph is constructed backward in time from this date.<\/p><\/li>\n<li><p><em>method<\/em><\/p>\n\n<p>Valid values are <code>cumulative<\/code>, <code>track<\/code>, or <code>delta<\/code>. Default is <code>cumulative<\/code>.<\/p>\n\n<p>The <code>cumulative<\/code> method totals custom field values for each interval.<\/p>\n\n<p>The <code>track<\/code> 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.<\/p>\n\n<p>The <code>delta<\/code> 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.<\/p><\/li>\n<li><p><em>no_cache<\/em><\/p>\n\n<p>Valid values: <code>true<\/code> or <code>false<\/code>. Default is <code>false<\/code>.<\/p>\n\n<p>Turn off URL caching. Rarely used - only when the same graph appears more than once on a page.<\/p><\/li>\n<li><p><em>chs<\/em><\/p>\n\n<p>Default is <code>200x200<\/code>.<\/p>\n\n<p>This is a <a href=\"https:\/\/developers.google.com\/chart\/image\/docs\/chart_params\">Google Chart API<\/a> parameter, the chart size in pixels.<\/p><\/li>\n<li><p><em>cht<\/em><\/p>\n\n<p>Default is <code>bvs<\/code>.<\/p>\n\n<p>This is a <a href=\"https:\/\/developers.google.com\/chart\/image\/docs\/chart_params\">Google Chart API<\/a> parameter, the chart type. <code>bvs<\/code> is a vertical bar chart.<\/p><\/li>\n<li><p>Any other <a href=\"https:\/\/developers.google.com\/chart\/image\/docs\/chart_params\">Google Chart API parameters<\/a> are passed along, so you can go nuts with all the options. You'll probably use at least <code>chtt<\/code>, the chart title.<\/p><\/li>\n<\/ul>\n\n<h4>tally_graph_url<\/h4>\n\n<p>If you want to create your own image tag in a template, this tag will give you only the URL for the chart.<\/p>\n\n<p>Template Tag: <code>&lt;?php echo tally_graph_url(); ?&gt;<\/code><\/p>\n\n<p>Parameters are the same as the <code>tally_graph<\/code> tag.<\/p>\n\n<!--section=installation-->\n<p>Install using any [standard plugin installation method][http:\/\/codex.wordpress.org\/Managing_Plugins#Installing_Plugins].<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id='do%20i%20have%20to%20know%20about%20this%20google%20api%20thing%2C%20or%20anything%20else%20techy%3F'><h3>Do I have to know about this Google API thing, or anything else techy?<\/h3><\/dt>\n<dd><p>You can get by with very little techyness, just WordPress custom fields and shortcodes. They're really not bad - look over the Usage section under Other Notes. It's not a point-and-click interface either, but it is easier than building your charts from scratch.<\/p>\n\n<p>If you do want to get adventurous, you can have fancier charts in more places.<\/p><\/dd>\n<dt id='are%20there%20any%20examples%3F'><h3>Are there any examples?<\/h3><\/dt>\n<dd><p>Check the <a href=\"http:\/\/wordpress.org\/tags\/tally-graph?forum_id=10\">forum<\/a>, there's at least one <a href=\"http:\/\/wordpress.org\/support\/topic\/plugin-tally-graph-example-implementation-fishing-stats?replies=1\">oldie-but-goodie<\/a>.<\/p><\/dd>\n<dt id='where%20are%20the%20custom%20fields%3F'><h3>Where are the custom fields?<\/h3><\/dt>\n<dd><p>As of WordPress 3.3 you must check a box in the \"Screen Options\" area in the upper right of the post editor page to make the custom field interface appear.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.4.4<\/h4>\n\n<ul>\n<li>Security improvements<\/li>\n<\/ul>\n\n<h4>0.4.3<\/h4>\n\n<ul>\n<li>Support for PHP 7+<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>New feature: the label_interval parameter<\/li>\n<\/ul>","raw_excerpt":"Add Google charts and graphs to your WordPress site based on tallies of any numeric custom field over time. Visualize progress toward any goal.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/3796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=3796"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/cyberhobo"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=3796"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=3796"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=3796"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=3796"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=3796"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=3796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}