1
1
import { colors } from "./colors" ;
2
- import { getTheme } from "./themes" ;
3
2
4
3
export const groupedBarData = {
5
4
labels : [ "Qty" , "More" , "Sold" , "Restocking" , "Misc" ] ,
6
5
datasets : [
7
6
{
8
7
label : "Dataset 1" ,
9
- backgroundColors : [ colors [ 0 ] ] ,
8
+ fillColors : [ colors [ 0 ] ] ,
10
9
data : [
11
10
65000 ,
12
11
- 29123 ,
@@ -17,7 +16,7 @@ export const groupedBarData = {
17
16
} ,
18
17
{
19
18
label : "Dataset 2" ,
20
- backgroundColors : [ colors [ 1 ] ] ,
19
+ fillColors : [ colors [ 1 ] ] ,
21
20
data : [
22
21
32432 ,
23
22
- 21312 ,
@@ -28,7 +27,7 @@ export const groupedBarData = {
28
27
} ,
29
28
{
30
29
label : "Dataset 3" ,
31
- backgroundColors : [ colors [ 2 ] ] ,
30
+ fillColors : [ colors [ 2 ] ] ,
32
31
data : [
33
32
- 12312 ,
34
33
23232 ,
@@ -39,7 +38,7 @@ export const groupedBarData = {
39
38
} ,
40
39
{
41
40
label : "Dataset 4" ,
42
- backgroundColors : [ colors [ 3 ] ] ,
41
+ fillColors : [ colors [ 3 ] ] ,
43
42
data : [
44
43
- 32423 ,
45
44
21313 ,
@@ -58,14 +57,13 @@ export const groupedBarOptions = {
58
57
primary : true ,
59
58
} ,
60
59
bottom : {
61
- type : "labels" ,
60
+ scaleType : "labels" ,
62
61
secondary : true ,
63
62
} ,
64
63
top : {
65
- type : "labels" ,
64
+ scaleType : "labels" ,
66
65
}
67
- } ,
68
- theme : getTheme ( )
66
+ }
69
67
} ;
70
68
71
69
// Simple bar
@@ -74,7 +72,7 @@ export const simpleBarData = {
74
72
datasets : [
75
73
{
76
74
label : "Dataset 1" ,
77
- backgroundColors : colors ,
75
+ fillColors : colors ,
78
76
data : [
79
77
65000 ,
80
78
29123 ,
@@ -93,11 +91,10 @@ export const simpleBarOptions = {
93
91
primary : true
94
92
} ,
95
93
bottom : {
96
- type : "labels" ,
94
+ scaleType : "labels" ,
97
95
secondary : true ,
98
96
}
99
- } ,
100
- theme : getTheme ( )
97
+ }
101
98
} ;
102
99
103
100
@@ -106,7 +103,7 @@ export const simpleBarTimeSeriesData = {
106
103
datasets : [
107
104
{
108
105
label : "Dataset 1" ,
109
- backgroundColors : colors ,
106
+ fillColors : colors ,
110
107
data : [
111
108
{
112
109
date : new Date ( 2019 , 0 , 1 ) ,
@@ -140,11 +137,10 @@ export const simpleBarTimeSeriesOptions = {
140
137
primary : true
141
138
} ,
142
139
bottom : {
143
- type : "time" ,
140
+ scaleType : "time" ,
144
141
secondary : true ,
145
142
}
146
- } ,
147
- theme : getTheme ( )
143
+ }
148
144
} ;
149
145
150
146
// Stacked bar
@@ -153,7 +149,7 @@ export const stackedBarData = {
153
149
datasets : [
154
150
{
155
151
label : "Dataset 1" ,
156
- backgroundColors : [ colors [ 0 ] ] ,
152
+ fillColors : [ colors [ 0 ] ] ,
157
153
data : [
158
154
65000 ,
159
155
29123 ,
@@ -164,7 +160,7 @@ export const stackedBarData = {
164
160
} ,
165
161
{
166
162
label : "Dataset 2" ,
167
- backgroundColors : [ colors [ 1 ] ] ,
163
+ fillColors : [ colors [ 1 ] ] ,
168
164
data : [
169
165
32432 ,
170
166
21312 ,
@@ -175,7 +171,7 @@ export const stackedBarData = {
175
171
} ,
176
172
{
177
173
label : "Dataset 3" ,
178
- backgroundColors : [ colors [ 2 ] ] ,
174
+ fillColors : [ colors [ 2 ] ] ,
179
175
data : [
180
176
12312 ,
181
177
23232 ,
@@ -186,7 +182,7 @@ export const stackedBarData = {
186
182
} ,
187
183
{
188
184
label : "Dataset 4" ,
189
- backgroundColors : [ colors [ 3 ] ] ,
185
+ fillColors : [ colors [ 3 ] ] ,
190
186
data : [
191
187
32423 ,
192
188
21313 ,
@@ -206,11 +202,10 @@ export const stackedBarOptions = {
206
202
stacked : true
207
203
} ,
208
204
bottom : {
209
- type : "labels" ,
205
+ scaleType : "labels" ,
210
206
secondary : true ,
211
207
}
212
- } ,
213
- theme : getTheme ( )
208
+ }
214
209
} ;
215
210
216
211
@@ -219,7 +214,7 @@ export const stackedBarTimeSeriesData = {
219
214
datasets : [
220
215
{
221
216
label : "Dataset 1" ,
222
- backgroundColors : [ colors [ 0 ] ] ,
217
+ fillColors : [ colors [ 0 ] ] ,
223
218
data : [
224
219
{
225
220
date : new Date ( 2019 , 0 , 1 ) ,
@@ -245,7 +240,7 @@ export const stackedBarTimeSeriesData = {
245
240
} ,
246
241
{
247
242
label : "Dataset 2" ,
248
- backgroundColors : [ colors [ 1 ] ] ,
243
+ fillColors : [ colors [ 1 ] ] ,
249
244
data : [
250
245
{
251
246
date : new Date ( 2019 , 0 , 3 ) ,
@@ -271,7 +266,7 @@ export const stackedBarTimeSeriesData = {
271
266
} ,
272
267
{
273
268
label : "Dataset 3" ,
274
- backgroundColors : [ colors [ 2 ] ] ,
269
+ fillColors : [ colors [ 2 ] ] ,
275
270
data : [
276
271
{
277
272
date : new Date ( 2019 , 0 , 1 ) ,
@@ -297,7 +292,7 @@ export const stackedBarTimeSeriesData = {
297
292
} ,
298
293
{
299
294
label : "Dataset 4" ,
300
- backgroundColors : [ colors [ 3 ] ] ,
295
+ fillColors : [ colors [ 3 ] ] ,
301
296
data : [
302
297
{
303
298
date : new Date ( 2019 , 0 , 2 ) ,
@@ -332,9 +327,8 @@ export const stackedBarTimeSeriesOptions = {
332
327
stacked : true
333
328
} ,
334
329
bottom : {
335
- type : "time" ,
336
- secondary : true ,
330
+ scaleType : "time" ,
331
+ secondary : true
337
332
}
338
- } ,
339
- theme : getTheme ( )
333
+ }
340
334
} ;
0 commit comments