This plugin adds a widget to display download statistics based on the Download Counter
plugin on your site. The sidebar widget will show a highly configurable chart based on the
Google Chart API. Furthermore it offers a dashboard widget that summarizes your
downloads, to get information quick at a glance.
The plugin supports following chart types:
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
for detailed explanations for that.
There are several ways to include a chart of your downloads on your site.
[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:
bar_horizontal
, pie
or pie3d
.-1
for auto-sizing.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'); }