@undp/data-viz 2.0.5 → 2.0.7
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/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +515 -508
- package/dist/BulletChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +68 -68
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/GraphEl-BcKU0bG1.cjs +2 -0
- package/dist/GraphEl-BcKU0bG1.cjs.map +1 -0
- package/dist/{GraphEl-VtiYqELy.js → GraphEl-CGq1EWRn.js} +70 -8
- package/dist/GraphEl-CGq1EWRn.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +6 -1
- package/dist/GriddedGraphs.js +2 -2
- package/dist/GriddedGraphsFromConfig.d.ts +6 -1
- package/dist/HybridMap.cjs +2 -0
- package/dist/HybridMap.cjs.map +1 -0
- package/dist/HybridMap.d.ts +211 -0
- package/dist/HybridMap.js +599 -0
- package/dist/HybridMap.js.map +1 -0
- package/dist/MultiGraphDashboard.d.ts +6 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +6 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +6 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +6 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +6 -1
- package/dist/ScrollStory.d.ts +6 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +6 -1
- package/dist/SingleGraphDashboard.js +2 -2
- package/dist/SingleGraphDashboardFromConfig.d.ts +6 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +5 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +5 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +5 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +5 -0
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +1 -1
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/Types.d.ts +17 -1
- package/dist/getSchema.cjs +1 -1
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.d.ts +3 -3
- package/dist/getSchema.js +4 -0
- package/dist/getSchema.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +356 -221
- package/dist/index.js +163 -161
- package/dist/index.js.map +1 -1
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.d.ts +1 -1
- package/dist/transformData.js +2 -2
- package/dist/{transformDataForAggregation-CE3bAlHU.js → transformDataForAggregation-CjwEAUOR.js} +62 -31
- package/dist/transformDataForAggregation-CjwEAUOR.js.map +1 -0
- package/dist/transformDataForAggregation-DAGK2BZy.cjs +2 -0
- package/dist/transformDataForAggregation-DAGK2BZy.cjs.map +1 -0
- package/dist/{transformDataForGraphFromFile-DaJHQCsL.cjs → transformDataForGraphFromFile-B1zJSPRP.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-DaJHQCsL.cjs.map → transformDataForGraphFromFile-B1zJSPRP.cjs.map} +1 -1
- package/dist/{transformDataForGraphFromFile-BExxcITV.js → transformDataForGraphFromFile-D5TMQYYd.js} +2 -2
- package/dist/{transformDataForGraphFromFile-BExxcITV.js.map → transformDataForGraphFromFile-D5TMQYYd.js.map} +1 -1
- package/dist/validateSchema.d.ts +1 -1
- package/package.json +6 -1
- package/dist/GraphEl-D5RBCD7p.cjs +0 -2
- package/dist/GraphEl-D5RBCD7p.cjs.map +0 -1
- package/dist/GraphEl-VtiYqELy.js.map +0 -1
- package/dist/transformDataForAggregation-CE3bAlHU.js.map +0 -1
- package/dist/transformDataForAggregation-KXGm6flX.cjs +0 -2
- package/dist/transformDataForAggregation-KXGm6flX.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -12,186 +12,188 @@ import { DifferenceLineChart as M } from "./DifferenceLineChart.js";
|
|
|
12
12
|
import { SparkLine as B } from "./SparkLine.js";
|
|
13
13
|
import { BiVariateChoroplethMap as P } from "./BiVariateChoroplethMap.js";
|
|
14
14
|
import { ChoroplethMap as A } from "./ChoroplethMap.js";
|
|
15
|
-
import { DotDensityMap as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
15
|
+
import { DotDensityMap as H } from "./DotDensityMap.js";
|
|
16
|
+
import { HybridMap as k } from "./HybridMap.js";
|
|
17
|
+
import { ThreeDGlobe as I } from "./ThreeDGlobe.js";
|
|
18
|
+
import { GeoHubMap as W } from "./GeoHubMap.js";
|
|
19
|
+
import { GeoHubCompareMaps as V } from "./GeoHubCompareMaps.js";
|
|
20
|
+
import { GeoHubMapWithLayerSelection as E } from "./GeoHubMapWithLayerSelection.js";
|
|
21
|
+
import { ScatterPlot as q } from "./ScatterPlot.js";
|
|
22
|
+
import { SlopeChart as j } from "./SlopeChart.js";
|
|
23
|
+
import { BulletChart as K } from "./BulletChart.js";
|
|
24
|
+
import { AreaChart as Y } from "./AreaChart.js";
|
|
25
|
+
import { BasicStatCard as _ } from "./BasicStatCard.js";
|
|
26
|
+
import { StatCardFromData as rr } from "./StatCardFromData.js";
|
|
27
|
+
import { TreeMapGraph as er } from "./TreeMapGraph.js";
|
|
28
|
+
import { UnitChart as tr } from "./UnitChart.js";
|
|
29
|
+
import { HeatMap as pr } from "./HeatMap.js";
|
|
30
|
+
import { DataTable as hr } from "./DataTable.js";
|
|
31
|
+
import { DataCards as xr } from "./DataCards.js";
|
|
32
|
+
import { StripChart as sr } from "./StripChart.js";
|
|
33
|
+
import { ParetoChart as dr } from "./ParetoChart.js";
|
|
34
|
+
import { ButterflyChart as Sr } from "./ButterflyChart.js";
|
|
35
|
+
import { Histogram as cr } from "./Histogram.js";
|
|
36
|
+
import { SankeyChart as Gr } from "./SankeyChart.js";
|
|
37
|
+
import { RadarChart as br } from "./RadarChart.js";
|
|
38
|
+
import { MultiGraphDashboard as Mr } from "./MultiGraphDashboard.js";
|
|
39
|
+
import { PerformanceIntensiveMultiGraphDashboard as Br } from "./PerformanceIntensiveMultiGraphDashboard.js";
|
|
40
|
+
import { MultiGraphDashboardWideToLongFormat as Pr } from "./MultiGraphDashboardWideToLongFormat.js";
|
|
41
|
+
import { SingleGraphDashboard as Ar } from "./SingleGraphDashboard.js";
|
|
42
|
+
import { SingleGraphDashboardGeoHubMaps as Hr } from "./SingleGraphDashboardGeoHubMaps.js";
|
|
43
|
+
import { SingleGraphDashboardThreeDGraphs as kr } from "./SingleGraphDashboardThreeDGraphs.js";
|
|
44
|
+
import { GriddedGraphs as Ir } from "./GriddedGraphs.js";
|
|
45
|
+
import { ScrollStory as Wr } from "./ScrollStory.js";
|
|
46
|
+
import { PerformanceIntensiveScrollStory as Vr } from "./PerformanceIntensiveScrollStory.js";
|
|
47
|
+
import { MultiGraphDashboardFromConfig as Er } from "./MultiGraphDashboardFromConfig.js";
|
|
48
|
+
import { PerformanceIntensiveMultiGraphDashboardFromConfig as qr } from "./PerformanceIntensiveMultiGraphDashboardFromConfig.js";
|
|
49
|
+
import { MultiGraphDashboardWideToLongFormatFromConfig as jr } from "./MultiGraphDashboardWideToLongFormatFromConfig.js";
|
|
50
|
+
import { SingleGraphDashboardFromConfig as Kr } from "./SingleGraphDashboardFromConfig.js";
|
|
51
|
+
import { SingleGraphDashboardGeoHubMapsFromConfig as Yr } from "./SingleGraphDashboardGeoHubMapsFromConfig.js";
|
|
52
|
+
import { SingleGraphDashboardThreeDGraphsFromConfig as _r } from "./SingleGraphDashboardThreeDGraphsFromConfig.js";
|
|
53
|
+
import { GriddedGraphsFromConfig as ro } from "./GriddedGraphsFromConfig.js";
|
|
54
|
+
import { ExcelDownloadButton as eo } from "./ExcelDownloadButton.js";
|
|
55
|
+
import { ImageDownloadButton as to } from "./ImageDownloadButton.js";
|
|
56
|
+
import { SVGDownloadButton as po } from "./SVGDownloadButton.js";
|
|
57
|
+
import { CsvDownloadButton as ho } from "./CsvDownloadButton.js";
|
|
58
|
+
import { CopyTextButton as xo } from "./CopyTextButton.js";
|
|
59
|
+
import { Colors as so } from "./Colors.js";
|
|
60
|
+
import { ColorLegend as go } from "./ColorLegend.js";
|
|
61
|
+
import { ColorLegendWithMouseOver as Co } from "./ColorLegendWithMouseOver.js";
|
|
62
|
+
import { LinearColorLegend as Do } from "./LinearColorLegend.js";
|
|
63
|
+
import { ThresholdColorLegendWithMouseOver as uo } from "./ThresholdColorLegendWithMouseOver.js";
|
|
64
|
+
import { GraphFooter as Fo } from "./GraphFooter.js";
|
|
65
|
+
import { GraphHeader as Lo } from "./GraphHeader.js";
|
|
66
|
+
import { FootNote as To } from "./FootNote.js";
|
|
67
|
+
import { GraphDescription as vo } from "./GraphDescription.js";
|
|
68
|
+
import { GraphTitle as yo } from "./GraphTitle.js";
|
|
68
69
|
import { S as Oo } from "./Source-DwTHB8fn.js";
|
|
69
|
-
import { c as
|
|
70
|
-
import { g as
|
|
71
|
-
import { n as
|
|
72
|
-
import { g as
|
|
73
|
-
import { g as
|
|
74
|
-
import { i as
|
|
75
|
-
import { s as
|
|
76
|
-
import { e as
|
|
77
|
-
import { g as
|
|
78
|
-
import { g as
|
|
79
|
-
import { b as
|
|
80
|
-
import { t as
|
|
81
|
-
import { t as
|
|
82
|
-
import { validateConfigSchema as
|
|
83
|
-
import { getDashboardJSONSchema as
|
|
84
|
-
import { g as
|
|
70
|
+
import { c as wo } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
71
|
+
import { g as No, a as Wo, b as Jo, c as Vo, r as Uo } from "./removeOutliers-BqW0sPqj.js";
|
|
72
|
+
import { n as Ro } from "./numberFormattingFunction-14YCbkN2.js";
|
|
73
|
+
import { g as Qo } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
74
|
+
import { g as zo } from "./getJenks-BbngDoBQ.js";
|
|
75
|
+
import { i as Xo } from "./imageDownload-BU4qnxJP.js";
|
|
76
|
+
import { s as Zo } from "./svgDownload-BAoarWNt.js";
|
|
77
|
+
import { e as $o } from "./excelDownload-BEC1AyQW.js";
|
|
78
|
+
import { g as oe } from "./getUniqValue-BKHCm3zE.js";
|
|
79
|
+
import { g as ae } from "./getCentroidCoordinates-D7r34N4w.js";
|
|
80
|
+
import { b as me, d as pe, f as fe, c as he, a as ne, t as xe } from "./fetchAndParseData-BpqkBPQL.js";
|
|
81
|
+
import { t as se, a as le } from "./transformDataForAggregation-CjwEAUOR.js";
|
|
82
|
+
import { t as ge } from "./transformDataForGraphFromFile-D5TMQYYd.js";
|
|
83
|
+
import { validateConfigSchema as Ce, validateDataSchema as ce, validateSettingsSchema as De } from "./validateSchema.js";
|
|
84
|
+
import { getDashboardJSONSchema as ue, getDashboardWideToLongFormatJSONSchema as be, getDataFiltersSchema as Fe, getDataSchema as Me, getDataSelectionSchema as Le, getDataSettingsSchema as Be, getDataTransformSchema as Te, getFiltersSchema as Pe, getGraphDataConfigurationSchema as ve, getGriddedGraphJSONSchema as Ae, getReadableHeaderSchema as ye, getSettingsSchema as He, getSingleGraphJSONSchema as Oe } from "./getSchema.js";
|
|
85
|
+
import { g as we } from "./getGraphList-BpEWn1Tk.js";
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
Y as AreaChart,
|
|
88
|
+
_ as BasicStatCard,
|
|
88
89
|
s as BeeSwarmChart,
|
|
89
90
|
P as BiVariateChoroplethMap,
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
K as BulletChart,
|
|
92
|
+
Sr as ButterflyChart,
|
|
92
93
|
A as ChoroplethMap,
|
|
93
94
|
p as CirclePackingGraph,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
go as ColorLegend,
|
|
96
|
+
Co as ColorLegendWithMouseOver,
|
|
97
|
+
so as Colors,
|
|
98
|
+
xo as CopyTextButton,
|
|
99
|
+
ho as CsvDownloadButton,
|
|
100
|
+
xr as DataCards,
|
|
101
|
+
hr as DataTable,
|
|
101
102
|
M as DifferenceLineChart,
|
|
102
103
|
h as DonutChart,
|
|
103
|
-
|
|
104
|
+
H as DotDensityMap,
|
|
104
105
|
d as DualAxisLineChart,
|
|
105
106
|
x as DumbbellChart,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
107
|
+
eo as ExcelDownloadButton,
|
|
108
|
+
To as FootNote,
|
|
109
|
+
V as GeoHubCompareMaps,
|
|
110
|
+
W as GeoHubMap,
|
|
111
|
+
E as GeoHubMapWithLayerSelection,
|
|
112
|
+
vo as GraphDescription,
|
|
113
|
+
Fo as GraphFooter,
|
|
114
|
+
Lo as GraphHeader,
|
|
115
|
+
yo as GraphTitle,
|
|
116
|
+
Ir as GriddedGraphs,
|
|
117
|
+
ro as GriddedGraphsFromConfig,
|
|
117
118
|
e as GroupedBarGraph,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
pr as HeatMap,
|
|
120
|
+
cr as Histogram,
|
|
121
|
+
k as HybridMap,
|
|
122
|
+
to as ImageDownloadButton,
|
|
121
123
|
S as LineChartWithConfidenceInterval,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
Do as LinearColorLegend,
|
|
125
|
+
Mr as MultiGraphDashboard,
|
|
126
|
+
Er as MultiGraphDashboardFromConfig,
|
|
127
|
+
Pr as MultiGraphDashboardWideToLongFormat,
|
|
128
|
+
jr as MultiGraphDashboardWideToLongFormatFromConfig,
|
|
127
129
|
b as MultiLineAltChart,
|
|
128
130
|
G as MultiLineChart,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
dr as ParetoChart,
|
|
132
|
+
Br as PerformanceIntensiveMultiGraphDashboard,
|
|
133
|
+
qr as PerformanceIntensiveMultiGraphDashboardFromConfig,
|
|
134
|
+
Vr as PerformanceIntensiveScrollStory,
|
|
135
|
+
br as RadarChart,
|
|
136
|
+
po as SVGDownloadButton,
|
|
137
|
+
Gr as SankeyChart,
|
|
138
|
+
q as ScatterPlot,
|
|
139
|
+
Wr as ScrollStory,
|
|
138
140
|
a as SimpleBarGraph,
|
|
139
141
|
c as SimpleLineChart,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
142
|
+
Ar as SingleGraphDashboard,
|
|
143
|
+
Kr as SingleGraphDashboardFromConfig,
|
|
144
|
+
Hr as SingleGraphDashboardGeoHubMaps,
|
|
145
|
+
Yr as SingleGraphDashboardGeoHubMapsFromConfig,
|
|
146
|
+
kr as SingleGraphDashboardThreeDGraphs,
|
|
147
|
+
_r as SingleGraphDashboardThreeDGraphsFromConfig,
|
|
148
|
+
j as SlopeChart,
|
|
147
149
|
Oo as Source,
|
|
148
150
|
B as SparkLine,
|
|
149
151
|
t as StackedBarGraph,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
152
|
+
rr as StatCardFromData,
|
|
153
|
+
sr as StripChart,
|
|
154
|
+
I as ThreeDGlobe,
|
|
155
|
+
uo as ThresholdColorLegendWithMouseOver,
|
|
156
|
+
er as TreeMapGraph,
|
|
157
|
+
tr as UnitChart,
|
|
158
|
+
wo as checkIfNullOrUndefined,
|
|
159
|
+
$o as excelDownload,
|
|
160
|
+
me as fetchAndParseCSV,
|
|
161
|
+
pe as fetchAndParseCSVFromTextBlob,
|
|
162
|
+
fe as fetchAndParseJSON,
|
|
163
|
+
he as fetchAndParseMultipleDataSources,
|
|
164
|
+
ne as fetchAndTransformDataFromAPI,
|
|
165
|
+
No as generateEmbedLink,
|
|
166
|
+
Wo as generateIframeCode,
|
|
167
|
+
ae as getCentroidCoordinates,
|
|
168
|
+
ue as getDashboardJSONSchema,
|
|
169
|
+
be as getDashboardWideToLongFormatJSONSchema,
|
|
170
|
+
Fe as getDataFiltersSchema,
|
|
171
|
+
Me as getDataSchema,
|
|
172
|
+
Le as getDataSelectionSchema,
|
|
173
|
+
Be as getDataSettingsSchema,
|
|
174
|
+
Te as getDataTransformSchema,
|
|
175
|
+
Pe as getFiltersSchema,
|
|
176
|
+
ve as getGraphDataConfigurationSchema,
|
|
177
|
+
Ae as getGriddedGraphJSONSchema,
|
|
178
|
+
zo as getJenks,
|
|
179
|
+
Jo as getPercentileValue,
|
|
180
|
+
Vo as getQueryParamsFromLink,
|
|
181
|
+
ye as getReadableHeaderSchema,
|
|
182
|
+
He as getSettingsSchema,
|
|
181
183
|
Oe as getSingleGraphJSONSchema,
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
184
|
+
Qo as getTextColorBasedOnBgColor,
|
|
185
|
+
oe as getUniqValue,
|
|
186
|
+
we as graphList,
|
|
187
|
+
Xo as imageDownload,
|
|
188
|
+
Ro as numberFormattingFunction,
|
|
189
|
+
Uo as removeOutliers,
|
|
190
|
+
Zo as svgDownload,
|
|
191
|
+
xe as transformColumnsToArray,
|
|
192
|
+
se as transformDataForAggregation,
|
|
193
|
+
le as transformDataForGraph,
|
|
194
|
+
ge as transformDataForGraphFromFile,
|
|
195
|
+
Ce as validateConfigSchema,
|
|
196
|
+
ce as validateDataSchema,
|
|
197
|
+
De as validateSettingsSchema
|
|
196
198
|
};
|
|
197
199
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/transformData.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./transformDataForAggregation-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./transformDataForAggregation-DAGK2BZy.cjs"),a=require("./fetchAndParseData-l5HGMAEs.cjs"),o=require("./transformDataForGraphFromFile-B1zJSPRP.cjs");exports.transformDataForAggregation=r.transformDataForAggregation;exports.transformDataForGraph=r.transformDataForGraph;exports.transformColumnsToArray=a.transformColumnsToArray;exports.transformDataForGraphFromFile=o.transformDataForGraphFromFile;
|
|
2
2
|
//# sourceMappingURL=transformData.cjs.map
|
package/dist/transformData.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ declare interface GraphConfigurationDataType {
|
|
|
25
25
|
|
|
26
26
|
declare type GraphType = GraphTypeForGriddedGraph;
|
|
27
27
|
|
|
28
|
-
declare type GraphTypeForGriddedGraph = 'barChart' | 'stackedBarChart' | 'groupedBarChart' | 'lineChart' | 'dualAxisLineChart' | 'multiLineChart' | 'multiLineAltChart' | 'differenceLineChart' | 'stackedAreaChart' | 'choroplethMap' | 'biVariateChoroplethMap' | 'dotDensityMap' | 'donutChart' | 'slopeChart' | 'scatterPlot' | 'dumbbellChart' | 'treeMap' | 'circlePacking' | 'heatMap' | 'stripChart' | 'beeSwarmChart' | 'butterflyChart' | 'histogram' | 'sparkLine' | 'paretoChart' | 'dataTable' | 'statCard' | 'unitChart' | 'sankeyChart' | 'lineChartWithConfidenceInterval' | 'dataCards' | 'radarChart' | 'bulletChart';
|
|
28
|
+
declare type GraphTypeForGriddedGraph = 'barChart' | 'stackedBarChart' | 'groupedBarChart' | 'lineChart' | 'dualAxisLineChart' | 'multiLineChart' | 'multiLineAltChart' | 'differenceLineChart' | 'stackedAreaChart' | 'choroplethMap' | 'biVariateChoroplethMap' | 'hybridMap' | 'dotDensityMap' | 'donutChart' | 'slopeChart' | 'scatterPlot' | 'dumbbellChart' | 'treeMap' | 'circlePacking' | 'heatMap' | 'stripChart' | 'beeSwarmChart' | 'butterflyChart' | 'histogram' | 'sparkLine' | 'paretoChart' | 'dataTable' | 'statCard' | 'unitChart' | 'sankeyChart' | 'lineChartWithConfidenceInterval' | 'dataCards' | 'radarChart' | 'bulletChart';
|
|
29
29
|
|
|
30
30
|
declare type ThreeDGraphType = 'threeDGlobe';
|
|
31
31
|
|
package/dist/transformData.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as o, a as t } from "./transformDataForAggregation-
|
|
1
|
+
import { t as o, a as t } from "./transformDataForAggregation-CjwEAUOR.js";
|
|
2
2
|
import { t as s } from "./fetchAndParseData-BpqkBPQL.js";
|
|
3
|
-
import { t as n } from "./transformDataForGraphFromFile-
|
|
3
|
+
import { t as n } from "./transformDataForGraphFromFile-D5TMQYYd.js";
|
|
4
4
|
export {
|
|
5
5
|
s as transformColumnsToArray,
|
|
6
6
|
o as transformDataForAggregation,
|
package/dist/{transformDataForAggregation-CE3bAlHU.js → transformDataForAggregation-CjwEAUOR.js}
RENAMED
|
@@ -240,6 +240,37 @@ const m = [{
|
|
|
240
240
|
required: !1,
|
|
241
241
|
multiple: !1
|
|
242
242
|
}]
|
|
243
|
+
}, {
|
|
244
|
+
chartID: "hybridMap",
|
|
245
|
+
configuration: [{
|
|
246
|
+
id: "id",
|
|
247
|
+
required: !1,
|
|
248
|
+
multiple: !1
|
|
249
|
+
}, {
|
|
250
|
+
id: "x",
|
|
251
|
+
required: !1,
|
|
252
|
+
multiple: !1
|
|
253
|
+
}, {
|
|
254
|
+
id: "lat",
|
|
255
|
+
required: !1,
|
|
256
|
+
multiple: !1
|
|
257
|
+
}, {
|
|
258
|
+
id: "long",
|
|
259
|
+
required: !1,
|
|
260
|
+
multiple: !1
|
|
261
|
+
}, {
|
|
262
|
+
id: "label",
|
|
263
|
+
multiple: !1,
|
|
264
|
+
required: !1
|
|
265
|
+
}, {
|
|
266
|
+
id: "radius",
|
|
267
|
+
required: !1,
|
|
268
|
+
multiple: !1
|
|
269
|
+
}, {
|
|
270
|
+
id: "date",
|
|
271
|
+
required: !1,
|
|
272
|
+
multiple: !1
|
|
273
|
+
}]
|
|
243
274
|
}, {
|
|
244
275
|
chartID: "donutChart",
|
|
245
276
|
configuration: [{
|
|
@@ -496,48 +527,48 @@ const m = [{
|
|
|
496
527
|
multiple: !1
|
|
497
528
|
}]
|
|
498
529
|
}];
|
|
499
|
-
function p(
|
|
500
|
-
return a.filter((d) => !
|
|
530
|
+
function p(l, a) {
|
|
531
|
+
return a.filter((d) => !l.includes(d));
|
|
501
532
|
}
|
|
502
|
-
function I(
|
|
503
|
-
const
|
|
533
|
+
function I(l, a, d) {
|
|
534
|
+
const o = q(l.map((e) => e.columnId)), u = p(d, o);
|
|
504
535
|
if (u.length !== 0) return {
|
|
505
536
|
isValid: !1,
|
|
506
537
|
err: `Key(s) in configuration that don't match keys in the data: ${u.join(", ")}. Possible reason: If you are using 'dataTransform' then the allowed keys (columns) are only the one present in 'aggregationColumnsSetting' array in 'dataTransform' object plus an additional key called 'count'.`
|
|
507
538
|
};
|
|
508
|
-
const
|
|
539
|
+
const f = l.map((e) => e.chartConfigId), t = m[m.findIndex((e) => e.chartID === a)].configuration.filter((e) => e.required).map((e) => e.id), i = p(f, t);
|
|
509
540
|
return {
|
|
510
541
|
isValid: i.length === 0,
|
|
511
542
|
err: i.length === 0 ? void 0 : `Missing required ID(s) in configuration: ${i.join(", ")}`
|
|
512
543
|
};
|
|
513
544
|
}
|
|
514
|
-
function M(
|
|
515
|
-
if (h.filter((u) => u.geoHubMapPresentation).map((u) => u.graphID).indexOf(a) !== -1) return
|
|
516
|
-
if (!
|
|
517
|
-
if (a === "dataTable" || a === "dataCards" ||
|
|
545
|
+
function M(l, a, d) {
|
|
546
|
+
if (h.filter((u) => u.geoHubMapPresentation).map((u) => u.graphID).indexOf(a) !== -1) return l;
|
|
547
|
+
if (!l) return "Cannot fetch data";
|
|
548
|
+
if (a === "dataTable" || a === "dataCards" || l.length === 0) return l;
|
|
518
549
|
if (!d)
|
|
519
550
|
return console.error("Your data configuration is not accurate"), "No graph configuration is provided";
|
|
520
|
-
const
|
|
521
|
-
if (
|
|
522
|
-
const u = m[m.findIndex((
|
|
523
|
-
return
|
|
551
|
+
const o = I(d, a, Object.keys(l[0]));
|
|
552
|
+
if (o.isValid) {
|
|
553
|
+
const u = m[m.findIndex((t) => t.chartID === a)].configuration;
|
|
554
|
+
return l.map((t) => {
|
|
524
555
|
const i = {};
|
|
525
556
|
return d.filter((e) => e.columnId).forEach((e) => {
|
|
526
557
|
u[u.findIndex((r) => r.id === e.chartConfigId)].multiple ? (i[u[u.findIndex((r) => r.id === e.chartConfigId)].id] = [], e.columnId.forEach((r) => {
|
|
527
|
-
i[u[u.findIndex((n) => n.id === e.chartConfigId)].id].push(c(
|
|
528
|
-
})) : i[u[u.findIndex((r) => r.id === e.chartConfigId)].id] = c(
|
|
529
|
-
}), i.data =
|
|
558
|
+
i[u[u.findIndex((n) => n.id === e.chartConfigId)].id].push(c(t[r]) ? null : t[r]);
|
|
559
|
+
})) : i[u[u.findIndex((r) => r.id === e.chartConfigId)].id] = c(t[e.columnId]) ? null : t[e.columnId], i[`${e.chartConfigId}Columns`] = e.columnId;
|
|
560
|
+
}), i.data = t, i;
|
|
530
561
|
});
|
|
531
562
|
}
|
|
532
|
-
return console.error(
|
|
563
|
+
return console.error(o.err), o.err;
|
|
533
564
|
}
|
|
534
|
-
function v(
|
|
535
|
-
return
|
|
565
|
+
function v(l, a, d) {
|
|
566
|
+
return l.length === 0 ? [] : typeof l[0][a] != "object" ? g(l, a).map((t) => {
|
|
536
567
|
const i = {};
|
|
537
|
-
i[a] =
|
|
538
|
-
const e =
|
|
568
|
+
i[a] = t;
|
|
569
|
+
const e = l.filter(
|
|
539
570
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
540
|
-
(r) => r[a] ===
|
|
571
|
+
(r) => r[a] === t
|
|
541
572
|
);
|
|
542
573
|
return i.count = e.length, i.rollUpData = e, d?.forEach((r) => {
|
|
543
574
|
i[r.column] = r.aggregationMethod === "average" ? parseFloat(
|
|
@@ -554,15 +585,15 @@ function v(t, a, d) {
|
|
|
554
585
|
s(e.map((n) => n[r.column]))
|
|
555
586
|
);
|
|
556
587
|
}), i;
|
|
557
|
-
}) : [...new Set(q(
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
const i =
|
|
588
|
+
}) : [...new Set(q(l.map((f) => f[a])))].map((f) => {
|
|
589
|
+
const t = {};
|
|
590
|
+
t[a] = f;
|
|
591
|
+
const i = l.filter(
|
|
561
592
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
562
|
-
(e) => e[a].indexOf(
|
|
593
|
+
(e) => e[a].indexOf(f) !== -1
|
|
563
594
|
);
|
|
564
|
-
return
|
|
565
|
-
|
|
595
|
+
return t.rollUpData = i, t.count = i.length, d?.forEach((e) => {
|
|
596
|
+
t[e.column] = e.aggregationMethod === "average" ? parseFloat(
|
|
566
597
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
567
598
|
(s(i.map((r) => r[e.column])) / i.length).toFixed(2)
|
|
568
599
|
) : e.aggregationMethod === "max" ? (
|
|
@@ -575,11 +606,11 @@ function v(t, a, d) {
|
|
|
575
606
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
576
607
|
s(i.map((r) => r[e.column]))
|
|
577
608
|
);
|
|
578
|
-
}),
|
|
609
|
+
}), t;
|
|
579
610
|
});
|
|
580
611
|
}
|
|
581
612
|
export {
|
|
582
613
|
M as a,
|
|
583
614
|
v as t
|
|
584
615
|
};
|
|
585
|
-
//# sourceMappingURL=transformDataForAggregation-
|
|
616
|
+
//# sourceMappingURL=transformDataForAggregation-CjwEAUOR.js.map
|