|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Halfpastfour\PHPChartJS\DataSet; |
|
4
|
|
|
|
|
5
|
|
|
use Halfpastfour\PHPChartJS\DataSet; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* Class RadarDataSet |
|
9
|
|
|
* @package Halfpastfour\PHPChartJS\DataSet |
|
10
|
|
|
*/ |
|
11
|
|
|
class RadarDataSet extends DataSet |
|
12
|
|
|
{ |
|
13
|
|
|
/** |
|
14
|
|
|
* @var bool |
|
15
|
|
|
*/ |
|
16
|
|
|
protected $fill; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* @var float |
|
20
|
|
|
*/ |
|
21
|
|
|
protected $lineTension; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* @var string |
|
25
|
|
|
*/ |
|
26
|
|
|
protected $borderCapStyle; |
|
27
|
|
|
|
|
28
|
|
|
/** |
|
29
|
|
|
* @var int[] |
|
30
|
|
|
*/ |
|
31
|
|
|
protected $borderDash; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* @var int |
|
35
|
|
|
*/ |
|
36
|
|
|
protected $borderDashOffset; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* @var string |
|
40
|
|
|
*/ |
|
41
|
|
|
protected $borderJoinStyle; |
|
42
|
|
|
|
|
43
|
|
|
/** |
|
44
|
|
|
* @var string|string[] |
|
45
|
|
|
*/ |
|
46
|
|
|
protected $pointBorderColor; |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* @var string|string[] |
|
50
|
|
|
*/ |
|
51
|
|
|
protected $pointBackgroundColor; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* @var int|int[] |
|
55
|
|
|
*/ |
|
56
|
|
|
protected $pointBorderWidth; |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* @var int|int[] |
|
60
|
|
|
*/ |
|
61
|
|
|
protected $pointRadius; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @var int|int[] |
|
65
|
|
|
*/ |
|
66
|
|
|
protected $pointHoverRadius; |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @var int|int[] |
|
70
|
|
|
*/ |
|
71
|
|
|
protected $hitRadius; |
|
72
|
|
|
|
|
73
|
|
|
/** |
|
74
|
|
|
* @var string|string[] |
|
75
|
|
|
*/ |
|
76
|
|
|
protected $pointHoverBackgroundColor; |
|
77
|
|
|
|
|
78
|
|
|
/** |
|
79
|
|
|
* @var string|string[] |
|
80
|
|
|
*/ |
|
81
|
|
|
protected $pointHoverBorderColor; |
|
82
|
|
|
|
|
83
|
|
|
/** |
|
84
|
|
|
* @var int|int[] |
|
85
|
|
|
*/ |
|
86
|
|
|
protected $pointHoverBorderWidth; |
|
87
|
|
|
|
|
88
|
|
|
/** |
|
89
|
|
|
* @var string|string[] |
|
90
|
|
|
*/ |
|
91
|
|
|
protected $pointStyle; |
|
92
|
|
|
|
|
93
|
|
|
/** |
|
94
|
|
|
* @return bool |
|
95
|
|
|
*/ |
|
96
|
|
|
public function isFill() |
|
97
|
|
|
{ |
|
98
|
|
|
return $this->fill; |
|
99
|
|
|
} |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* @param bool $fill |
|
103
|
|
|
* |
|
104
|
|
|
* @return $this |
|
105
|
|
|
*/ |
|
106
|
|
|
public function setFill($fill) |
|
107
|
|
|
{ |
|
108
|
|
|
$this->fill = $fill; |
|
109
|
|
|
|
|
110
|
|
|
return $this; |
|
111
|
|
|
} |
|
112
|
|
|
|
|
113
|
|
|
/** |
|
114
|
|
|
* @return int |
|
115
|
|
|
*/ |
|
116
|
|
|
public function getLineTension() |
|
117
|
|
|
{ |
|
118
|
|
|
return $this->lineTension; |
|
119
|
|
|
} |
|
120
|
|
|
|
|
121
|
|
|
/** |
|
122
|
|
|
* @param float $lineTension |
|
123
|
|
|
* |
|
124
|
|
|
* @return $this |
|
125
|
|
|
*/ |
|
126
|
|
|
public function setLineTension($lineTension) |
|
127
|
|
|
{ |
|
128
|
|
|
$this->lineTension = $lineTension; |
|
129
|
|
|
|
|
130
|
|
|
return $this; |
|
131
|
|
|
} |
|
132
|
|
|
|
|
133
|
|
|
/** |
|
134
|
|
|
* @return string |
|
135
|
|
|
*/ |
|
136
|
|
|
public function getBorderCapStyle() |
|
137
|
|
|
{ |
|
138
|
|
|
return $this->borderCapStyle; |
|
139
|
|
|
} |
|
140
|
|
|
|
|
141
|
|
|
/** |
|
142
|
|
|
* @param string $borderCapStyle |
|
143
|
|
|
* |
|
144
|
|
|
* @return $this |
|
145
|
|
|
*/ |
|
146
|
|
|
public function setBorderCapStyle($borderCapStyle) |
|
147
|
|
|
{ |
|
148
|
|
|
$this->borderCapStyle = $borderCapStyle; |
|
149
|
|
|
|
|
150
|
|
|
return $this; |
|
151
|
|
|
} |
|
152
|
|
|
|
|
153
|
|
|
/** |
|
154
|
|
|
* @return int[] |
|
155
|
|
|
*/ |
|
156
|
|
|
public function getBorderDash() |
|
157
|
|
|
{ |
|
158
|
|
|
return $this->borderDash; |
|
159
|
|
|
} |
|
160
|
|
|
|
|
161
|
|
|
/** |
|
162
|
|
|
* @param int[] $borderDash |
|
163
|
|
|
* |
|
164
|
|
|
* @return $this |
|
165
|
|
|
*/ |
|
166
|
|
|
public function setBorderDash($borderDash) |
|
167
|
|
|
{ |
|
168
|
|
|
$this->borderDash = $borderDash; |
|
169
|
|
|
|
|
170
|
|
|
return $this; |
|
171
|
|
|
} |
|
172
|
|
|
|
|
173
|
|
|
/** |
|
174
|
|
|
* @return int |
|
175
|
|
|
*/ |
|
176
|
|
|
public function getBorderDashOffset() |
|
177
|
|
|
{ |
|
178
|
|
|
return $this->borderDashOffset; |
|
179
|
|
|
} |
|
180
|
|
|
|
|
181
|
|
|
/** |
|
182
|
|
|
* @param int $borderDashOffset |
|
183
|
|
|
* |
|
184
|
|
|
* @return $this |
|
185
|
|
|
*/ |
|
186
|
|
|
public function setBorderDashOffset($borderDashOffset) |
|
187
|
|
|
{ |
|
188
|
|
|
$this->borderDashOffset = $borderDashOffset; |
|
189
|
|
|
|
|
190
|
|
|
return $this; |
|
191
|
|
|
} |
|
192
|
|
|
|
|
193
|
|
|
/** |
|
194
|
|
|
* @return string |
|
195
|
|
|
*/ |
|
196
|
|
|
public function getBorderJoinStyle() |
|
197
|
|
|
{ |
|
198
|
|
|
return $this->borderJoinStyle; |
|
199
|
|
|
} |
|
200
|
|
|
|
|
201
|
|
|
/** |
|
202
|
|
|
* @param string $borderJoinStyle |
|
203
|
|
|
* |
|
204
|
|
|
* @return $this |
|
205
|
|
|
*/ |
|
206
|
|
|
public function setBorderJoinStyle($borderJoinStyle) |
|
207
|
|
|
{ |
|
208
|
|
|
$this->borderJoinStyle = $borderJoinStyle; |
|
209
|
|
|
|
|
210
|
|
|
return $this; |
|
211
|
|
|
} |
|
212
|
|
|
|
|
213
|
|
|
/** |
|
214
|
|
|
* @return string|string[] |
|
215
|
|
|
*/ |
|
216
|
|
|
public function getPointBorderColor() |
|
217
|
|
|
{ |
|
218
|
|
|
return $this->pointBorderColor; |
|
219
|
|
|
} |
|
220
|
|
|
|
|
221
|
|
|
/** |
|
222
|
|
|
* @param string|string[] $pointBorderColor |
|
223
|
|
|
* |
|
224
|
|
|
* @return $this |
|
225
|
|
|
*/ |
|
226
|
|
|
public function setPointBorderColor($pointBorderColor) |
|
227
|
|
|
{ |
|
228
|
|
|
$this->pointBorderColor = $pointBorderColor; |
|
229
|
|
|
|
|
230
|
|
|
return $this; |
|
231
|
|
|
} |
|
232
|
|
|
|
|
233
|
|
|
/** |
|
234
|
|
|
* @return string|string[] |
|
235
|
|
|
*/ |
|
236
|
|
|
public function getPointBackgroundColor() |
|
237
|
|
|
{ |
|
238
|
|
|
return $this->pointBackgroundColor; |
|
239
|
|
|
} |
|
240
|
|
|
|
|
241
|
|
|
/** |
|
242
|
|
|
* @param string|string[] $pointBackgroundColor |
|
243
|
|
|
* |
|
244
|
|
|
* @return $this |
|
245
|
|
|
*/ |
|
246
|
|
|
public function setPointBackgroundColor($pointBackgroundColor) |
|
247
|
|
|
{ |
|
248
|
|
|
$this->pointBackgroundColor = $pointBackgroundColor; |
|
249
|
|
|
|
|
250
|
|
|
return $this; |
|
251
|
|
|
} |
|
252
|
|
|
|
|
253
|
|
|
/** |
|
254
|
|
|
* @return int|int[] |
|
255
|
|
|
*/ |
|
256
|
|
|
public function getPointBorderWidth() |
|
257
|
|
|
{ |
|
258
|
|
|
return $this->pointBorderWidth; |
|
259
|
|
|
} |
|
260
|
|
|
|
|
261
|
|
|
/** |
|
262
|
|
|
* @param int|int[] $pointBorderWidth |
|
263
|
|
|
* |
|
264
|
|
|
* @return $this |
|
265
|
|
|
*/ |
|
266
|
|
|
public function setPointBorderWidth($pointBorderWidth) |
|
267
|
|
|
{ |
|
268
|
|
|
$this->pointBorderWidth = $pointBorderWidth; |
|
269
|
|
|
|
|
270
|
|
|
return $this; |
|
271
|
|
|
} |
|
272
|
|
|
|
|
273
|
|
|
/** |
|
274
|
|
|
* @return int|int[] |
|
275
|
|
|
*/ |
|
276
|
|
|
public function getPointRadius() |
|
277
|
|
|
{ |
|
278
|
|
|
return $this->pointRadius; |
|
279
|
|
|
} |
|
280
|
|
|
|
|
281
|
|
|
/** |
|
282
|
|
|
* @param int|int[] $pointRadius |
|
283
|
|
|
* |
|
284
|
|
|
* @return $this |
|
285
|
|
|
*/ |
|
286
|
|
|
public function setPointRadius($pointRadius) |
|
287
|
|
|
{ |
|
288
|
|
|
$this->pointRadius = $pointRadius; |
|
289
|
|
|
|
|
290
|
|
|
return $this; |
|
291
|
|
|
} |
|
292
|
|
|
|
|
293
|
|
|
/** |
|
294
|
|
|
* @return int|int[] |
|
295
|
|
|
*/ |
|
296
|
|
|
public function getPointHoverRadius() |
|
297
|
|
|
{ |
|
298
|
|
|
return $this->pointHoverRadius; |
|
299
|
|
|
} |
|
300
|
|
|
|
|
301
|
|
|
/** |
|
302
|
|
|
* @param int|int[] $pointHoverRadius |
|
303
|
|
|
* |
|
304
|
|
|
* @return $this |
|
305
|
|
|
*/ |
|
306
|
|
|
public function setPointHoverRadius($pointHoverRadius) |
|
307
|
|
|
{ |
|
308
|
|
|
$this->pointHoverRadius = $pointHoverRadius; |
|
309
|
|
|
|
|
310
|
|
|
return $this; |
|
311
|
|
|
} |
|
312
|
|
|
|
|
313
|
|
|
/** |
|
314
|
|
|
* @return int|int[] |
|
315
|
|
|
*/ |
|
316
|
|
|
public function getHitRadius() |
|
317
|
|
|
{ |
|
318
|
|
|
return $this->hitRadius; |
|
319
|
|
|
} |
|
320
|
|
|
|
|
321
|
|
|
/** |
|
322
|
|
|
* @param int|int[] $hitRadius |
|
323
|
|
|
* |
|
324
|
|
|
* @return $this |
|
325
|
|
|
*/ |
|
326
|
|
|
public function setHitRadius($hitRadius) |
|
327
|
|
|
{ |
|
328
|
|
|
$this->hitRadius = $hitRadius; |
|
329
|
|
|
|
|
330
|
|
|
return $this; |
|
331
|
|
|
} |
|
332
|
|
|
|
|
333
|
|
|
/** |
|
334
|
|
|
* @return string|string[] |
|
335
|
|
|
*/ |
|
336
|
|
|
public function getPointHoverBackgroundColor() |
|
337
|
|
|
{ |
|
338
|
|
|
return $this->pointHoverBackgroundColor; |
|
339
|
|
|
} |
|
340
|
|
|
|
|
341
|
|
|
/** |
|
342
|
|
|
* @param string|string[] $pointHoverBackgroundColor |
|
343
|
|
|
* |
|
344
|
|
|
* @return $this |
|
345
|
|
|
*/ |
|
346
|
|
|
public function setPointHoverBackgroundColor($pointHoverBackgroundColor) |
|
347
|
|
|
{ |
|
348
|
|
|
$this->pointHoverBackgroundColor = $pointHoverBackgroundColor; |
|
349
|
|
|
|
|
350
|
|
|
return $this; |
|
351
|
|
|
} |
|
352
|
|
|
|
|
353
|
|
|
/** |
|
354
|
|
|
* @return string|string[] |
|
355
|
|
|
*/ |
|
356
|
|
|
public function getPointHoverBorderColor() |
|
357
|
|
|
{ |
|
358
|
|
|
return $this->pointHoverBorderColor; |
|
359
|
|
|
} |
|
360
|
|
|
|
|
361
|
|
|
/** |
|
362
|
|
|
* @param string|string[] $pointHoverBorderColor |
|
363
|
|
|
* |
|
364
|
|
|
* @return $this |
|
365
|
|
|
*/ |
|
366
|
|
|
public function setPointHoverBorderColor($pointHoverBorderColor) |
|
367
|
|
|
{ |
|
368
|
|
|
$this->pointHoverBorderColor = $pointHoverBorderColor; |
|
369
|
|
|
|
|
370
|
|
|
return $this; |
|
371
|
|
|
} |
|
372
|
|
|
|
|
373
|
|
|
/** |
|
374
|
|
|
* @return int|int[] |
|
375
|
|
|
*/ |
|
376
|
|
|
public function getPointHoverBorderWidth() |
|
377
|
|
|
{ |
|
378
|
|
|
return $this->pointHoverBorderWidth; |
|
379
|
|
|
} |
|
380
|
|
|
|
|
381
|
|
|
/** |
|
382
|
|
|
* @param int|int[] $pointHoverBorderWidth |
|
383
|
|
|
* |
|
384
|
|
|
* @return $this |
|
385
|
|
|
*/ |
|
386
|
|
|
public function setPointHoverBorderWidth($pointHoverBorderWidth) |
|
387
|
|
|
{ |
|
388
|
|
|
$this->pointHoverBorderWidth = $pointHoverBorderWidth; |
|
389
|
|
|
|
|
390
|
|
|
return $this; |
|
391
|
|
|
} |
|
392
|
|
|
|
|
393
|
|
|
/** |
|
394
|
|
|
* @return string|string[] |
|
395
|
|
|
*/ |
|
396
|
|
|
public function getPointStyle() |
|
397
|
|
|
{ |
|
398
|
|
|
return $this->pointStyle; |
|
399
|
|
|
} |
|
400
|
|
|
|
|
401
|
|
|
/** |
|
402
|
|
|
* @param string|string[] $pointStyle |
|
403
|
|
|
* |
|
404
|
|
|
* @return $this |
|
405
|
|
|
*/ |
|
406
|
|
|
public function setPointStyle($pointStyle) |
|
407
|
|
|
{ |
|
408
|
|
|
$this->pointStyle = $pointStyle; |
|
409
|
|
|
|
|
410
|
|
|
return $this; |
|
411
|
|
|
} |
|
412
|
|
|
} |
|
413
|
|
|
|