@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.
Files changed (70) hide show
  1. package/dist/BulletChart.cjs +1 -1
  2. package/dist/BulletChart.cjs.map +1 -1
  3. package/dist/BulletChart.d.ts +2 -0
  4. package/dist/BulletChart.js +515 -508
  5. package/dist/BulletChart.js.map +1 -1
  6. package/dist/ChoroplethMap.cjs +1 -1
  7. package/dist/ChoroplethMap.cjs.map +1 -1
  8. package/dist/ChoroplethMap.js +68 -68
  9. package/dist/ChoroplethMap.js.map +1 -1
  10. package/dist/GraphEl-BcKU0bG1.cjs +2 -0
  11. package/dist/GraphEl-BcKU0bG1.cjs.map +1 -0
  12. package/dist/{GraphEl-VtiYqELy.js → GraphEl-CGq1EWRn.js} +70 -8
  13. package/dist/GraphEl-CGq1EWRn.js.map +1 -0
  14. package/dist/GriddedGraphs.cjs +1 -1
  15. package/dist/GriddedGraphs.d.ts +6 -1
  16. package/dist/GriddedGraphs.js +2 -2
  17. package/dist/GriddedGraphsFromConfig.d.ts +6 -1
  18. package/dist/HybridMap.cjs +2 -0
  19. package/dist/HybridMap.cjs.map +1 -0
  20. package/dist/HybridMap.d.ts +211 -0
  21. package/dist/HybridMap.js +599 -0
  22. package/dist/HybridMap.js.map +1 -0
  23. package/dist/MultiGraphDashboard.d.ts +6 -1
  24. package/dist/MultiGraphDashboardFromConfig.d.ts +6 -1
  25. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +6 -1
  26. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +6 -1
  27. package/dist/PerformanceIntensiveScrollStory.d.ts +6 -1
  28. package/dist/ScrollStory.d.ts +6 -1
  29. package/dist/SingleGraphDashboard.cjs +1 -1
  30. package/dist/SingleGraphDashboard.d.ts +6 -1
  31. package/dist/SingleGraphDashboard.js +2 -2
  32. package/dist/SingleGraphDashboardFromConfig.d.ts +6 -1
  33. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +5 -0
  34. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +5 -0
  35. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  36. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +5 -0
  37. package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
  38. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +5 -0
  39. package/dist/ThreeDGlobe.cjs.map +1 -1
  40. package/dist/ThreeDGlobe.d.ts +1 -1
  41. package/dist/ThreeDGlobe.js.map +1 -1
  42. package/dist/Types.d.ts +17 -1
  43. package/dist/getSchema.cjs +1 -1
  44. package/dist/getSchema.cjs.map +1 -1
  45. package/dist/getSchema.d.ts +3 -3
  46. package/dist/getSchema.js +4 -0
  47. package/dist/getSchema.js.map +1 -1
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.d.ts +356 -221
  50. package/dist/index.js +163 -161
  51. package/dist/index.js.map +1 -1
  52. package/dist/transformData.cjs +1 -1
  53. package/dist/transformData.d.ts +1 -1
  54. package/dist/transformData.js +2 -2
  55. package/dist/{transformDataForAggregation-CE3bAlHU.js → transformDataForAggregation-CjwEAUOR.js} +62 -31
  56. package/dist/transformDataForAggregation-CjwEAUOR.js.map +1 -0
  57. package/dist/transformDataForAggregation-DAGK2BZy.cjs +2 -0
  58. package/dist/transformDataForAggregation-DAGK2BZy.cjs.map +1 -0
  59. package/dist/{transformDataForGraphFromFile-DaJHQCsL.cjs → transformDataForGraphFromFile-B1zJSPRP.cjs} +2 -2
  60. package/dist/{transformDataForGraphFromFile-DaJHQCsL.cjs.map → transformDataForGraphFromFile-B1zJSPRP.cjs.map} +1 -1
  61. package/dist/{transformDataForGraphFromFile-BExxcITV.js → transformDataForGraphFromFile-D5TMQYYd.js} +2 -2
  62. package/dist/{transformDataForGraphFromFile-BExxcITV.js.map → transformDataForGraphFromFile-D5TMQYYd.js.map} +1 -1
  63. package/dist/validateSchema.d.ts +1 -1
  64. package/package.json +6 -1
  65. package/dist/GraphEl-D5RBCD7p.cjs +0 -2
  66. package/dist/GraphEl-D5RBCD7p.cjs.map +0 -1
  67. package/dist/GraphEl-VtiYqELy.js.map +0 -1
  68. package/dist/transformDataForAggregation-CE3bAlHU.js.map +0 -1
  69. package/dist/transformDataForAggregation-KXGm6flX.cjs +0 -2
  70. 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 y } from "./DotDensityMap.js";
16
- import { ThreeDGlobe as k } from "./ThreeDGlobe.js";
17
- import { GeoHubMap as I } from "./GeoHubMap.js";
18
- import { GeoHubCompareMaps as W } from "./GeoHubCompareMaps.js";
19
- import { GeoHubMapWithLayerSelection as V } from "./GeoHubMapWithLayerSelection.js";
20
- import { ScatterPlot as E } from "./ScatterPlot.js";
21
- import { SlopeChart as q } from "./SlopeChart.js";
22
- import { BulletChart as j } from "./BulletChart.js";
23
- import { AreaChart as K } from "./AreaChart.js";
24
- import { BasicStatCard as Y } from "./BasicStatCard.js";
25
- import { StatCardFromData as _ } from "./StatCardFromData.js";
26
- import { TreeMapGraph as rr } from "./TreeMapGraph.js";
27
- import { UnitChart as er } from "./UnitChart.js";
28
- import { HeatMap as tr } from "./HeatMap.js";
29
- import { DataTable as pr } from "./DataTable.js";
30
- import { DataCards as hr } from "./DataCards.js";
31
- import { StripChart as xr } from "./StripChart.js";
32
- import { ParetoChart as sr } from "./ParetoChart.js";
33
- import { ButterflyChart as dr } from "./ButterflyChart.js";
34
- import { Histogram as Sr } from "./Histogram.js";
35
- import { SankeyChart as cr } from "./SankeyChart.js";
36
- import { RadarChart as Gr } from "./RadarChart.js";
37
- import { MultiGraphDashboard as br } from "./MultiGraphDashboard.js";
38
- import { PerformanceIntensiveMultiGraphDashboard as Mr } from "./PerformanceIntensiveMultiGraphDashboard.js";
39
- import { MultiGraphDashboardWideToLongFormat as Br } from "./MultiGraphDashboardWideToLongFormat.js";
40
- import { SingleGraphDashboard as Pr } from "./SingleGraphDashboard.js";
41
- import { SingleGraphDashboardGeoHubMaps as Ar } from "./SingleGraphDashboardGeoHubMaps.js";
42
- import { SingleGraphDashboardThreeDGraphs as yr } from "./SingleGraphDashboardThreeDGraphs.js";
43
- import { GriddedGraphs as kr } from "./GriddedGraphs.js";
44
- import { ScrollStory as Ir } from "./ScrollStory.js";
45
- import { PerformanceIntensiveScrollStory as Wr } from "./PerformanceIntensiveScrollStory.js";
46
- import { MultiGraphDashboardFromConfig as Vr } from "./MultiGraphDashboardFromConfig.js";
47
- import { PerformanceIntensiveMultiGraphDashboardFromConfig as Er } from "./PerformanceIntensiveMultiGraphDashboardFromConfig.js";
48
- import { MultiGraphDashboardWideToLongFormatFromConfig as qr } from "./MultiGraphDashboardWideToLongFormatFromConfig.js";
49
- import { SingleGraphDashboardFromConfig as jr } from "./SingleGraphDashboardFromConfig.js";
50
- import { SingleGraphDashboardGeoHubMapsFromConfig as Kr } from "./SingleGraphDashboardGeoHubMapsFromConfig.js";
51
- import { SingleGraphDashboardThreeDGraphsFromConfig as Yr } from "./SingleGraphDashboardThreeDGraphsFromConfig.js";
52
- import { GriddedGraphsFromConfig as _r } from "./GriddedGraphsFromConfig.js";
53
- import { ExcelDownloadButton as ro } from "./ExcelDownloadButton.js";
54
- import { ImageDownloadButton as eo } from "./ImageDownloadButton.js";
55
- import { SVGDownloadButton as to } from "./SVGDownloadButton.js";
56
- import { CsvDownloadButton as po } from "./CsvDownloadButton.js";
57
- import { CopyTextButton as ho } from "./CopyTextButton.js";
58
- import { Colors as xo } from "./Colors.js";
59
- import { ColorLegend as so } from "./ColorLegend.js";
60
- import { ColorLegendWithMouseOver as go } from "./ColorLegendWithMouseOver.js";
61
- import { LinearColorLegend as Co } from "./LinearColorLegend.js";
62
- import { ThresholdColorLegendWithMouseOver as Do } from "./ThresholdColorLegendWithMouseOver.js";
63
- import { GraphFooter as uo } from "./GraphFooter.js";
64
- import { GraphHeader as Fo } from "./GraphHeader.js";
65
- import { FootNote as Lo } from "./FootNote.js";
66
- import { GraphDescription as To } from "./GraphDescription.js";
67
- import { GraphTitle as vo } from "./GraphTitle.js";
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 Ho } from "./checkIfNullOrUndefined-DmfiKkNw.js";
70
- import { g as wo, a as Io, b as No, c as Wo, r as Jo } from "./removeOutliers-BqW0sPqj.js";
71
- import { n as Uo } from "./numberFormattingFunction-14YCbkN2.js";
72
- import { g as Ro } from "./getTextColorBasedOnBgColor-CDY808zi.js";
73
- import { g as Qo } from "./getJenks-BbngDoBQ.js";
74
- import { i as zo } from "./imageDownload-BU4qnxJP.js";
75
- import { s as Xo } from "./svgDownload-BAoarWNt.js";
76
- import { e as Zo } from "./excelDownload-BEC1AyQW.js";
77
- import { g as $o } from "./getUniqValue-BKHCm3zE.js";
78
- import { g as oe } from "./getCentroidCoordinates-D7r34N4w.js";
79
- import { b as ae, d as te, f as me, c as pe, a as fe, t as he } from "./fetchAndParseData-BpqkBPQL.js";
80
- import { t as xe, a as ie } from "./transformDataForAggregation-CE3bAlHU.js";
81
- import { t as le } from "./transformDataForGraphFromFile-BExxcITV.js";
82
- import { validateConfigSchema as ge, validateDataSchema as Se, validateSettingsSchema as Ce } from "./validateSchema.js";
83
- import { getDashboardJSONSchema as De, getDashboardWideToLongFormatJSONSchema as Ge, getDataFiltersSchema as ue, getDataSchema as be, getDataSelectionSchema as Fe, getDataSettingsSchema as Me, getDataTransformSchema as Le, getFiltersSchema as Be, getGraphDataConfigurationSchema as Te, getGriddedGraphJSONSchema as Pe, getReadableHeaderSchema as ve, getSettingsSchema as Ae, getSingleGraphJSONSchema as Oe } from "./getSchema.js";
84
- import { g as He } from "./getGraphList-BpEWn1Tk.js";
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
- K as AreaChart,
87
- Y as BasicStatCard,
87
+ Y as AreaChart,
88
+ _ as BasicStatCard,
88
89
  s as BeeSwarmChart,
89
90
  P as BiVariateChoroplethMap,
90
- j as BulletChart,
91
- dr as ButterflyChart,
91
+ K as BulletChart,
92
+ Sr as ButterflyChart,
92
93
  A as ChoroplethMap,
93
94
  p as CirclePackingGraph,
94
- so as ColorLegend,
95
- go as ColorLegendWithMouseOver,
96
- xo as Colors,
97
- ho as CopyTextButton,
98
- po as CsvDownloadButton,
99
- hr as DataCards,
100
- pr as DataTable,
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
- y as DotDensityMap,
104
+ H as DotDensityMap,
104
105
  d as DualAxisLineChart,
105
106
  x as DumbbellChart,
106
- ro as ExcelDownloadButton,
107
- Lo as FootNote,
108
- W as GeoHubCompareMaps,
109
- I as GeoHubMap,
110
- V as GeoHubMapWithLayerSelection,
111
- To as GraphDescription,
112
- uo as GraphFooter,
113
- Fo as GraphHeader,
114
- vo as GraphTitle,
115
- kr as GriddedGraphs,
116
- _r as GriddedGraphsFromConfig,
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
- tr as HeatMap,
119
- Sr as Histogram,
120
- eo as ImageDownloadButton,
119
+ pr as HeatMap,
120
+ cr as Histogram,
121
+ k as HybridMap,
122
+ to as ImageDownloadButton,
121
123
  S as LineChartWithConfidenceInterval,
122
- Co as LinearColorLegend,
123
- br as MultiGraphDashboard,
124
- Vr as MultiGraphDashboardFromConfig,
125
- Br as MultiGraphDashboardWideToLongFormat,
126
- qr as MultiGraphDashboardWideToLongFormatFromConfig,
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
- sr as ParetoChart,
130
- Mr as PerformanceIntensiveMultiGraphDashboard,
131
- Er as PerformanceIntensiveMultiGraphDashboardFromConfig,
132
- Wr as PerformanceIntensiveScrollStory,
133
- Gr as RadarChart,
134
- to as SVGDownloadButton,
135
- cr as SankeyChart,
136
- E as ScatterPlot,
137
- Ir as ScrollStory,
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
- Pr as SingleGraphDashboard,
141
- jr as SingleGraphDashboardFromConfig,
142
- Ar as SingleGraphDashboardGeoHubMaps,
143
- Kr as SingleGraphDashboardGeoHubMapsFromConfig,
144
- yr as SingleGraphDashboardThreeDGraphs,
145
- Yr as SingleGraphDashboardThreeDGraphsFromConfig,
146
- q as SlopeChart,
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
- _ as StatCardFromData,
151
- xr as StripChart,
152
- k as ThreeDGlobe,
153
- Do as ThresholdColorLegendWithMouseOver,
154
- rr as TreeMapGraph,
155
- er as UnitChart,
156
- Ho as checkIfNullOrUndefined,
157
- Zo as excelDownload,
158
- ae as fetchAndParseCSV,
159
- te as fetchAndParseCSVFromTextBlob,
160
- me as fetchAndParseJSON,
161
- pe as fetchAndParseMultipleDataSources,
162
- fe as fetchAndTransformDataFromAPI,
163
- wo as generateEmbedLink,
164
- Io as generateIframeCode,
165
- oe as getCentroidCoordinates,
166
- De as getDashboardJSONSchema,
167
- Ge as getDashboardWideToLongFormatJSONSchema,
168
- ue as getDataFiltersSchema,
169
- be as getDataSchema,
170
- Fe as getDataSelectionSchema,
171
- Me as getDataSettingsSchema,
172
- Le as getDataTransformSchema,
173
- Be as getFiltersSchema,
174
- Te as getGraphDataConfigurationSchema,
175
- Pe as getGriddedGraphJSONSchema,
176
- Qo as getJenks,
177
- No as getPercentileValue,
178
- Wo as getQueryParamsFromLink,
179
- ve as getReadableHeaderSchema,
180
- Ae as getSettingsSchema,
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
- Ro as getTextColorBasedOnBgColor,
183
- $o as getUniqValue,
184
- He as graphList,
185
- zo as imageDownload,
186
- Uo as numberFormattingFunction,
187
- Jo as removeOutliers,
188
- Xo as svgDownload,
189
- he as transformColumnsToArray,
190
- xe as transformDataForAggregation,
191
- ie as transformDataForGraph,
192
- le as transformDataForGraphFromFile,
193
- ge as validateConfigSchema,
194
- Se as validateDataSchema,
195
- Ce as validateSettingsSchema
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./transformDataForAggregation-KXGm6flX.cjs"),a=require("./fetchAndParseData-l5HGMAEs.cjs"),o=require("./transformDataForGraphFromFile-DaJHQCsL.cjs");exports.transformDataForAggregation=r.transformDataForAggregation;exports.transformDataForGraph=r.transformDataForGraph;exports.transformColumnsToArray=a.transformColumnsToArray;exports.transformDataForGraphFromFile=o.transformDataForGraphFromFile;
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
@@ -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
 
@@ -1,6 +1,6 @@
1
- import { t as o, a as t } from "./transformDataForAggregation-CE3bAlHU.js";
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-BExxcITV.js";
3
+ import { t as n } from "./transformDataForGraphFromFile-D5TMQYYd.js";
4
4
  export {
5
5
  s as transformColumnsToArray,
6
6
  o as transformDataForAggregation,
@@ -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(t, a) {
500
- return a.filter((d) => !t.includes(d));
530
+ function p(l, a) {
531
+ return a.filter((d) => !l.includes(d));
501
532
  }
502
- function I(t, a, d) {
503
- const f = q(t.map((e) => e.columnId)), u = p(d, f);
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 o = t.map((e) => e.chartConfigId), l = m[m.findIndex((e) => e.chartID === a)].configuration.filter((e) => e.required).map((e) => e.id), i = p(o, l);
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(t, a, d) {
515
- if (h.filter((u) => u.geoHubMapPresentation).map((u) => u.graphID).indexOf(a) !== -1) return t;
516
- if (!t) return "Cannot fetch data";
517
- if (a === "dataTable" || a === "dataCards" || t.length === 0) return t;
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 f = I(d, a, Object.keys(t[0]));
521
- if (f.isValid) {
522
- const u = m[m.findIndex((l) => l.chartID === a)].configuration;
523
- return t.map((l) => {
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(l[r]) ? null : l[r]);
528
- })) : i[u[u.findIndex((r) => r.id === e.chartConfigId)].id] = c(l[e.columnId]) ? null : l[e.columnId], i[`${e.chartConfigId}Columns`] = e.columnId;
529
- }), i.data = l, i;
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(f.err), f.err;
563
+ return console.error(o.err), o.err;
533
564
  }
534
- function v(t, a, d) {
535
- return t.length === 0 ? [] : typeof t[0][a] != "object" ? g(t, a).map((l) => {
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] = l;
538
- const e = t.filter(
568
+ i[a] = t;
569
+ const e = l.filter(
539
570
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
540
- (r) => r[a] === l
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(t.map((o) => o[a])))].map((o) => {
558
- const l = {};
559
- l[a] = o;
560
- const i = t.filter(
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(o) !== -1
593
+ (e) => e[a].indexOf(f) !== -1
563
594
  );
564
- return l.rollUpData = i, l.count = i.length, d?.forEach((e) => {
565
- l[e.column] = e.aggregationMethod === "average" ? parseFloat(
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
- }), l;
609
+ }), t;
579
610
  });
580
611
  }
581
612
  export {
582
613
  M as a,
583
614
  v as t
584
615
  };
585
- //# sourceMappingURL=transformDataForAggregation-CE3bAlHU.js.map
616
+ //# sourceMappingURL=transformDataForAggregation-CjwEAUOR.js.map