File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,21 @@ abstract class BaseDataset extends \yii\base\Component
119
119
*/
120
120
public $ label = '' ;
121
121
122
+ /**
123
+ * @var string|null
124
+ */
125
+ public $ xAxisID = null ;
126
+
127
+ /**
128
+ * @var string|null
129
+ */
130
+ public $ yAxisID = null ;
131
+
132
+ /**
133
+ * @var string|null
134
+ */
135
+ public $ stack = null ;
136
+
122
137
/**
123
138
* Populates `$this->data` manipulating a query row into the correct format
124
139
* for the dataset format use are using
@@ -192,6 +207,18 @@ public function getDataset()
192
207
$ dataset ['label ' ] = $ this ->label ;
193
208
}
194
209
210
+ if ($ this ->xAxisID !== null ) {
211
+ $ dataset ['xAxisID ' ] = $ this ->xAxisID ;
212
+ }
213
+
214
+ if ($ this ->yAxisID !== null ) {
215
+ $ dataset ['yAxisID ' ] = $ this ->yAxisID ;
216
+ }
217
+
218
+ if ($ this ->stack !== null ) {
219
+ $ dataset ['stack ' ] = $ this ->stack ;
220
+ }
221
+
195
222
return $ dataset ;
196
223
}
197
224
You can’t perform that action at this time.
0 commit comments