-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDatasetInterface.php
130 lines (78 loc) · 4.12 KB
/
DatasetInterface.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?php
namespace RadiateCode\DaChartjs\Contracts;
interface DatasetInterface
{
public function label(string $label): DatasetInterface;
public function stack(string $stack): DatasetInterface;
public function stepped(string $stepped): DatasetInterface;
public function type(string $type): DatasetInterface;
public function tension(string $tension): DatasetInterface;
public function hoverOffset(string $hoverOffset): DatasetInterface;
public function cubicInterpolationMode(string $mode): DatasetInterface;
public function xAxisID(string $xAxisID): DatasetInterface;
public function yAxisID(string $yAxisID): DatasetInterface;
public function order(string $order): DatasetInterface;
public function hidden(string $hidden): DatasetInterface;
public function pointStyle(string $pointStyle): DatasetInterface;
public function borderJoinStyle(string $borderJoinStyle): DatasetInterface;
public function borderAlign(string $borderAlign): DatasetInterface;
public function rotation($rotation): DatasetInterface;
public function spacing($spacing): DatasetInterface;
public function weight($weight): DatasetInterface;
public function circumference($circumference): DatasetInterface;
public function borderWidth($width): DatasetInterface;
public function borderRadius($radius): DatasetInterface;
public function pointRadius($radius): DatasetInterface;
public function pointRotation($rotation): DatasetInterface;
public function barPercentage($percentage): DatasetInterface;
public function barThickness($thickness): DatasetInterface;
public function maxBarThickness($thickness): DatasetInterface;
public function minBarLength($length): DatasetInterface;
public function hoverBorderWidth($width): DatasetInterface;
public function hoverBorderRadius($radius): DatasetInterface;
public function pointHoverBorderWidth($width): DatasetInterface;
public function pointBorderWidth($width): DatasetInterface;
public function pointHitRadius($radius): DatasetInterface;
public function pointHoverRadius($radius): DatasetInterface;
public function borderDashOffset($offset): DatasetInterface;
public function offset(float $offset): DatasetInterface;
public function skipNull(bool $borderSkipped): DatasetInterface;
public function borderSkipped(bool $borderSkipped): DatasetInterface;
public function fill(bool $fill): DatasetInterface;
public function data(array $data): DatasetInterface;
public function segment(array $data): DatasetInterface;
/**
* | ---------------------------------------------------------------
* | Color can be pass as array of rgb
* | ---------------------------------------------------------------
*/
public function backgroundColor($color): DatasetInterface;
public function borderColor($color): DatasetInterface;
public function pointBackgroundColor($color): DatasetInterface;
public function pointBorderColor($color): DatasetInterface;
public function pointHoverBackgroundColor($color): DatasetInterface;
public function pointHoverBorderColor($color): DatasetInterface;
public function hoverBackgroundColor($color): DatasetInterface;
public function hoverBorderColor($color): DatasetInterface;
/**
* Used to generate dataset by most common properties
*
* -----------------------------------------------------------------------------------------------
* Note: If background and boarder colors are not set then it picked random pre-defined color
* -----------------------------------------------------------------------------------------------
*
* @param string $label
* @param array $data
* @param null $backgroundColor
* @param null $boarderColor
*
* @return DatasetInterface
*/
public function general(string $label, array $data, $backgroundColor = null, $boarderColor = null): DatasetInterface;
/**
* Make a dataset array with properties
*
* @return array
*/
public function make(): array;
}