Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'modules/Visualization/ChartVerticalBar.php')
-rw-r--r--modules/Visualization/ChartVerticalBar.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/modules/Visualization/ChartVerticalBar.php b/modules/Visualization/ChartVerticalBar.php
new file mode 100644
index 0000000000..0a71b1cb66
--- /dev/null
+++ b/modules/Visualization/ChartVerticalBar.php
@@ -0,0 +1,26 @@
+<?php
+require_once "Visualization/Chart.php";
+class Piwik_Visualization_ChartVerticalBar extends Piwik_Visualization_Chart
+{
+ function getDefaultLimit()
+ {
+ return 10;
+ }
+ function customizeGraph()
+ {
+ $this->prepareData();
+// $this->title( 'Bar Chart', '{font-size: 20px;}' );
+ $this->set_data( $this->arrayData );
+ $this->set_x_labels( $this->arrayLabel );
+ $this->set_x_label_style( 10, '#9933CC', 0, 2 );
+ // and tick every second value:
+ $this->set_x_axis_steps( 2 );
+ $this->set_y_max( $this->maxData );
+ $this->y_label_steps( 3 );
+
+ $this->bar_filled( 50, '#9933CC', '#8010A0', 'visits', 10 );
+ $this->set_tool_tip( '#x_label# <br>#val# #key# ' );
+// $this->set_y_legend( 'Open Flash Chart', 12, '#736AFF' );
+ }
+
+} \ No newline at end of file