summaryrefslogtreecommitdiff
path: root/usage_chart.php
diff options
context:
space:
mode:
authorbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 05:05:49 +0000
committerbitweaver.org <bitweaver@users.sourceforge.net>2005-06-19 05:05:49 +0000
commit46f830dad39e14252870dac7955f2b5d106dee64 (patch)
treec746a79a1c17365db74bd7ce1f46b90c3a7caa74 /usage_chart.php
downloadstats-46f830dad39e14252870dac7955f2b5d106dee64.tar.gz
stats-46f830dad39e14252870dac7955f2b5d106dee64.tar.bz2
stats-46f830dad39e14252870dac7955f2b5d106dee64.zip
IMPORT TikiPro CLYDE FINAL
Diffstat (limited to 'usage_chart.php')
-rw-r--r--usage_chart.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/usage_chart.php b/usage_chart.php
new file mode 100644
index 0000000..1a665c7
--- /dev/null
+++ b/usage_chart.php
@@ -0,0 +1,33 @@
+<?php
+
+// $Header: /cvsroot/bitweaver/_bit_stats/usage_chart.php,v 1.1 2005/06/19 05:05:49 bitweaver Exp $
+
+// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
+// All Rights Reserved. See copyright.txt for details and a complete list of authors.
+// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
+
+require_once( '../bit_setup_inc.php' );
+require_once (STATS_PKG_PATH."stats_lib.php");
+//Include the code
+require (UTIL_PKG_PATH."phplot.php");
+
+
+if ($feature_stats != 'y') {
+ die;
+}
+
+if ($bit_p_view_stats != 'y') {
+ die;
+}
+
+//Define the object
+$graph = new PHPlot;
+//Set some data
+$example_data = $statslib->get_usage_chart_data();
+$graph->SetDataValues($example_data);
+$graph->SetPlotType('bars');
+//$graph->SetPlotType('lines');
+//Draw it
+$graph->DrawGraph();
+
+?>