@hisptz/dhis2-analytics 1.0.44 → 1.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/components/CircularProgressDashboard/index.js +15 -0
- package/build/cjs/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +3 -2
- package/build/cjs/components/SingleValueContainer/index.js +16 -0
- package/build/es/components/CircularProgressDashboard/index.js +1 -0
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.js +2 -1
- package/build/es/components/Map/components/MapLayer/components/GoogleEngineLayer/services/engine.js +1 -1
- package/build/es/components/SingleValueContainer/index.js +1 -0
- package/build/types/components/CircularProgressDashboard/index.d.ts +1 -0
- package/build/types/components/SingleValueContainer/index.d.ts +1 -0
- package/package.json +12 -8
- package/build/cjs/components/ChartAnalytics/ChartAnalytics.stories.js +0 -253
- package/build/cjs/components/ChartAnalytics/data/column-data.json +0 -210
- package/build/cjs/components/ChartAnalytics/data/complex-multi-series-data.json +0 -124
- package/build/cjs/components/ChartAnalytics/data/multi-series-data.json +0 -536
- package/build/cjs/components/ChartAnalytics/data/pie-data.json +0 -115
- package/build/cjs/components/ChartAnalytics/data/stacked-chart-data.json +0 -415
- package/build/cjs/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +0 -45
- package/build/cjs/components/CustomPivotTable/CustomPivotTable.stories.js +0 -69
- package/build/cjs/components/Map/Map.stories.js +0 -352
- package/build/cjs/components/SingleValueContainer/SingleValueContainer.stories.js +0 -127
- package/build/cjs/components/Visualization/Visualization.stories.js +0 -138
- package/build/cjs/dataProviders/map.js +0 -31
- package/build/es/components/ChartAnalytics/ChartAnalytics.stories.js +0 -235
- package/build/es/components/ChartAnalytics/data/column-data.json +0 -210
- package/build/es/components/ChartAnalytics/data/complex-multi-series-data.json +0 -124
- package/build/es/components/ChartAnalytics/data/multi-series-data.json +0 -536
- package/build/es/components/ChartAnalytics/data/pie-data.json +0 -115
- package/build/es/components/ChartAnalytics/data/stacked-chart-data.json +0 -415
- package/build/es/components/CircularProgressDashboard/CircularProgressIndicator.stories.js +0 -34
- package/build/es/components/CustomPivotTable/CustomPivotTable.stories.js +0 -59
- package/build/es/components/Map/Map.stories.js +0 -334
- package/build/es/components/SingleValueContainer/SingleValueContainer.stories.js +0 -115
- package/build/es/components/Visualization/Visualization.stories.js +0 -129
- package/build/es/dataProviders/map.js +0 -24
- package/build/types/components/Map/components/MapLayer/components/GoogleEngineLayer/services/api.d.ts +0 -1
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"headers": [
|
|
3
|
-
{
|
|
4
|
-
"name": "ou",
|
|
5
|
-
"column": "Organisation unit",
|
|
6
|
-
"valueType": "TEXT",
|
|
7
|
-
"type": "java.lang.String",
|
|
8
|
-
"hidden": false,
|
|
9
|
-
"meta": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"name": "pe",
|
|
13
|
-
"column": "Period",
|
|
14
|
-
"valueType": "TEXT",
|
|
15
|
-
"type": "java.lang.String",
|
|
16
|
-
"hidden": false,
|
|
17
|
-
"meta": true
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "value",
|
|
21
|
-
"column": "Value",
|
|
22
|
-
"valueType": "NUMBER",
|
|
23
|
-
"type": "java.lang.Double",
|
|
24
|
-
"hidden": false,
|
|
25
|
-
"meta": false
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"metaData": {
|
|
29
|
-
"items": {
|
|
30
|
-
"202107": {
|
|
31
|
-
"name": "July 2021"
|
|
32
|
-
},
|
|
33
|
-
"202108": {
|
|
34
|
-
"name": "August 2021"
|
|
35
|
-
},
|
|
36
|
-
"202109": {
|
|
37
|
-
"name": "September 2021"
|
|
38
|
-
},
|
|
39
|
-
"202110": {
|
|
40
|
-
"name": "October 2021"
|
|
41
|
-
},
|
|
42
|
-
"202111": {
|
|
43
|
-
"name": "November 2021"
|
|
44
|
-
},
|
|
45
|
-
"202112": {
|
|
46
|
-
"name": "December 2021"
|
|
47
|
-
},
|
|
48
|
-
"202201": {
|
|
49
|
-
"name": "January 2022"
|
|
50
|
-
},
|
|
51
|
-
"202202": {
|
|
52
|
-
"name": "February 2022"
|
|
53
|
-
},
|
|
54
|
-
"202203": {
|
|
55
|
-
"name": "March 2022"
|
|
56
|
-
},
|
|
57
|
-
"202204": {
|
|
58
|
-
"name": "April 2022"
|
|
59
|
-
},
|
|
60
|
-
"202205": {
|
|
61
|
-
"name": "May 2022"
|
|
62
|
-
},
|
|
63
|
-
"202206": {
|
|
64
|
-
"name": "June 2022"
|
|
65
|
-
},
|
|
66
|
-
"jUb8gELQApl": {
|
|
67
|
-
"name": "Kailahun"
|
|
68
|
-
},
|
|
69
|
-
"PMa2VCrupOd": {
|
|
70
|
-
"name": "Kambia"
|
|
71
|
-
},
|
|
72
|
-
"ou": {
|
|
73
|
-
"name": "Organisation unit"
|
|
74
|
-
},
|
|
75
|
-
"O6uvpzGd5pu": {
|
|
76
|
-
"name": "Bo"
|
|
77
|
-
},
|
|
78
|
-
"eTDtyyaSA7f": {
|
|
79
|
-
"name": "FIC <1y"
|
|
80
|
-
},
|
|
81
|
-
"fdc6uOvgoji": {
|
|
82
|
-
"name": "Bombali"
|
|
83
|
-
},
|
|
84
|
-
"LAST_12_MONTHS": {
|
|
85
|
-
"name": "Last 12 months"
|
|
86
|
-
},
|
|
87
|
-
"dx": {
|
|
88
|
-
"name": "Data"
|
|
89
|
-
},
|
|
90
|
-
"pe": {
|
|
91
|
-
"name": "Period"
|
|
92
|
-
},
|
|
93
|
-
"lc3eMKXaEfw": {
|
|
94
|
-
"name": "Bonthe"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"dimensions": {
|
|
98
|
-
"dx": [
|
|
99
|
-
"eTDtyyaSA7f"
|
|
100
|
-
],
|
|
101
|
-
"pe": [
|
|
102
|
-
"202107",
|
|
103
|
-
"202108",
|
|
104
|
-
"202109",
|
|
105
|
-
"202110",
|
|
106
|
-
"202111",
|
|
107
|
-
"202112",
|
|
108
|
-
"202201",
|
|
109
|
-
"202202",
|
|
110
|
-
"202203",
|
|
111
|
-
"202204",
|
|
112
|
-
"202205",
|
|
113
|
-
"202206"
|
|
114
|
-
],
|
|
115
|
-
"ou": [
|
|
116
|
-
"jUb8gELQApl",
|
|
117
|
-
"PMa2VCrupOd",
|
|
118
|
-
"O6uvpzGd5pu",
|
|
119
|
-
"lc3eMKXaEfw",
|
|
120
|
-
"fdc6uOvgoji"
|
|
121
|
-
],
|
|
122
|
-
"co": []
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"rows": [
|
|
126
|
-
[
|
|
127
|
-
"jUb8gELQApl",
|
|
128
|
-
"202107",
|
|
129
|
-
"66.0"
|
|
130
|
-
],
|
|
131
|
-
[
|
|
132
|
-
"jUb8gELQApl",
|
|
133
|
-
"202108",
|
|
134
|
-
"80.6"
|
|
135
|
-
],
|
|
136
|
-
[
|
|
137
|
-
"jUb8gELQApl",
|
|
138
|
-
"202109",
|
|
139
|
-
"83.2"
|
|
140
|
-
],
|
|
141
|
-
[
|
|
142
|
-
"jUb8gELQApl",
|
|
143
|
-
"202110",
|
|
144
|
-
"60.1"
|
|
145
|
-
],
|
|
146
|
-
[
|
|
147
|
-
"jUb8gELQApl",
|
|
148
|
-
"202111",
|
|
149
|
-
"78.8"
|
|
150
|
-
],
|
|
151
|
-
[
|
|
152
|
-
"jUb8gELQApl",
|
|
153
|
-
"202112",
|
|
154
|
-
"52.2"
|
|
155
|
-
],
|
|
156
|
-
[
|
|
157
|
-
"jUb8gELQApl",
|
|
158
|
-
"202201",
|
|
159
|
-
"72.7"
|
|
160
|
-
],
|
|
161
|
-
[
|
|
162
|
-
"jUb8gELQApl",
|
|
163
|
-
"202202",
|
|
164
|
-
"85.8"
|
|
165
|
-
],
|
|
166
|
-
[
|
|
167
|
-
"jUb8gELQApl",
|
|
168
|
-
"202203",
|
|
169
|
-
"78.7"
|
|
170
|
-
],
|
|
171
|
-
[
|
|
172
|
-
"jUb8gELQApl",
|
|
173
|
-
"202204",
|
|
174
|
-
"82.9"
|
|
175
|
-
],
|
|
176
|
-
[
|
|
177
|
-
"jUb8gELQApl",
|
|
178
|
-
"202205",
|
|
179
|
-
"82.2"
|
|
180
|
-
],
|
|
181
|
-
[
|
|
182
|
-
"jUb8gELQApl",
|
|
183
|
-
"202206",
|
|
184
|
-
"78.5"
|
|
185
|
-
],
|
|
186
|
-
[
|
|
187
|
-
"PMa2VCrupOd",
|
|
188
|
-
"202107",
|
|
189
|
-
"57.5"
|
|
190
|
-
],
|
|
191
|
-
[
|
|
192
|
-
"PMa2VCrupOd",
|
|
193
|
-
"202108",
|
|
194
|
-
"59.2"
|
|
195
|
-
],
|
|
196
|
-
[
|
|
197
|
-
"PMa2VCrupOd",
|
|
198
|
-
"202109",
|
|
199
|
-
"73.4"
|
|
200
|
-
],
|
|
201
|
-
[
|
|
202
|
-
"PMa2VCrupOd",
|
|
203
|
-
"202110",
|
|
204
|
-
"63.9"
|
|
205
|
-
],
|
|
206
|
-
[
|
|
207
|
-
"PMa2VCrupOd",
|
|
208
|
-
"202111",
|
|
209
|
-
"72.2"
|
|
210
|
-
],
|
|
211
|
-
[
|
|
212
|
-
"PMa2VCrupOd",
|
|
213
|
-
"202112",
|
|
214
|
-
"51.5"
|
|
215
|
-
],
|
|
216
|
-
[
|
|
217
|
-
"PMa2VCrupOd",
|
|
218
|
-
"202201",
|
|
219
|
-
"59.7"
|
|
220
|
-
],
|
|
221
|
-
[
|
|
222
|
-
"PMa2VCrupOd",
|
|
223
|
-
"202202",
|
|
224
|
-
"69.6"
|
|
225
|
-
],
|
|
226
|
-
[
|
|
227
|
-
"PMa2VCrupOd",
|
|
228
|
-
"202203",
|
|
229
|
-
"59.0"
|
|
230
|
-
],
|
|
231
|
-
[
|
|
232
|
-
"PMa2VCrupOd",
|
|
233
|
-
"202204",
|
|
234
|
-
"63.0"
|
|
235
|
-
],
|
|
236
|
-
[
|
|
237
|
-
"PMa2VCrupOd",
|
|
238
|
-
"202205",
|
|
239
|
-
"53.5"
|
|
240
|
-
],
|
|
241
|
-
[
|
|
242
|
-
"PMa2VCrupOd",
|
|
243
|
-
"202206",
|
|
244
|
-
"64.6"
|
|
245
|
-
],
|
|
246
|
-
[
|
|
247
|
-
"O6uvpzGd5pu",
|
|
248
|
-
"202107",
|
|
249
|
-
"70.7"
|
|
250
|
-
],
|
|
251
|
-
[
|
|
252
|
-
"O6uvpzGd5pu",
|
|
253
|
-
"202108",
|
|
254
|
-
"105.6"
|
|
255
|
-
],
|
|
256
|
-
[
|
|
257
|
-
"O6uvpzGd5pu",
|
|
258
|
-
"202109",
|
|
259
|
-
"81.0"
|
|
260
|
-
],
|
|
261
|
-
[
|
|
262
|
-
"O6uvpzGd5pu",
|
|
263
|
-
"202110",
|
|
264
|
-
"104.7"
|
|
265
|
-
],
|
|
266
|
-
[
|
|
267
|
-
"O6uvpzGd5pu",
|
|
268
|
-
"202111",
|
|
269
|
-
"117.0"
|
|
270
|
-
],
|
|
271
|
-
[
|
|
272
|
-
"O6uvpzGd5pu",
|
|
273
|
-
"202112",
|
|
274
|
-
"59.9"
|
|
275
|
-
],
|
|
276
|
-
[
|
|
277
|
-
"O6uvpzGd5pu",
|
|
278
|
-
"202201",
|
|
279
|
-
"58.6"
|
|
280
|
-
],
|
|
281
|
-
[
|
|
282
|
-
"O6uvpzGd5pu",
|
|
283
|
-
"202202",
|
|
284
|
-
"72.0"
|
|
285
|
-
],
|
|
286
|
-
[
|
|
287
|
-
"O6uvpzGd5pu",
|
|
288
|
-
"202203",
|
|
289
|
-
"66.5"
|
|
290
|
-
],
|
|
291
|
-
[
|
|
292
|
-
"O6uvpzGd5pu",
|
|
293
|
-
"202204",
|
|
294
|
-
"71.2"
|
|
295
|
-
],
|
|
296
|
-
[
|
|
297
|
-
"O6uvpzGd5pu",
|
|
298
|
-
"202205",
|
|
299
|
-
"77.9"
|
|
300
|
-
],
|
|
301
|
-
[
|
|
302
|
-
"O6uvpzGd5pu",
|
|
303
|
-
"202206",
|
|
304
|
-
"74.3"
|
|
305
|
-
],
|
|
306
|
-
[
|
|
307
|
-
"lc3eMKXaEfw",
|
|
308
|
-
"202107",
|
|
309
|
-
"88.2"
|
|
310
|
-
],
|
|
311
|
-
[
|
|
312
|
-
"lc3eMKXaEfw",
|
|
313
|
-
"202108",
|
|
314
|
-
"98.1"
|
|
315
|
-
],
|
|
316
|
-
[
|
|
317
|
-
"lc3eMKXaEfw",
|
|
318
|
-
"202109",
|
|
319
|
-
"112.7"
|
|
320
|
-
],
|
|
321
|
-
[
|
|
322
|
-
"lc3eMKXaEfw",
|
|
323
|
-
"202111",
|
|
324
|
-
"96.2"
|
|
325
|
-
],
|
|
326
|
-
[
|
|
327
|
-
"lc3eMKXaEfw",
|
|
328
|
-
"202201",
|
|
329
|
-
"58.5"
|
|
330
|
-
],
|
|
331
|
-
[
|
|
332
|
-
"lc3eMKXaEfw",
|
|
333
|
-
"202202",
|
|
334
|
-
"71.5"
|
|
335
|
-
],
|
|
336
|
-
[
|
|
337
|
-
"lc3eMKXaEfw",
|
|
338
|
-
"202203",
|
|
339
|
-
"65.8"
|
|
340
|
-
],
|
|
341
|
-
[
|
|
342
|
-
"lc3eMKXaEfw",
|
|
343
|
-
"202204",
|
|
344
|
-
"71.5"
|
|
345
|
-
],
|
|
346
|
-
[
|
|
347
|
-
"lc3eMKXaEfw",
|
|
348
|
-
"202205",
|
|
349
|
-
"70.8"
|
|
350
|
-
],
|
|
351
|
-
[
|
|
352
|
-
"lc3eMKXaEfw",
|
|
353
|
-
"202206",
|
|
354
|
-
"72.6"
|
|
355
|
-
],
|
|
356
|
-
[
|
|
357
|
-
"fdc6uOvgoji",
|
|
358
|
-
"202107",
|
|
359
|
-
"75.7"
|
|
360
|
-
],
|
|
361
|
-
[
|
|
362
|
-
"fdc6uOvgoji",
|
|
363
|
-
"202108",
|
|
364
|
-
"76.6"
|
|
365
|
-
],
|
|
366
|
-
[
|
|
367
|
-
"fdc6uOvgoji",
|
|
368
|
-
"202109",
|
|
369
|
-
"83.2"
|
|
370
|
-
],
|
|
371
|
-
[
|
|
372
|
-
"fdc6uOvgoji",
|
|
373
|
-
"202110",
|
|
374
|
-
"69.8"
|
|
375
|
-
],
|
|
376
|
-
[
|
|
377
|
-
"fdc6uOvgoji",
|
|
378
|
-
"202112",
|
|
379
|
-
"119.6"
|
|
380
|
-
],
|
|
381
|
-
[
|
|
382
|
-
"fdc6uOvgoji",
|
|
383
|
-
"202201",
|
|
384
|
-
"75.4"
|
|
385
|
-
],
|
|
386
|
-
[
|
|
387
|
-
"fdc6uOvgoji",
|
|
388
|
-
"202202",
|
|
389
|
-
"80.3"
|
|
390
|
-
],
|
|
391
|
-
[
|
|
392
|
-
"fdc6uOvgoji",
|
|
393
|
-
"202203",
|
|
394
|
-
"71.7"
|
|
395
|
-
],
|
|
396
|
-
[
|
|
397
|
-
"fdc6uOvgoji",
|
|
398
|
-
"202204",
|
|
399
|
-
"77.9"
|
|
400
|
-
],
|
|
401
|
-
[
|
|
402
|
-
"fdc6uOvgoji",
|
|
403
|
-
"202205",
|
|
404
|
-
"76.5"
|
|
405
|
-
],
|
|
406
|
-
[
|
|
407
|
-
"fdc6uOvgoji",
|
|
408
|
-
"202206",
|
|
409
|
-
"76.1"
|
|
410
|
-
]
|
|
411
|
-
],
|
|
412
|
-
"height": 57,
|
|
413
|
-
"width": 3,
|
|
414
|
-
"headerWidth": 3
|
|
415
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CircularProgressDashboard } from ".";
|
|
3
|
-
const Template = args => /*#__PURE__*/React.createElement(CircularProgressDashboard, args);
|
|
4
|
-
export const Default = Template.bind({});
|
|
5
|
-
Default.args = {
|
|
6
|
-
numerator: 7,
|
|
7
|
-
denominator: 10,
|
|
8
|
-
size: 500
|
|
9
|
-
};
|
|
10
|
-
export const WithStrokeStyling = Template.bind({});
|
|
11
|
-
WithStrokeStyling.args = {
|
|
12
|
-
numerator: 7,
|
|
13
|
-
denominator: 10,
|
|
14
|
-
size: 500,
|
|
15
|
-
strokeStyle: {
|
|
16
|
-
width: "10%",
|
|
17
|
-
color: "red"
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
export const WithTextStyling = Template.bind({});
|
|
21
|
-
WithTextStyling.args = {
|
|
22
|
-
numerator: 7,
|
|
23
|
-
denominator: 10,
|
|
24
|
-
size: 500,
|
|
25
|
-
textStyle: {
|
|
26
|
-
color: "red",
|
|
27
|
-
fontWeight: "bold",
|
|
28
|
-
fontSize: "20vh"
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
export default {
|
|
32
|
-
title: "Analytics/Circular Progress Indicator",
|
|
33
|
-
component: CircularProgressDashboard
|
|
34
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CustomPivotTable } from ".";
|
|
3
|
-
import pivotTableData from "../../../data/large-table-data.json";
|
|
4
|
-
import simpleData from "../../../data/simple-data.json";
|
|
5
|
-
const Template = args => /*#__PURE__*/React.createElement(CustomPivotTable, args);
|
|
6
|
-
export const Default = Template.bind({});
|
|
7
|
-
Default.args = {
|
|
8
|
-
analytics: simpleData,
|
|
9
|
-
config: {
|
|
10
|
-
layout: {
|
|
11
|
-
columns: [{
|
|
12
|
-
dimension: "ou"
|
|
13
|
-
}, {
|
|
14
|
-
dimension: "pe",
|
|
15
|
-
label: "Period"
|
|
16
|
-
}],
|
|
17
|
-
rows: [{
|
|
18
|
-
dimension: "dx",
|
|
19
|
-
label: "Services"
|
|
20
|
-
}],
|
|
21
|
-
filter: []
|
|
22
|
-
},
|
|
23
|
-
options: {}
|
|
24
|
-
},
|
|
25
|
-
tableProps: {}
|
|
26
|
-
};
|
|
27
|
-
export const WithManyData = Template.bind({});
|
|
28
|
-
WithManyData.args = {
|
|
29
|
-
analytics: pivotTableData,
|
|
30
|
-
config: {
|
|
31
|
-
layout: {
|
|
32
|
-
columns: [{
|
|
33
|
-
dimension: "dx"
|
|
34
|
-
}, {
|
|
35
|
-
dimension: "J5jldMd8OHv",
|
|
36
|
-
label: "Facility Type"
|
|
37
|
-
}],
|
|
38
|
-
rows: [{
|
|
39
|
-
dimension: "pe",
|
|
40
|
-
label: "Period"
|
|
41
|
-
}, {
|
|
42
|
-
dimension: "ou",
|
|
43
|
-
label: "Organisation unit"
|
|
44
|
-
}],
|
|
45
|
-
filter: []
|
|
46
|
-
},
|
|
47
|
-
options: {
|
|
48
|
-
fixColumnHeaders: false
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
tableProps: {
|
|
52
|
-
scrollHeight: "800px",
|
|
53
|
-
scrollWidth: "1400px"
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
export default {
|
|
57
|
-
title: "Analytics/Pivot table",
|
|
58
|
-
component: CustomPivotTable
|
|
59
|
-
};
|