-
Notifications
You must be signed in to change notification settings - Fork 17
/
TreemapConfig.php
46 lines (38 loc) · 1.22 KB
/
TreemapConfig.php
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\TreemapVisualization;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph\Config as GraphConfig;
/**
* DataTable Visualization that derives from HtmlTable and sets show_extra_columns to true.
*/
class TreemapConfig extends GraphConfig
{
/**
* Controls whether the treemap nodes should be colored based on the evolution percent of
* individual metrics, or not. If false, the jqPlot pie graph's series colors are used to
* randomly color different nodes.
*
* Default value: true
*/
public $show_evolution_values = true;
public function __construct()
{
parent::__construct();
if (empty($this->columns_to_display)) {
$this->setDefaultColumnsToDisplay(array('nb_visits'), false, false);
}
$this->allow_multi_select_series_picker = false;
$this->addPropertiesThatShouldBeAvailableClientSide(array(
'filter_offset',
'max_graph_elements',
'show_evolution_values',
'subtable_controller_action'
));
}
}