1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\Histogram; |
4
|
|
|
|
5
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedAnimation; |
6
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedChartOptions; |
7
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedLegend; |
8
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Bar; |
9
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\DataOpacityTrait; |
10
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\FocusTargetTrait; |
11
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\InterpolateNullsTrait; |
12
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\IsStackedTrait; |
13
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\MediumTooltip; |
14
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\OrientationTrait; |
15
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ReverseCategoriesTrait; |
16
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\VAxesTrait; |
17
|
|
|
|
18
|
|
|
/** |
19
|
|
|
* @author Christophe Meneses |
20
|
|
|
*/ |
21
|
|
|
class HistogramOptions extends AdvancedChartOptions |
22
|
|
|
{ |
23
|
|
|
use DataOpacityTrait; |
24
|
|
|
|
25
|
|
|
use FocusTargetTrait; |
26
|
|
|
|
27
|
|
|
use InterpolateNullsTrait; |
28
|
|
|
|
29
|
|
|
use IsStackedTrait; |
30
|
|
|
|
31
|
|
|
use OrientationTrait; |
32
|
|
|
|
33
|
|
|
use ReverseCategoriesTrait; |
34
|
|
|
|
35
|
|
|
use VAxesTrait; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var AdvancedAnimation |
39
|
|
|
*/ |
40
|
|
|
protected $animation; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var Bar |
44
|
|
|
*/ |
45
|
|
|
protected $bar; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var HAxis |
49
|
|
|
*/ |
50
|
|
|
protected $hAxis; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var Histogram |
54
|
|
|
*/ |
55
|
|
|
protected $histogram; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var AdvancedLegend |
59
|
|
|
*/ |
60
|
|
|
protected $legend; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @var MediumTooltip |
64
|
|
|
*/ |
65
|
|
|
protected $tooltip; |
66
|
|
|
|
67
|
|
|
public function __construct() |
68
|
|
|
{ |
69
|
|
|
parent::__construct(); |
70
|
|
|
|
71
|
|
|
$this->animation = new AdvancedAnimation(); |
72
|
|
|
$this->bar = new Bar(); |
73
|
|
|
$this->histogram = new Histogram(); |
74
|
|
|
$this->hAxis = new HAxis(); |
75
|
|
|
$this->legend = new AdvancedLegend(); |
76
|
|
|
$this->tooltip = new MediumTooltip(); |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
public function getAnimation(): AdvancedAnimation |
80
|
|
|
{ |
81
|
|
|
return $this->animation; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
public function getBar(): Bar |
85
|
|
|
{ |
86
|
|
|
return $this->bar; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
public function getHistogram(): Histogram |
90
|
|
|
{ |
91
|
|
|
return $this->histogram; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
public function getHAxis(): HAxis |
95
|
|
|
{ |
96
|
|
|
return $this->hAxis; |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
public function getLegend(): AdvancedLegend |
100
|
|
|
{ |
101
|
|
|
return $this->legend; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
public function getTooltip(): MediumTooltip |
105
|
|
|
{ |
106
|
|
|
return $this->tooltip; |
107
|
|
|
} |
108
|
|
|
} |
109
|
|
|
|