Title: Download Counter Chart
Author: mmrotzek-1
Published: <strong>November 19, 2009</strong>
Last modified: April 14, 2010

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-downloadcounter-chart.svg)

# Download Counter Chart

 By [mmrotzek-1](https://profiles.wordpress.org/mmrotzek-1/)

[Download](https://downloads.wordpress.org/plugin/wp-downloadcounter-chart.1.3.zip)

 * [Details](https://test.wordpress.org/plugins/wp-downloadcounter-chart/#description)
 * [Reviews](https://test.wordpress.org/plugins/wp-downloadcounter-chart/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/wp-downloadcounter-chart/#installation)
 * [Development](https://test.wordpress.org/plugins/wp-downloadcounter-chart/#developers)

 [Support](https://wordpress.org/support/plugin/wp-downloadcounter-chart/)

## Description

This plugin adds a **widget** to display download statistics based on the [Download Counter](https://wordpress.org/extend/plugins/wp-downloadcounter/)

plugin on your site. The sidebar widget will show a highly configurable chart based
on the [Google Chart API](http://code.google.com/apis/chart/). Furthermore it offers
a **dashboard widget** that summarizes your downloads, to get information quick 
at a glance.

The plugin supports following chart types:

 * Bar (horizontal)
 * Pie
 * Pie 3D

You can include a chart of your downloads on a **page** or in a **post** using the
downloadcounterchart-**_shortcode_**.
 Of course a download chart is includable 
in your **theme**. See [extended documentation](https://wordpress.org/extend/plugins/wp-downloadcounter-chart/other_notes/)
for detailed explanations for that.

### Usage

There are several ways to include a chart of your downloads on your site.

#### Page / Post (Shortcode)

    ```
    [downloadcounterchart chart_type="pie" chart_width="490" chart_height="190" label_color="000000" label_size="11" sqlcondition="" bar_color="0066CC90" bar_height="-1" bg_color="FFFFFF00"]
    ```

Parameters:

 * _chart\_type_ – Type of the chart. Valid values: `bar_horizontal`, `pie` or `
   pie3d`.
 * _chart\_width_ – Width of the chart image in px. May be about the 2.5 times size
   of the height for a pie chart.
 * _chart\_height_ – Width of the chart image in px.
 * _label\_color_ – Hex color value for labels, optional with additional opacity
   value (e.g. 50% black = 00000050).
 * _label\_size_ – Font size of the labels.
 * _sqlcondition_ – Optional SQL where statement, leave blank for all downloads.
 * _bar\_height_ – Bar chart only. You can explicitly set the bar height, but it
   may result in a chart that does not include
    all data, if the chart height is
   not big enough. Recommend to set `-1` for auto-sizing.
 * _bg\_color_ – Background color. Hex color value, optional with additional opacity
   value (e.g. transparent = FFFFFF00)

#### Theme

    ```
    downloadcounterchart_img($chart_type, $chart_width, $chart_height, $label_color = '333333', $label_size = '11', $sqlcondition = '', $bar_color='', $bar_height='', $bg_color='')
    ```

Parameters:

see section above

Example:

    ```
    if (function_exists('downloadcounterchart_img') && class_exists('DownloadCounterChartApi')){
        downloadcounterchart_img(DLC_CHART_PIE, 490, 190, '000000', '11', '', '0066CC', '-1', 'FFFFFF00');
    }
    ```

## Screenshots

[⌊Dashboard widget giving a quick overview of your downloads.⌉⌊Dashboard widget 
giving a quick overview of your downloads.⌉[

Dashboard widget giving a quick overview of your downloads.

[⌊Sidebar widget options to configure the rendered chart to your custom needs.⌉⌊
Sidebar widget options to configure the rendered chart to your custom needs.⌉[

Sidebar widget options to configure the rendered chart to your custom needs.

[⌊Example widget output on your site.⌉⌊Example widget output on your site.⌉[

Example widget output on your site.

[⌊Pie chart in a post.⌉⌊Pie chart in a post.⌉[

Pie chart in a post.

## Installation

_Note: This plugin depends on the [Download Counter](https://wordpress.org/extend/plugins/wp-downloadcounter/)
plugin (version 1.01), so you may need to install it as well._

 1. Upload `wp-downloadcounter-chart.zip` to the `/wp-content/plugins/` directory and
    unzip it. You may also use the install manager of wordpress to get the plugin.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Add the Download Counter Chart widget to a sidebar and edit the options of the 
    widget to your needs. You may simple add the widget to a sidebar and click save
    to setup the widget with default options.
 4. You can enable the Download Counter dashboard widget by activating it in the screen
    options area of the dashboard page.
 5. For usage in your theme or in a page / post see the [extended documentation](https://wordpress.org/extend/plugins/wp-downloadcounter-chart/other_notes/)

## FAQ

none

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Download Counter Chart” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ mmrotzek-1 ](https://profiles.wordpress.org/mmrotzek-1/)

[Translate “Download Counter Chart” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-downloadcounter-chart)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-downloadcounter-chart/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-downloadcounter-chart/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-downloadcounter-chart/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-downloadcounter-chart/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

Planned Features:

 1. I18N

#### 1.2

 * Pie and Pie3d chart types
 * shortcode to include in page/post
 * optimized bar height configuration

#### 1.1

 * full configurable chart
 * redesign of dashboard widget

## Meta

 *  Version **1.2**
 *  Last updated **16 years ago**
 *  Active installations **10+**
 *  WordPress version ** 2.8 or higher **
 *  Tested up to **2.9.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-downloadcounter-chart/)
 * Tags
 * [charts](https://test.wordpress.org/plugins/tags/charts/)[Counter](https://test.wordpress.org/plugins/tags/counter/)
   [google](https://test.wordpress.org/plugins/tags/google/)[sidebar](https://test.wordpress.org/plugins/tags/sidebar/)
   [widget](https://test.wordpress.org/plugins/tags/widget/)
 *  [Advanced View](https://test.wordpress.org/plugins/wp-downloadcounter-chart/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/wp-downloadcounter-chart/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-downloadcounter-chart/reviews/)

## Contributors

 *   [ mmrotzek-1 ](https://profiles.wordpress.org/mmrotzek-1/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-downloadcounter-chart/)