1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\AreaChart; |
4
|
|
|
|
5
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedAnimation; |
6
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedHAxis; |
7
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AdvancedLegend; |
8
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Annotations; |
9
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\AreaOpacityTrait; |
10
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Crosshair; |
11
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\DataOpacityTrait; |
12
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\Explorer; |
13
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\FocusTargetTrait; |
14
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\InterpolateNullsTrait; |
15
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\IsStackedTrait; |
16
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\LineOptions; |
17
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\OrientationTrait; |
18
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\ReverseCategoriesTrait; |
19
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\SelectionModeTrait; |
20
|
|
|
use CMEN\GoogleChartsBundle\GoogleCharts\Options\VAxesTrait; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @author Christophe Meneses |
24
|
|
|
*/ |
25
|
|
|
class AreaChartOptions extends LineOptions |
26
|
|
|
{ |
27
|
|
|
/** |
28
|
|
|
* @var AdvancedAnimation |
29
|
|
|
*/ |
30
|
|
|
protected $animation; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var Annotations |
34
|
|
|
*/ |
35
|
|
|
protected $annotations; |
36
|
|
|
|
37
|
|
|
use AreaOpacityTrait; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var Crosshair |
41
|
|
|
*/ |
42
|
|
|
protected $crosshair; |
43
|
|
|
|
44
|
|
|
use DataOpacityTrait; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var Explorer |
48
|
|
|
*/ |
49
|
|
|
protected $explorer; |
50
|
|
|
|
51
|
|
|
use FocusTargetTrait; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var AdvancedHAxis |
55
|
|
|
*/ |
56
|
|
|
protected $hAxis; |
57
|
|
|
|
58
|
|
|
use InterpolateNullsTrait; |
59
|
|
|
|
60
|
|
|
use IsStackedTrait; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @var AdvancedLegend |
64
|
|
|
*/ |
65
|
|
|
protected $legend; |
66
|
|
|
|
67
|
|
|
use OrientationTrait; |
68
|
|
|
|
69
|
|
|
use ReverseCategoriesTrait; |
70
|
|
|
|
71
|
|
|
use SelectionModeTrait; |
72
|
|
|
|
73
|
|
|
use VAxesTrait; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* AreaChartOptions constructor. |
77
|
|
|
*/ |
78
|
|
|
public function __construct() |
79
|
|
|
{ |
80
|
|
|
parent::__construct(); |
81
|
|
|
|
82
|
|
|
$this->animation = new AdvancedAnimation(); |
83
|
|
|
$this->annotations = new Annotations(); |
84
|
|
|
$this->crosshair = new Crosshair(); |
85
|
|
|
$this->explorer = new Explorer(); |
86
|
|
|
$this->hAxis = new AdvancedHAxis(); |
87
|
|
|
$this->legend = new AdvancedLegend(); |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @return AdvancedAnimation |
92
|
|
|
*/ |
93
|
|
|
public function getAnimation() |
94
|
|
|
{ |
95
|
|
|
return $this->animation; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @return Annotations |
100
|
|
|
*/ |
101
|
|
|
public function getAnnotations() |
102
|
|
|
{ |
103
|
|
|
return $this->annotations; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return Crosshair |
108
|
|
|
*/ |
109
|
|
|
public function getCrosshair() |
110
|
|
|
{ |
111
|
|
|
return $this->crosshair; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @return Explorer |
116
|
|
|
*/ |
117
|
|
|
public function getExplorer() |
118
|
|
|
{ |
119
|
|
|
return $this->explorer; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @return AdvancedHAxis |
124
|
|
|
*/ |
125
|
|
|
public function getHAxis() |
126
|
|
|
{ |
127
|
|
|
return $this->hAxis; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @return AdvancedLegend |
132
|
|
|
*/ |
133
|
|
|
public function getLegend() |
134
|
|
|
{ |
135
|
|
|
return $this->legend; |
136
|
|
|
} |
137
|
|
|
} |
138
|
|
|
|