1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* This file is part of the highcharts-bundle package. |
5
|
|
|
* |
6
|
|
|
* (c) 2017 WEBEWEB |
7
|
|
|
* |
8
|
|
|
* For the full copyright and license information, please view the LICENSE |
9
|
|
|
* file that was distributed with this source code. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
namespace WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange; |
13
|
|
|
|
14
|
|
|
use JsonSerializable; |
15
|
|
|
use WBW\Library\Core\Utility\Argument\ArrayUtility; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* Highcharts data labels. |
19
|
|
|
* |
20
|
|
|
* @author webeweb <https://github.com/webeweb/> |
21
|
|
|
* @package WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange |
22
|
|
|
* @version 5.0.14 |
23
|
|
|
* @final |
24
|
|
|
*/ |
25
|
|
|
final class HighchartsDataLabels implements JsonSerializable { |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* Align. |
29
|
|
|
* |
30
|
|
|
* @var string |
31
|
|
|
*/ |
32
|
|
|
private $align = "center"; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Allow overlap. |
36
|
|
|
* |
37
|
|
|
* @var boolean |
38
|
|
|
* @since 4.1.0 |
39
|
|
|
*/ |
40
|
|
|
private $allowOverlap = false; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* Background color. |
44
|
|
|
* |
45
|
|
|
* @var string |
46
|
|
|
* @since 2.2.1 |
47
|
|
|
*/ |
48
|
|
|
private $backgroundColor; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* Border color. |
52
|
|
|
* |
53
|
|
|
* @var string |
54
|
|
|
* @since 2.2.1 |
55
|
|
|
*/ |
56
|
|
|
private $borderColor; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* Border radius. |
60
|
|
|
* |
61
|
|
|
* @var integer |
62
|
|
|
* @since 2.2.1 |
63
|
|
|
*/ |
64
|
|
|
private $borderRadius = 0; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* Border width. |
68
|
|
|
* |
69
|
|
|
* @var integer |
70
|
|
|
* @since 2.2.1 |
71
|
|
|
*/ |
72
|
|
|
private $borderWidth = 0; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* Class name. |
76
|
|
|
* |
77
|
|
|
* @var string |
78
|
|
|
* @since 5.0.0 |
79
|
|
|
*/ |
80
|
|
|
private $className; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* Color. |
84
|
|
|
* |
85
|
|
|
* @var string |
86
|
|
|
*/ |
87
|
|
|
private $color; |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* Crop. |
91
|
|
|
* |
92
|
|
|
* @var boolean |
93
|
|
|
* @since 2.3.3 |
94
|
|
|
*/ |
95
|
|
|
private $crop = true; |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* Defer. |
99
|
|
|
* |
100
|
|
|
* @var boolean |
101
|
|
|
* @since 4.0 |
102
|
|
|
*/ |
103
|
|
|
private $defer = true; |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* Enabled. |
107
|
|
|
* |
108
|
|
|
* @var boolean |
109
|
|
|
*/ |
110
|
|
|
private $enabled = false; |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* Format. |
114
|
|
|
* |
115
|
|
|
* @var string |
116
|
|
|
* @since 3.0 |
117
|
|
|
*/ |
118
|
|
|
private $format = "{y}"; |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* Formatter. |
122
|
|
|
* |
123
|
|
|
* @var string |
124
|
|
|
*/ |
125
|
|
|
private $formatter; |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* Inside. |
129
|
|
|
* |
130
|
|
|
* @var boolean |
131
|
|
|
* @since 3.0 |
132
|
|
|
*/ |
133
|
|
|
private $inside; |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* Overflow. |
137
|
|
|
* |
138
|
|
|
* @var string |
139
|
|
|
* @since 3.0.6 |
140
|
|
|
*/ |
141
|
|
|
private $overflow = "justify"; |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* Padding. |
145
|
|
|
* |
146
|
|
|
* @var integer |
147
|
|
|
* @since 2.2.1 |
148
|
|
|
*/ |
149
|
|
|
private $padding = 5; |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* Rotation. |
153
|
|
|
* |
154
|
|
|
* @var integer |
155
|
|
|
*/ |
156
|
|
|
private $rotation = 0; |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* Shadow. |
160
|
|
|
* |
161
|
|
|
* @var boolean|array |
162
|
|
|
* @since 2.2.1 |
163
|
|
|
*/ |
164
|
|
|
private $shadow = false; |
165
|
|
|
|
166
|
|
|
/** |
167
|
|
|
* Shape. |
168
|
|
|
* |
169
|
|
|
* @var string |
170
|
|
|
* @since 4.1.2 |
171
|
|
|
*/ |
172
|
|
|
private $shape = "square"; |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* Style. |
176
|
|
|
* |
177
|
|
|
* @var array |
178
|
|
|
* @since 4.1.0 |
179
|
|
|
*/ |
180
|
|
|
private $style = ["color" => "contrast", "fontSize" => "11px", "fontWeight" => "bold", "textOutline" => "1px contrast"]; |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* Use HTML. |
184
|
|
|
* |
185
|
|
|
* @var boolean |
186
|
|
|
*/ |
187
|
|
|
private $useHTML = false; |
188
|
|
|
|
189
|
|
|
/** |
190
|
|
|
* Vertical align. |
191
|
|
|
* |
192
|
|
|
* @var string |
193
|
|
|
* @since 2.3.3 |
194
|
|
|
*/ |
195
|
|
|
private $verticalAlign; |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* X high. |
199
|
|
|
* |
200
|
|
|
* @var integer |
201
|
|
|
* @since 2.3.0 |
202
|
|
|
*/ |
203
|
|
|
private $xHigh = 0; |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* X low. |
207
|
|
|
* |
208
|
|
|
* @var integer |
209
|
|
|
* @since 2.3.0 |
210
|
|
|
*/ |
211
|
|
|
private $xLow = 0; |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* Y high. |
215
|
|
|
* |
216
|
|
|
* @var integer |
217
|
|
|
* @since 2.3.0 |
218
|
|
|
*/ |
219
|
|
|
private $yHigh = -6; |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* Y low. |
223
|
|
|
* |
224
|
|
|
* @var integer |
225
|
|
|
* @since 2.3.0 |
226
|
|
|
*/ |
227
|
|
|
private $yLow = 16; |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* Z index. |
231
|
|
|
* |
232
|
|
|
* @var integer |
233
|
|
|
* @since 2.3.5 |
234
|
|
|
*/ |
235
|
|
|
private $zIndex = 6; |
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* Constructor. |
239
|
|
|
* |
240
|
|
|
* @param boolean $ignoreDefaultValues Ignore the default values. |
241
|
|
|
*/ |
242
|
|
|
public function __construct($ignoreDefaultValues = true) { |
243
|
|
|
if (true === $ignoreDefaultValues) { |
244
|
|
|
$this->clear(); |
245
|
|
|
} |
246
|
|
|
} |
247
|
|
|
|
248
|
|
|
/** |
249
|
|
|
* Clear. |
250
|
|
|
* |
251
|
|
|
* @return void |
252
|
|
|
*/ |
253
|
|
|
public function clear() { |
254
|
|
|
|
255
|
|
|
// Clear the align. |
256
|
|
|
$this->align = null; |
257
|
|
|
|
258
|
|
|
// Clear the allow overlap. |
259
|
|
|
$this->allowOverlap = null; |
260
|
|
|
|
261
|
|
|
// Clear the background color. |
262
|
|
|
$this->backgroundColor = null; |
263
|
|
|
|
264
|
|
|
// Clear the border color. |
265
|
|
|
$this->borderColor = null; |
266
|
|
|
|
267
|
|
|
// Clear the border radius. |
268
|
|
|
$this->borderRadius = null; |
269
|
|
|
|
270
|
|
|
// Clear the border width. |
271
|
|
|
$this->borderWidth = null; |
272
|
|
|
|
273
|
|
|
// Clear the class name. |
274
|
|
|
$this->className = null; |
275
|
|
|
|
276
|
|
|
// Clear the color. |
277
|
|
|
$this->color = null; |
278
|
|
|
|
279
|
|
|
// Clear the crop. |
280
|
|
|
$this->crop = null; |
281
|
|
|
|
282
|
|
|
// Clear the defer. |
283
|
|
|
$this->defer = null; |
284
|
|
|
|
285
|
|
|
// Clear the enabled. |
286
|
|
|
$this->enabled = null; |
287
|
|
|
|
288
|
|
|
// Clear the format. |
289
|
|
|
$this->format = null; |
290
|
|
|
|
291
|
|
|
// Clear the formatter. |
292
|
|
|
$this->formatter = null; |
293
|
|
|
|
294
|
|
|
// Clear the inside. |
295
|
|
|
$this->inside = null; |
296
|
|
|
|
297
|
|
|
// Clear the overflow. |
298
|
|
|
$this->overflow = null; |
299
|
|
|
|
300
|
|
|
// Clear the padding. |
301
|
|
|
$this->padding = null; |
302
|
|
|
|
303
|
|
|
// Clear the rotation. |
304
|
|
|
$this->rotation = null; |
305
|
|
|
|
306
|
|
|
// Clear the shadow. |
307
|
|
|
$this->shadow = null; |
308
|
|
|
|
309
|
|
|
// Clear the shape. |
310
|
|
|
$this->shape = null; |
311
|
|
|
|
312
|
|
|
// Clear the style. |
313
|
|
|
$this->style = null; |
|
|
|
|
314
|
|
|
|
315
|
|
|
// Clear the use HTML. |
316
|
|
|
$this->useHTML = null; |
317
|
|
|
|
318
|
|
|
// Clear the vertical align. |
319
|
|
|
$this->verticalAlign = null; |
320
|
|
|
|
321
|
|
|
// Clear the x high. |
322
|
|
|
$this->xHigh = null; |
323
|
|
|
|
324
|
|
|
// Clear the x low. |
325
|
|
|
$this->xLow = null; |
326
|
|
|
|
327
|
|
|
// Clear the y high. |
328
|
|
|
$this->yHigh = null; |
329
|
|
|
|
330
|
|
|
// Clear the y low. |
331
|
|
|
$this->yLow = null; |
332
|
|
|
|
333
|
|
|
// Clear the z index. |
334
|
|
|
$this->zIndex = null; |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* Get the align. |
339
|
|
|
* |
340
|
|
|
* @return string Returns the align. |
341
|
|
|
*/ |
342
|
|
|
public function getAlign() { |
343
|
|
|
return $this->align; |
344
|
|
|
} |
345
|
|
|
|
346
|
|
|
/** |
347
|
|
|
* Get the allow overlap. |
348
|
|
|
* |
349
|
|
|
* @return boolean Returns the allow overlap. |
350
|
|
|
*/ |
351
|
|
|
public function getAllowOverlap() { |
352
|
|
|
return $this->allowOverlap; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* Get the background color. |
357
|
|
|
* |
358
|
|
|
* @return string Returns the background color. |
359
|
|
|
*/ |
360
|
|
|
public function getBackgroundColor() { |
361
|
|
|
return $this->backgroundColor; |
362
|
|
|
} |
363
|
|
|
|
364
|
|
|
/** |
365
|
|
|
* Get the border color. |
366
|
|
|
* |
367
|
|
|
* @return string Returns the border color. |
368
|
|
|
*/ |
369
|
|
|
public function getBorderColor() { |
370
|
|
|
return $this->borderColor; |
371
|
|
|
} |
372
|
|
|
|
373
|
|
|
/** |
374
|
|
|
* Get the border radius. |
375
|
|
|
* |
376
|
|
|
* @return integer Returns the border radius. |
377
|
|
|
*/ |
378
|
|
|
public function getBorderRadius() { |
379
|
|
|
return $this->borderRadius; |
380
|
|
|
} |
381
|
|
|
|
382
|
|
|
/** |
383
|
|
|
* Get the border width. |
384
|
|
|
* |
385
|
|
|
* @return integer Returns the border width. |
386
|
|
|
*/ |
387
|
|
|
public function getBorderWidth() { |
388
|
|
|
return $this->borderWidth; |
389
|
|
|
} |
390
|
|
|
|
391
|
|
|
/** |
392
|
|
|
* Get the class name. |
393
|
|
|
* |
394
|
|
|
* @return string Returns the class name. |
395
|
|
|
*/ |
396
|
|
|
public function getClassName() { |
397
|
|
|
return $this->className; |
398
|
|
|
} |
399
|
|
|
|
400
|
|
|
/** |
401
|
|
|
* Get the color. |
402
|
|
|
* |
403
|
|
|
* @return string Returns the color. |
404
|
|
|
*/ |
405
|
|
|
public function getColor() { |
406
|
|
|
return $this->color; |
407
|
|
|
} |
408
|
|
|
|
409
|
|
|
/** |
410
|
|
|
* Get the crop. |
411
|
|
|
* |
412
|
|
|
* @return boolean Returns the crop. |
413
|
|
|
*/ |
414
|
|
|
public function getCrop() { |
415
|
|
|
return $this->crop; |
416
|
|
|
} |
417
|
|
|
|
418
|
|
|
/** |
419
|
|
|
* Get the defer. |
420
|
|
|
* |
421
|
|
|
* @return boolean Returns the defer. |
422
|
|
|
*/ |
423
|
|
|
public function getDefer() { |
424
|
|
|
return $this->defer; |
425
|
|
|
} |
426
|
|
|
|
427
|
|
|
/** |
428
|
|
|
* Get the enabled. |
429
|
|
|
* |
430
|
|
|
* @return boolean Returns the enabled. |
431
|
|
|
*/ |
432
|
|
|
public function getEnabled() { |
433
|
|
|
return $this->enabled; |
434
|
|
|
} |
435
|
|
|
|
436
|
|
|
/** |
437
|
|
|
* Get the format. |
438
|
|
|
* |
439
|
|
|
* @return string Returns the format. |
440
|
|
|
*/ |
441
|
|
|
public function getFormat() { |
442
|
|
|
return $this->format; |
443
|
|
|
} |
444
|
|
|
|
445
|
|
|
/** |
446
|
|
|
* Get the formatter. |
447
|
|
|
* |
448
|
|
|
* @return string Returns the formatter. |
449
|
|
|
*/ |
450
|
|
|
public function getFormatter() { |
451
|
|
|
return $this->formatter; |
452
|
|
|
} |
453
|
|
|
|
454
|
|
|
/** |
455
|
|
|
* Get the inside. |
456
|
|
|
* |
457
|
|
|
* @return boolean Returns the inside. |
458
|
|
|
*/ |
459
|
|
|
public function getInside() { |
460
|
|
|
return $this->inside; |
461
|
|
|
} |
462
|
|
|
|
463
|
|
|
/** |
464
|
|
|
* Get the overflow. |
465
|
|
|
* |
466
|
|
|
* @return string Returns the overflow. |
467
|
|
|
*/ |
468
|
|
|
public function getOverflow() { |
469
|
|
|
return $this->overflow; |
470
|
|
|
} |
471
|
|
|
|
472
|
|
|
/** |
473
|
|
|
* Get the padding. |
474
|
|
|
* |
475
|
|
|
* @return integer Returns the padding. |
476
|
|
|
*/ |
477
|
|
|
public function getPadding() { |
478
|
|
|
return $this->padding; |
479
|
|
|
} |
480
|
|
|
|
481
|
|
|
/** |
482
|
|
|
* Get the rotation. |
483
|
|
|
* |
484
|
|
|
* @return integer Returns the rotation. |
485
|
|
|
*/ |
486
|
|
|
public function getRotation() { |
487
|
|
|
return $this->rotation; |
488
|
|
|
} |
489
|
|
|
|
490
|
|
|
/** |
491
|
|
|
* Get the shadow. |
492
|
|
|
* |
493
|
|
|
* @return boolean|array Returns the shadow. |
494
|
|
|
*/ |
495
|
|
|
public function getShadow() { |
496
|
|
|
return $this->shadow; |
497
|
|
|
} |
498
|
|
|
|
499
|
|
|
/** |
500
|
|
|
* Get the shape. |
501
|
|
|
* |
502
|
|
|
* @return string Returns the shape. |
503
|
|
|
*/ |
504
|
|
|
public function getShape() { |
505
|
|
|
return $this->shape; |
506
|
|
|
} |
507
|
|
|
|
508
|
|
|
/** |
509
|
|
|
* Get the style. |
510
|
|
|
* |
511
|
|
|
* @return array Returns the style. |
512
|
|
|
*/ |
513
|
|
|
public function getStyle() { |
514
|
|
|
return $this->style; |
515
|
|
|
} |
516
|
|
|
|
517
|
|
|
/** |
518
|
|
|
* Get the use HTML. |
519
|
|
|
* |
520
|
|
|
* @return boolean Returns the use HTML. |
521
|
|
|
*/ |
522
|
|
|
public function getUseHTML() { |
523
|
|
|
return $this->useHTML; |
524
|
|
|
} |
525
|
|
|
|
526
|
|
|
/** |
527
|
|
|
* Get the vertical align. |
528
|
|
|
* |
529
|
|
|
* @return string Returns the vertical align. |
530
|
|
|
*/ |
531
|
|
|
public function getVerticalAlign() { |
532
|
|
|
return $this->verticalAlign; |
533
|
|
|
} |
534
|
|
|
|
535
|
|
|
/** |
536
|
|
|
* Get the x high. |
537
|
|
|
* |
538
|
|
|
* @return integer Returns the x high. |
539
|
|
|
*/ |
540
|
|
|
public function getXHigh() { |
541
|
|
|
return $this->xHigh; |
542
|
|
|
} |
543
|
|
|
|
544
|
|
|
/** |
545
|
|
|
* Get the x low. |
546
|
|
|
* |
547
|
|
|
* @return integer Returns the x low. |
548
|
|
|
*/ |
549
|
|
|
public function getXLow() { |
550
|
|
|
return $this->xLow; |
551
|
|
|
} |
552
|
|
|
|
553
|
|
|
/** |
554
|
|
|
* Get the y high. |
555
|
|
|
* |
556
|
|
|
* @return integer Returns the y high. |
557
|
|
|
*/ |
558
|
|
|
public function getYHigh() { |
559
|
|
|
return $this->yHigh; |
560
|
|
|
} |
561
|
|
|
|
562
|
|
|
/** |
563
|
|
|
* Get the y low. |
564
|
|
|
* |
565
|
|
|
* @return integer Returns the y low. |
566
|
|
|
*/ |
567
|
|
|
public function getYLow() { |
568
|
|
|
return $this->yLow; |
569
|
|
|
} |
570
|
|
|
|
571
|
|
|
/** |
572
|
|
|
* Get the z index. |
573
|
|
|
* |
574
|
|
|
* @return integer Returns the z index. |
575
|
|
|
*/ |
576
|
|
|
public function getZIndex() { |
577
|
|
|
return $this->zIndex; |
578
|
|
|
} |
579
|
|
|
|
580
|
|
|
/** |
581
|
|
|
* Serialize this instance. |
582
|
|
|
* |
583
|
|
|
* @return array Returns an array representing this instance. |
584
|
|
|
*/ |
585
|
|
|
public function jsonSerialize() { |
586
|
|
|
return $this->toArray(); |
587
|
|
|
} |
588
|
|
|
|
589
|
|
|
/** |
590
|
|
|
* Set the align. |
591
|
|
|
* |
592
|
|
|
* @param string $align The align. |
593
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
594
|
|
|
*/ |
595
|
|
|
public function setAlign($align) { |
596
|
|
|
switch ($align) { |
597
|
|
|
case "center": |
598
|
|
|
case "left": |
599
|
|
|
case "right": |
600
|
|
|
$this->align = $align; |
601
|
|
|
break; |
602
|
|
|
} |
603
|
|
|
return $this; |
604
|
|
|
} |
605
|
|
|
|
606
|
|
|
/** |
607
|
|
|
* Set the allow overlap. |
608
|
|
|
* |
609
|
|
|
* @param boolean $allowOverlap The allow overlap. |
610
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
611
|
|
|
*/ |
612
|
|
|
public function setAllowOverlap($allowOverlap) { |
613
|
|
|
$this->allowOverlap = $allowOverlap; |
614
|
|
|
return $this; |
615
|
|
|
} |
616
|
|
|
|
617
|
|
|
/** |
618
|
|
|
* Set the background color. |
619
|
|
|
* |
620
|
|
|
* @param string $backgroundColor The background color. |
621
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
622
|
|
|
*/ |
623
|
|
|
public function setBackgroundColor($backgroundColor) { |
624
|
|
|
$this->backgroundColor = $backgroundColor; |
625
|
|
|
return $this; |
626
|
|
|
} |
627
|
|
|
|
628
|
|
|
/** |
629
|
|
|
* Set the border color. |
630
|
|
|
* |
631
|
|
|
* @param string $borderColor The border color. |
632
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
633
|
|
|
*/ |
634
|
|
|
public function setBorderColor($borderColor) { |
635
|
|
|
$this->borderColor = $borderColor; |
636
|
|
|
return $this; |
637
|
|
|
} |
638
|
|
|
|
639
|
|
|
/** |
640
|
|
|
* Set the border radius. |
641
|
|
|
* |
642
|
|
|
* @param integer $borderRadius The border radius. |
643
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
644
|
|
|
*/ |
645
|
|
|
public function setBorderRadius($borderRadius) { |
646
|
|
|
$this->borderRadius = $borderRadius; |
647
|
|
|
return $this; |
648
|
|
|
} |
649
|
|
|
|
650
|
|
|
/** |
651
|
|
|
* Set the border width. |
652
|
|
|
* |
653
|
|
|
* @param integer $borderWidth The border width. |
654
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
655
|
|
|
*/ |
656
|
|
|
public function setBorderWidth($borderWidth) { |
657
|
|
|
$this->borderWidth = $borderWidth; |
658
|
|
|
return $this; |
659
|
|
|
} |
660
|
|
|
|
661
|
|
|
/** |
662
|
|
|
* Set the class name. |
663
|
|
|
* |
664
|
|
|
* @param string $className The class name. |
665
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
666
|
|
|
*/ |
667
|
|
|
public function setClassName($className) { |
668
|
|
|
$this->className = $className; |
669
|
|
|
return $this; |
670
|
|
|
} |
671
|
|
|
|
672
|
|
|
/** |
673
|
|
|
* Set the color. |
674
|
|
|
* |
675
|
|
|
* @param string $color The color. |
676
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
677
|
|
|
*/ |
678
|
|
|
public function setColor($color) { |
679
|
|
|
$this->color = $color; |
680
|
|
|
return $this; |
681
|
|
|
} |
682
|
|
|
|
683
|
|
|
/** |
684
|
|
|
* Set the crop. |
685
|
|
|
* |
686
|
|
|
* @param boolean $crop The crop. |
687
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
688
|
|
|
*/ |
689
|
|
|
public function setCrop($crop) { |
690
|
|
|
$this->crop = $crop; |
691
|
|
|
return $this; |
692
|
|
|
} |
693
|
|
|
|
694
|
|
|
/** |
695
|
|
|
* Set the defer. |
696
|
|
|
* |
697
|
|
|
* @param boolean $defer The defer. |
698
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
699
|
|
|
*/ |
700
|
|
|
public function setDefer($defer) { |
701
|
|
|
$this->defer = $defer; |
702
|
|
|
return $this; |
703
|
|
|
} |
704
|
|
|
|
705
|
|
|
/** |
706
|
|
|
* Set the enabled. |
707
|
|
|
* |
708
|
|
|
* @param boolean $enabled The enabled. |
709
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
710
|
|
|
*/ |
711
|
|
|
public function setEnabled($enabled) { |
712
|
|
|
$this->enabled = $enabled; |
713
|
|
|
return $this; |
714
|
|
|
} |
715
|
|
|
|
716
|
|
|
/** |
717
|
|
|
* Set the format. |
718
|
|
|
* |
719
|
|
|
* @param string $format The format. |
720
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
721
|
|
|
*/ |
722
|
|
|
public function setFormat($format) { |
723
|
|
|
$this->format = $format; |
724
|
|
|
return $this; |
725
|
|
|
} |
726
|
|
|
|
727
|
|
|
/** |
728
|
|
|
* Set the formatter. |
729
|
|
|
* |
730
|
|
|
* @param string $formatter The formatter. |
731
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
732
|
|
|
*/ |
733
|
|
|
public function setFormatter($formatter) { |
734
|
|
|
$this->formatter = $formatter; |
735
|
|
|
return $this; |
736
|
|
|
} |
737
|
|
|
|
738
|
|
|
/** |
739
|
|
|
* Set the inside. |
740
|
|
|
* |
741
|
|
|
* @param boolean $inside The inside. |
742
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
743
|
|
|
*/ |
744
|
|
|
public function setInside($inside) { |
745
|
|
|
$this->inside = $inside; |
746
|
|
|
return $this; |
747
|
|
|
} |
748
|
|
|
|
749
|
|
|
/** |
750
|
|
|
* Set the overflow. |
751
|
|
|
* |
752
|
|
|
* @param string $overflow The overflow. |
753
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
754
|
|
|
*/ |
755
|
|
|
public function setOverflow($overflow) { |
756
|
|
|
switch ($overflow) { |
757
|
|
|
case "justify": |
758
|
|
|
case "none": |
759
|
|
|
$this->overflow = $overflow; |
760
|
|
|
break; |
761
|
|
|
} |
762
|
|
|
return $this; |
763
|
|
|
} |
764
|
|
|
|
765
|
|
|
/** |
766
|
|
|
* Set the padding. |
767
|
|
|
* |
768
|
|
|
* @param integer $padding The padding. |
769
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
770
|
|
|
*/ |
771
|
|
|
public function setPadding($padding) { |
772
|
|
|
$this->padding = $padding; |
773
|
|
|
return $this; |
774
|
|
|
} |
775
|
|
|
|
776
|
|
|
/** |
777
|
|
|
* Set the rotation. |
778
|
|
|
* |
779
|
|
|
* @param integer $rotation The rotation. |
780
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
781
|
|
|
*/ |
782
|
|
|
public function setRotation($rotation) { |
783
|
|
|
$this->rotation = $rotation; |
784
|
|
|
return $this; |
785
|
|
|
} |
786
|
|
|
|
787
|
|
|
/** |
788
|
|
|
* Set the shadow. |
789
|
|
|
* |
790
|
|
|
* @param boolean|array $shadow The shadow. |
791
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
792
|
|
|
*/ |
793
|
|
|
public function setShadow($shadow) { |
794
|
|
|
$this->shadow = $shadow; |
795
|
|
|
return $this; |
796
|
|
|
} |
797
|
|
|
|
798
|
|
|
/** |
799
|
|
|
* Set the shape. |
800
|
|
|
* |
801
|
|
|
* @param string $shape The shape. |
802
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
803
|
|
|
*/ |
804
|
|
|
public function setShape($shape) { |
805
|
|
|
$this->shape = $shape; |
806
|
|
|
return $this; |
807
|
|
|
} |
808
|
|
|
|
809
|
|
|
/** |
810
|
|
|
* Set the style. |
811
|
|
|
* |
812
|
|
|
* @param array $style The style. |
813
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
814
|
|
|
*/ |
815
|
|
|
public function setStyle(array $style = null) { |
816
|
|
|
$this->style = $style; |
|
|
|
|
817
|
|
|
return $this; |
818
|
|
|
} |
819
|
|
|
|
820
|
|
|
/** |
821
|
|
|
* Set the use HTML. |
822
|
|
|
* |
823
|
|
|
* @param boolean $useHTML The use HTML. |
824
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
825
|
|
|
*/ |
826
|
|
|
public function setUseHTML($useHTML) { |
827
|
|
|
$this->useHTML = $useHTML; |
828
|
|
|
return $this; |
829
|
|
|
} |
830
|
|
|
|
831
|
|
|
/** |
832
|
|
|
* Set the vertical align. |
833
|
|
|
* |
834
|
|
|
* @param string $verticalAlign The vertical align. |
835
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
836
|
|
|
*/ |
837
|
|
|
public function setVerticalAlign($verticalAlign) { |
838
|
|
|
switch ($verticalAlign) { |
839
|
|
|
case "bottom": |
840
|
|
|
case "middle": |
841
|
|
|
case "top": |
842
|
|
|
$this->verticalAlign = $verticalAlign; |
843
|
|
|
break; |
844
|
|
|
} |
845
|
|
|
return $this; |
846
|
|
|
} |
847
|
|
|
|
848
|
|
|
/** |
849
|
|
|
* Set the x high. |
850
|
|
|
* |
851
|
|
|
* @param integer $xHigh The x high. |
852
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
853
|
|
|
*/ |
854
|
|
|
public function setXHigh($xHigh) { |
855
|
|
|
$this->xHigh = $xHigh; |
856
|
|
|
return $this; |
857
|
|
|
} |
858
|
|
|
|
859
|
|
|
/** |
860
|
|
|
* Set the x low. |
861
|
|
|
* |
862
|
|
|
* @param integer $xLow The x low. |
863
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
864
|
|
|
*/ |
865
|
|
|
public function setXLow($xLow) { |
866
|
|
|
$this->xLow = $xLow; |
867
|
|
|
return $this; |
868
|
|
|
} |
869
|
|
|
|
870
|
|
|
/** |
871
|
|
|
* Set the y high. |
872
|
|
|
* |
873
|
|
|
* @param integer $yHigh The y high. |
874
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
875
|
|
|
*/ |
876
|
|
|
public function setYHigh($yHigh) { |
877
|
|
|
$this->yHigh = $yHigh; |
878
|
|
|
return $this; |
879
|
|
|
} |
880
|
|
|
|
881
|
|
|
/** |
882
|
|
|
* Set the y low. |
883
|
|
|
* |
884
|
|
|
* @param integer $yLow The y low. |
885
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
886
|
|
|
*/ |
887
|
|
|
public function setYLow($yLow) { |
888
|
|
|
$this->yLow = $yLow; |
889
|
|
|
return $this; |
890
|
|
|
} |
891
|
|
|
|
892
|
|
|
/** |
893
|
|
|
* Set the z index. |
894
|
|
|
* |
895
|
|
|
* @param integer $zIndex The z index. |
896
|
|
|
* @return \WBW\Bundle\HighchartsBundle\API\Chart\PlotOptions\Arearange\HighchartsDataLabels Returns the highcharts data labels. |
897
|
|
|
*/ |
898
|
|
|
public function setZIndex($zIndex) { |
899
|
|
|
$this->zIndex = $zIndex; |
900
|
|
|
return $this; |
901
|
|
|
} |
902
|
|
|
|
903
|
|
|
/** |
904
|
|
|
* Convert into an array representing this instance. |
905
|
|
|
* |
906
|
|
|
* @return array Returns an array representing this instance. |
907
|
|
|
*/ |
908
|
|
|
public function toArray() { |
909
|
|
|
|
910
|
|
|
// Initialize the output. |
911
|
|
|
$output = []; |
912
|
|
|
|
913
|
|
|
// Set the align. |
914
|
|
|
ArrayUtility::set($output, "align", $this->align, [null]); |
915
|
|
|
|
916
|
|
|
// Set the allow overlap. |
917
|
|
|
ArrayUtility::set($output, "allowOverlap", $this->allowOverlap, [null]); |
918
|
|
|
|
919
|
|
|
// Set the background color. |
920
|
|
|
ArrayUtility::set($output, "backgroundColor", $this->backgroundColor, [null]); |
921
|
|
|
|
922
|
|
|
// Set the border color. |
923
|
|
|
ArrayUtility::set($output, "borderColor", $this->borderColor, [null]); |
924
|
|
|
|
925
|
|
|
// Set the border radius. |
926
|
|
|
ArrayUtility::set($output, "borderRadius", $this->borderRadius, [null]); |
927
|
|
|
|
928
|
|
|
// Set the border width. |
929
|
|
|
ArrayUtility::set($output, "borderWidth", $this->borderWidth, [null]); |
930
|
|
|
|
931
|
|
|
// Set the class name. |
932
|
|
|
ArrayUtility::set($output, "className", $this->className, [null]); |
933
|
|
|
|
934
|
|
|
// Set the color. |
935
|
|
|
ArrayUtility::set($output, "color", $this->color, [null]); |
936
|
|
|
|
937
|
|
|
// Set the crop. |
938
|
|
|
ArrayUtility::set($output, "crop", $this->crop, [null]); |
939
|
|
|
|
940
|
|
|
// Set the defer. |
941
|
|
|
ArrayUtility::set($output, "defer", $this->defer, [null]); |
942
|
|
|
|
943
|
|
|
// Set the enabled. |
944
|
|
|
ArrayUtility::set($output, "enabled", $this->enabled, [null]); |
945
|
|
|
|
946
|
|
|
// Set the format. |
947
|
|
|
ArrayUtility::set($output, "format", $this->format, [null]); |
948
|
|
|
|
949
|
|
|
// Set the formatter. |
950
|
|
|
ArrayUtility::set($output, "formatter", $this->formatter, [null]); |
951
|
|
|
|
952
|
|
|
// Set the inside. |
953
|
|
|
ArrayUtility::set($output, "inside", $this->inside, [null]); |
954
|
|
|
|
955
|
|
|
// Set the overflow. |
956
|
|
|
ArrayUtility::set($output, "overflow", $this->overflow, [null]); |
957
|
|
|
|
958
|
|
|
// Set the padding. |
959
|
|
|
ArrayUtility::set($output, "padding", $this->padding, [null]); |
960
|
|
|
|
961
|
|
|
// Set the rotation. |
962
|
|
|
ArrayUtility::set($output, "rotation", $this->rotation, [null]); |
963
|
|
|
|
964
|
|
|
// Set the shadow. |
965
|
|
|
ArrayUtility::set($output, "shadow", $this->shadow, [null]); |
966
|
|
|
|
967
|
|
|
// Set the shape. |
968
|
|
|
ArrayUtility::set($output, "shape", $this->shape, [null]); |
969
|
|
|
|
970
|
|
|
// Set the style. |
971
|
|
|
ArrayUtility::set($output, "style", $this->style, [null]); |
972
|
|
|
|
973
|
|
|
// Set the use HTML. |
974
|
|
|
ArrayUtility::set($output, "useHTML", $this->useHTML, [null]); |
975
|
|
|
|
976
|
|
|
// Set the vertical align. |
977
|
|
|
ArrayUtility::set($output, "verticalAlign", $this->verticalAlign, [null]); |
978
|
|
|
|
979
|
|
|
// Set the x high. |
980
|
|
|
ArrayUtility::set($output, "xHigh", $this->xHigh, [null]); |
981
|
|
|
|
982
|
|
|
// Set the x low. |
983
|
|
|
ArrayUtility::set($output, "xLow", $this->xLow, [null]); |
984
|
|
|
|
985
|
|
|
// Set the y high. |
986
|
|
|
ArrayUtility::set($output, "yHigh", $this->yHigh, [null]); |
987
|
|
|
|
988
|
|
|
// Set the y low. |
989
|
|
|
ArrayUtility::set($output, "yLow", $this->yLow, [null]); |
990
|
|
|
|
991
|
|
|
// Set the z index. |
992
|
|
|
ArrayUtility::set($output, "zIndex", $this->zIndex, [null]); |
993
|
|
|
|
994
|
|
|
// Return the output. |
995
|
|
|
return $output; |
996
|
|
|
} |
997
|
|
|
|
998
|
|
|
} |
999
|
|
|
|
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..