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

ChartVerticalBar.php « Visualization « modules - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a71b1cb66135da5f087e1b35c368c6629e432e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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' );
	}
	
}