@undp/data-viz 2.2.2 → 2.3.0
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/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +1 -1
- package/dist/Axis-D56Gy0se.js +31 -0
- package/dist/Axis-D56Gy0se.js.map +1 -0
- package/dist/Axis-Jt_tmhxS.cjs +2 -0
- package/dist/Axis-Jt_tmhxS.cjs.map +1 -0
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +6 -0
- package/dist/BarGraph.js +1759 -1750
- package/dist/BarGraph.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +2 -0
- package/dist/BeeSwarmChart.js +270 -267
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +4 -0
- package/dist/BiVariateChoroplethMap.js +328 -401
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +2 -0
- package/dist/BulletChart.js +544 -542
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +2 -0
- package/dist/ButterflyChart.js +332 -330
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +4 -0
- package/dist/ChoroplethMap.js +341 -416
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/Data/01.json +4042 -0
- package/dist/Data/mapData.json +4543 -0
- package/dist/Data/testMap.json +361 -0
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +4 -0
- package/dist/DotDensityMap.js +297 -311
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +2 -0
- package/dist/DumbbellChart.js +537 -536
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{GraphEl-DcNr5JzH.js → GraphEl-L5hNe7wJ.js} +84 -67
- package/dist/GraphEl-L5hNe7wJ.js.map +1 -0
- package/dist/GraphEl-ic8C5Ksc.cjs +2 -0
- package/dist/GraphEl-ic8C5Ksc.cjs.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +3 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +3 -0
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +2 -0
- package/dist/Histogram.js +50 -49
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +4 -0
- package/dist/HybridMap.js +368 -418
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +3 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +3 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +3 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +3 -0
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +1 -1
- package/dist/ScrollStory.d.ts +3 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +3 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +3 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +3 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +3 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +3 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +3 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/Types.d.ts +3 -0
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +2 -0
- package/dist/WaterfallChart.js +263 -261
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/index-DLFt97gy.cjs +2 -0
- package/dist/index-DLFt97gy.cjs.map +1 -0
- package/dist/index-Dp_SfsUA.js +2344 -0
- package/dist/index-Dp_SfsUA.js.map +1 -0
- package/dist/index.d.ts +37 -0
- package/package.json +2 -1
- package/readme.md +0 -7
- package/dist/Axis-DoOqnt6g.js +0 -32
- package/dist/Axis-DoOqnt6g.js.map +0 -1
- package/dist/Axis-Dtjn-EgM.cjs +0 -2
- package/dist/Axis-Dtjn-EgM.cjs.map +0 -1
- package/dist/GraphEl-CAjJLOGk.cjs +0 -2
- package/dist/GraphEl-CAjJLOGk.cjs.map +0 -1
- package/dist/GraphEl-DcNr5JzH.js.map +0 -1
- package/dist/zoom-5AkJSuWO.js +0 -1864
- package/dist/zoom-5AkJSuWO.js.map +0 -1
- package/dist/zoom-ChcvXFIz.cjs +0 -2
- package/dist/zoom-ChcvXFIz.cjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { j as
|
|
1
|
+
import { c as O, j as d } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
|
+
import { j as k } from "./Typography-hWfh3H0J.js";
|
|
3
3
|
import { ButterflyChart as S } from "./ButterflyChart.js";
|
|
4
4
|
import { C as N } from "./index-D5ihtaJJ.js";
|
|
5
5
|
import { DataTable as V } from "./DataTable.js";
|
|
@@ -13,10 +13,10 @@ import { MultiLineAltChart as W } from "./MultiLineAltChart.js";
|
|
|
13
13
|
import { SparkLine as j } from "./SparkLine.js";
|
|
14
14
|
import { BiVariateChoroplethMap as z } from "./BiVariateChoroplethMap.js";
|
|
15
15
|
import { ChoroplethMap as F } from "./ChoroplethMap.js";
|
|
16
|
-
import { DotDensityMap as
|
|
17
|
-
import { ParetoChart as
|
|
18
|
-
import { ScatterPlot as
|
|
19
|
-
import { SlopeChart as
|
|
16
|
+
import { DotDensityMap as R } from "./DotDensityMap.js";
|
|
17
|
+
import { ParetoChart as X } from "./ParetoChart.js";
|
|
18
|
+
import { ScatterPlot as Y } from "./ScatterPlot.js";
|
|
19
|
+
import { SlopeChart as E } from "./SlopeChart.js";
|
|
20
20
|
import { AreaChart as G } from "./AreaChart.js";
|
|
21
21
|
import { StatCardFromData as $ } from "./StatCardFromData.js";
|
|
22
22
|
import { TreeMapGraph as _ } from "./TreeMapGraph.js";
|
|
@@ -27,21 +27,21 @@ import { LineChartWithConfidenceInterval as K } from "./LineChartWithConfidenceI
|
|
|
27
27
|
import { DataCards as Q } from "./DataCards.js";
|
|
28
28
|
import { StackedBarGraph as Z, GroupedBarGraph as ee, SimpleBarGraph as ae } from "./BarGraph.js";
|
|
29
29
|
import { DumbbellChart as oe } from "./DumbbellChart.js";
|
|
30
|
-
import { StripChart as
|
|
31
|
-
import { BeeSwarmChart as
|
|
30
|
+
import { StripChart as ie } from "./StripChart.js";
|
|
31
|
+
import { BeeSwarmChart as te } from "./BeeSwarmChart.js";
|
|
32
32
|
import { RadarChart as re } from "./RadarChart.js";
|
|
33
33
|
import { BulletChart as le } from "./BulletChart.js";
|
|
34
34
|
import { HybridMap as se } from "./HybridMap.js";
|
|
35
35
|
import { WaterfallChart as ne } from "./WaterfallChart.js";
|
|
36
36
|
import { g as r } from "./checkIfMultiple-D9fVkeOq.js";
|
|
37
37
|
function Ge(y) {
|
|
38
|
-
const a =
|
|
38
|
+
const a = O.c(24), {
|
|
39
39
|
settings: e,
|
|
40
40
|
graph: s,
|
|
41
41
|
graphData: o,
|
|
42
42
|
debugMode: L,
|
|
43
|
-
graphDataConfiguration:
|
|
44
|
-
readableHeader:
|
|
43
|
+
graphDataConfiguration: i,
|
|
44
|
+
readableHeader: t,
|
|
45
45
|
updateFilters: n
|
|
46
46
|
} = y;
|
|
47
47
|
if (L && (console.log(`Graph: ${s}`), console.log("Transformed data:", o), console.log("Settings:", e)), typeof o == "string") {
|
|
@@ -51,7 +51,7 @@ function Ge(y) {
|
|
|
51
51
|
height: "inherit"
|
|
52
52
|
}, a[0] = l) : l = a[0];
|
|
53
53
|
let h;
|
|
54
|
-
a[1] !== o ? (h = /* @__PURE__ */ d.jsx(
|
|
54
|
+
a[1] !== o ? (h = /* @__PURE__ */ d.jsx(k, { size: "sm", marginBottom: "none", className: "p-2 text-center text-accent-dark-red dark:text-accent-red", children: o }), a[1] = o, a[2] = h) : h = a[2];
|
|
55
55
|
let b;
|
|
56
56
|
return a[3] !== c || a[4] !== h ? (b = /* @__PURE__ */ d.jsx("div", { className: c, style: l, children: h }), a[3] = c, a[4] = h, a[5] = b) : b = a[5], b;
|
|
57
57
|
}
|
|
@@ -68,20 +68,20 @@ function Ge(y) {
|
|
|
68
68
|
stackedAreaChart: G,
|
|
69
69
|
choroplethMap: F,
|
|
70
70
|
biVariateChoroplethMap: z,
|
|
71
|
-
dotDensityMap:
|
|
71
|
+
dotDensityMap: R,
|
|
72
72
|
donutChart: H,
|
|
73
|
-
slopeChart:
|
|
74
|
-
scatterPlot:
|
|
73
|
+
slopeChart: E,
|
|
74
|
+
scatterPlot: Y,
|
|
75
75
|
dumbbellChart: oe,
|
|
76
76
|
treeMap: _,
|
|
77
77
|
circlePacking: N,
|
|
78
78
|
heatMap: A,
|
|
79
|
-
stripChart:
|
|
80
|
-
beeSwarmChart:
|
|
79
|
+
stripChart: ie,
|
|
80
|
+
beeSwarmChart: te,
|
|
81
81
|
butterflyChart: S,
|
|
82
82
|
histogram: v,
|
|
83
83
|
sparkLine: j,
|
|
84
|
-
paretoChart:
|
|
84
|
+
paretoChart: X,
|
|
85
85
|
dataTable: V,
|
|
86
86
|
statCard: $,
|
|
87
87
|
unitChart: q,
|
|
@@ -93,9 +93,9 @@ function Ge(y) {
|
|
|
93
93
|
hybridMap: se,
|
|
94
94
|
waterfallChart: ne
|
|
95
95
|
}, a[6] = m) : m = a[6];
|
|
96
|
-
const
|
|
96
|
+
const M = m;
|
|
97
97
|
let p;
|
|
98
|
-
a[7] !== o || a[8] !==
|
|
98
|
+
a[7] !== o || a[8] !== i || a[9] !== t || a[10] !== e || a[11] !== n ? (p = (c) => {
|
|
99
99
|
switch (c) {
|
|
100
100
|
case "barChart":
|
|
101
101
|
return {
|
|
@@ -123,7 +123,7 @@ function Ge(y) {
|
|
|
123
123
|
rightMargin: e?.rightMargin,
|
|
124
124
|
truncateBy: e?.truncateBy,
|
|
125
125
|
colorDomain: e?.colorDomain,
|
|
126
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
126
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
127
127
|
backgroundColor: e?.backgroundColor,
|
|
128
128
|
padding: e?.padding,
|
|
129
129
|
topMargin: e?.topMargin,
|
|
@@ -160,7 +160,8 @@ function Ge(y) {
|
|
|
160
160
|
classNames: e?.classNames,
|
|
161
161
|
filterNA: e?.filterNA,
|
|
162
162
|
animate: e?.animate,
|
|
163
|
-
naLabel: e?.naLabel
|
|
163
|
+
naLabel: e?.naLabel,
|
|
164
|
+
hideAxisLine: e?.hideAxisLine
|
|
164
165
|
};
|
|
165
166
|
case "waterfallChart":
|
|
166
167
|
return {
|
|
@@ -185,7 +186,7 @@ function Ge(y) {
|
|
|
185
186
|
rightMargin: e?.rightMargin,
|
|
186
187
|
truncateBy: e?.truncateBy,
|
|
187
188
|
colorDomain: e?.colorDomain,
|
|
188
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
189
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
189
190
|
backgroundColor: e?.backgroundColor,
|
|
190
191
|
padding: e?.padding,
|
|
191
192
|
topMargin: e?.topMargin,
|
|
@@ -219,7 +220,8 @@ function Ge(y) {
|
|
|
219
220
|
classNames: e?.classNames,
|
|
220
221
|
filterNA: e?.filterNA,
|
|
221
222
|
animate: e?.animate,
|
|
222
|
-
naLabel: e?.naLabel
|
|
223
|
+
naLabel: e?.naLabel,
|
|
224
|
+
hideAxisLine: e?.hideAxisLine
|
|
223
225
|
};
|
|
224
226
|
case "groupedBarChart":
|
|
225
227
|
return {
|
|
@@ -242,7 +244,7 @@ function Ge(y) {
|
|
|
242
244
|
barPadding: e?.barPadding,
|
|
243
245
|
showTicks: e?.showTicks,
|
|
244
246
|
truncateBy: e?.truncateBy,
|
|
245
|
-
colorDomain: e?.colorDomain || r("size",
|
|
247
|
+
colorDomain: e?.colorDomain || r("size", i || [], t || []),
|
|
246
248
|
colorLegendTitle: e?.colorLegendTitle,
|
|
247
249
|
suffix: e?.suffix,
|
|
248
250
|
prefix: e?.prefix,
|
|
@@ -275,7 +277,8 @@ function Ge(y) {
|
|
|
275
277
|
styles: e?.styles,
|
|
276
278
|
classNames: e?.classNames,
|
|
277
279
|
animate: e?.animate,
|
|
278
|
-
naLabel: e?.naLabel
|
|
280
|
+
naLabel: e?.naLabel,
|
|
281
|
+
hideAxisLine: e?.hideAxisLine
|
|
279
282
|
};
|
|
280
283
|
case "stackedBarChart":
|
|
281
284
|
return {
|
|
@@ -299,7 +302,7 @@ function Ge(y) {
|
|
|
299
302
|
leftMargin: e?.leftMargin,
|
|
300
303
|
rightMargin: e?.rightMargin,
|
|
301
304
|
truncateBy: e?.truncateBy,
|
|
302
|
-
colorDomain: e?.colorDomain || r("size",
|
|
305
|
+
colorDomain: e?.colorDomain || r("size", i || [], t || []),
|
|
303
306
|
colorLegendTitle: e?.colorLegendTitle,
|
|
304
307
|
backgroundColor: e?.backgroundColor,
|
|
305
308
|
padding: e?.padding,
|
|
@@ -332,7 +335,8 @@ function Ge(y) {
|
|
|
332
335
|
styles: e?.styles,
|
|
333
336
|
classNames: e?.classNames,
|
|
334
337
|
animate: e?.animate,
|
|
335
|
-
naLabel: e?.naLabel
|
|
338
|
+
naLabel: e?.naLabel,
|
|
339
|
+
hideAxisLine: e?.hideAxisLine
|
|
336
340
|
};
|
|
337
341
|
case "bulletChart":
|
|
338
342
|
return {
|
|
@@ -359,7 +363,7 @@ function Ge(y) {
|
|
|
359
363
|
rightMargin: e?.rightMargin,
|
|
360
364
|
truncateBy: e?.truncateBy,
|
|
361
365
|
colorDomain: e?.colorDomain,
|
|
362
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
366
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
363
367
|
backgroundColor: e?.backgroundColor,
|
|
364
368
|
padding: e?.padding,
|
|
365
369
|
topMargin: e?.topMargin,
|
|
@@ -400,7 +404,8 @@ function Ge(y) {
|
|
|
400
404
|
targetColor: e?.targetColor,
|
|
401
405
|
measureBarWidthFactor: e?.measureBarWidthFactor,
|
|
402
406
|
animate: e?.animate,
|
|
403
|
-
naLabel: e?.naLabel
|
|
407
|
+
naLabel: e?.naLabel,
|
|
408
|
+
hideAxisLine: e?.hideAxisLine
|
|
404
409
|
};
|
|
405
410
|
case "lineChart":
|
|
406
411
|
return {
|
|
@@ -522,7 +527,7 @@ function Ge(y) {
|
|
|
522
527
|
curveType: e?.curveType,
|
|
523
528
|
graphTitle: e?.graphTitle,
|
|
524
529
|
graphDescription: e?.graphDescription,
|
|
525
|
-
labels: e?.labels || [r("y1",
|
|
530
|
+
labels: e?.labels || [r("y1", i || [], t || []), r("y2", i || [], t || [])],
|
|
526
531
|
footNote: e?.footNote,
|
|
527
532
|
width: e?.width,
|
|
528
533
|
height: e?.height,
|
|
@@ -581,7 +586,7 @@ function Ge(y) {
|
|
|
581
586
|
suffix: e?.suffix,
|
|
582
587
|
prefix: e?.prefix,
|
|
583
588
|
showColorScale: e?.showColorScale,
|
|
584
|
-
labels: e?.labels || r("y",
|
|
589
|
+
labels: e?.labels || r("y", i || [], t || []),
|
|
585
590
|
backgroundColor: e?.backgroundColor,
|
|
586
591
|
padding: e?.padding,
|
|
587
592
|
leftMargin: e?.leftMargin,
|
|
@@ -693,7 +698,7 @@ function Ge(y) {
|
|
|
693
698
|
dateFormat: e?.dateFormat,
|
|
694
699
|
suffix: e?.suffix,
|
|
695
700
|
prefix: e?.prefix,
|
|
696
|
-
labels: e?.labels || [r("y1",
|
|
701
|
+
labels: e?.labels || [r("y1", i || [], t || []), r("y2", i || [], t || [])],
|
|
697
702
|
backgroundColor: e?.backgroundColor,
|
|
698
703
|
padding: e?.padding,
|
|
699
704
|
leftMargin: e?.leftMargin,
|
|
@@ -743,7 +748,7 @@ function Ge(y) {
|
|
|
743
748
|
sources: e?.sources,
|
|
744
749
|
noOfXTicks: e?.noOfXTicks,
|
|
745
750
|
dateFormat: e?.dateFormat,
|
|
746
|
-
colorDomain: e?.colorDomain || r("y",
|
|
751
|
+
colorDomain: e?.colorDomain || r("y", i || [], t || []),
|
|
747
752
|
backgroundColor: e?.backgroundColor,
|
|
748
753
|
padding: e?.padding,
|
|
749
754
|
colorLegendTitle: e?.colorLegendTitle,
|
|
@@ -791,7 +796,7 @@ function Ge(y) {
|
|
|
791
796
|
sources: e?.sources,
|
|
792
797
|
colorDomain: e?.colorDomain,
|
|
793
798
|
colors: e?.colors,
|
|
794
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("x",
|
|
799
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("x", i || [], t || []),
|
|
795
800
|
scaleType: e?.scaleType,
|
|
796
801
|
data: o,
|
|
797
802
|
scale: e?.scale,
|
|
@@ -824,7 +829,9 @@ function Ge(y) {
|
|
|
824
829
|
classNames: e?.classNames,
|
|
825
830
|
zoomInteraction: e?.zoomInteraction,
|
|
826
831
|
animate: e?.animate,
|
|
827
|
-
zoomAndCenterByHighlightedIds: e?.zoomAndCenterByHighlightedIds
|
|
832
|
+
zoomAndCenterByHighlightedIds: e?.zoomAndCenterByHighlightedIds,
|
|
833
|
+
projectionRotate: e?.projectionRotate,
|
|
834
|
+
rewindCoordinatesInMapData: e?.rewindCoordinatesInMapData
|
|
828
835
|
};
|
|
829
836
|
case "biVariateChoroplethMap":
|
|
830
837
|
return {
|
|
@@ -843,8 +850,8 @@ function Ge(y) {
|
|
|
843
850
|
width: e?.width,
|
|
844
851
|
height: e?.height,
|
|
845
852
|
sources: e?.sources,
|
|
846
|
-
xColorLegendTitle: Object.keys(e || {}).indexOf("xColorLegendTitle") !== -1 ? e?.xColorLegendTitle : r("x",
|
|
847
|
-
yColorLegendTitle: Object.keys(e || {}).indexOf("yColorLegendTitle") !== -1 ? e?.yColorLegendTitle : r("y",
|
|
853
|
+
xColorLegendTitle: Object.keys(e || {}).indexOf("xColorLegendTitle") !== -1 ? e?.xColorLegendTitle : r("x", i || [], t || []),
|
|
854
|
+
yColorLegendTitle: Object.keys(e || {}).indexOf("yColorLegendTitle") !== -1 ? e?.yColorLegendTitle : r("y", i || [], t || []),
|
|
848
855
|
xDomain: e?.xDomain,
|
|
849
856
|
yDomain: e?.yDomain,
|
|
850
857
|
colors: e?.colors,
|
|
@@ -877,7 +884,9 @@ function Ge(y) {
|
|
|
877
884
|
classNames: e?.classNames,
|
|
878
885
|
zoomInteraction: e?.zoomInteraction,
|
|
879
886
|
animate: e?.animate,
|
|
880
|
-
zoomAndCenterByHighlightedIds: e?.zoomAndCenterByHighlightedIds
|
|
887
|
+
zoomAndCenterByHighlightedIds: e?.zoomAndCenterByHighlightedIds,
|
|
888
|
+
projectionRotate: e?.projectionRotate,
|
|
889
|
+
rewindCoordinatesInMapData: e?.rewindCoordinatesInMapData
|
|
881
890
|
};
|
|
882
891
|
case "dotDensityMap":
|
|
883
892
|
return {
|
|
@@ -899,7 +908,7 @@ function Ge(y) {
|
|
|
899
908
|
sources: e?.sources,
|
|
900
909
|
colors: e?.colors,
|
|
901
910
|
colorDomain: e?.colorDomain,
|
|
902
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
911
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
903
912
|
data: o,
|
|
904
913
|
scale: e?.scale,
|
|
905
914
|
centerPoint: e?.centerPoint,
|
|
@@ -927,7 +936,9 @@ function Ge(y) {
|
|
|
927
936
|
styles: e?.styles,
|
|
928
937
|
classNames: e?.classNames,
|
|
929
938
|
zoomInteraction: e?.zoomInteraction,
|
|
930
|
-
animate: e?.animate
|
|
939
|
+
animate: e?.animate,
|
|
940
|
+
projectionRotate: e?.projectionRotate,
|
|
941
|
+
rewindCoordinatesInMapData: e?.rewindCoordinatesInMapData
|
|
931
942
|
};
|
|
932
943
|
case "hybridMap":
|
|
933
944
|
return {
|
|
@@ -947,7 +958,7 @@ function Ge(y) {
|
|
|
947
958
|
sources: e?.sources,
|
|
948
959
|
colorDomain: e?.colorDomain,
|
|
949
960
|
colors: e?.colors,
|
|
950
|
-
mapColorLegendTitle: Object.keys(e || {}).indexOf("mapColorLegendTitle") !== -1 ? e?.mapColorLegendTitle : r("x",
|
|
961
|
+
mapColorLegendTitle: Object.keys(e || {}).indexOf("mapColorLegendTitle") !== -1 ? e?.mapColorLegendTitle : r("x", i || [], t || []),
|
|
951
962
|
choroplethScaleType: e?.choroplethScaleType,
|
|
952
963
|
data: o,
|
|
953
964
|
scale: e?.scale,
|
|
@@ -987,7 +998,9 @@ function Ge(y) {
|
|
|
987
998
|
dotLegendTitle: e?.dotLegendTitle,
|
|
988
999
|
dotColor: e?.dotColor,
|
|
989
1000
|
dotBorderColor: e?.dotBorderColor,
|
|
990
|
-
labelColor: e?.labelColor
|
|
1001
|
+
labelColor: e?.labelColor,
|
|
1002
|
+
projectionRotate: e?.projectionRotate,
|
|
1003
|
+
rewindCoordinatesInMapData: e?.rewindCoordinatesInMapData
|
|
991
1004
|
};
|
|
992
1005
|
case "donutChart":
|
|
993
1006
|
return {
|
|
@@ -1048,7 +1061,7 @@ function Ge(y) {
|
|
|
1048
1061
|
showLabels: e?.showLabels,
|
|
1049
1062
|
colors: e?.colors,
|
|
1050
1063
|
colorDomain: e?.colorDomain,
|
|
1051
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1064
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1052
1065
|
radius: e?.radius,
|
|
1053
1066
|
axisTitles: e?.axisTitles,
|
|
1054
1067
|
backgroundColor: e?.backgroundColor,
|
|
@@ -1093,10 +1106,10 @@ function Ge(y) {
|
|
|
1093
1106
|
showLabels: e?.showLabels,
|
|
1094
1107
|
colors: e?.colors,
|
|
1095
1108
|
colorDomain: e?.colorDomain,
|
|
1096
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1109
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1097
1110
|
radius: e?.radius,
|
|
1098
|
-
xAxisTitle: Object.keys(e || {}).indexOf("xAxisTitle") !== -1 ? e?.xAxisTitle : r("x",
|
|
1099
|
-
yAxisTitle: Object.keys(e || {}).indexOf("yAxisTitle") !== -1 ? e?.yAxisTitle : r("y",
|
|
1111
|
+
xAxisTitle: Object.keys(e || {}).indexOf("xAxisTitle") !== -1 ? e?.xAxisTitle : r("x", i || [], t || []),
|
|
1112
|
+
yAxisTitle: Object.keys(e || {}).indexOf("yAxisTitle") !== -1 ? e?.yAxisTitle : r("y", i || [], t || []),
|
|
1100
1113
|
backgroundColor: e?.backgroundColor,
|
|
1101
1114
|
padding: e?.padding,
|
|
1102
1115
|
leftMargin: e?.leftMargin,
|
|
@@ -1163,7 +1176,7 @@ function Ge(y) {
|
|
|
1163
1176
|
truncateBy: e?.truncateBy,
|
|
1164
1177
|
labelOrder: e?.labelOrder,
|
|
1165
1178
|
showColorScale: e?.showColorScale,
|
|
1166
|
-
colorDomain: e?.colorDomain || r("x",
|
|
1179
|
+
colorDomain: e?.colorDomain || r("x", i || [], t || []),
|
|
1167
1180
|
colorLegendTitle: e?.colorLegendTitle,
|
|
1168
1181
|
backgroundColor: e?.backgroundColor,
|
|
1169
1182
|
padding: e?.padding,
|
|
@@ -1197,7 +1210,8 @@ function Ge(y) {
|
|
|
1197
1210
|
classNames: e?.classNames,
|
|
1198
1211
|
animate: e?.animate,
|
|
1199
1212
|
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1200
|
-
dimmedOpacity: e?.dimmedOpacity
|
|
1213
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1214
|
+
hideAxisLine: e?.hideAxisLine
|
|
1201
1215
|
};
|
|
1202
1216
|
case "treeMap":
|
|
1203
1217
|
return {
|
|
@@ -1218,7 +1232,7 @@ function Ge(y) {
|
|
|
1218
1232
|
leftMargin: e?.leftMargin,
|
|
1219
1233
|
rightMargin: e?.rightMargin,
|
|
1220
1234
|
colorDomain: e?.colorDomain,
|
|
1221
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1235
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1222
1236
|
backgroundColor: e?.backgroundColor,
|
|
1223
1237
|
padding: e?.padding,
|
|
1224
1238
|
topMargin: e?.topMargin,
|
|
@@ -1263,7 +1277,7 @@ function Ge(y) {
|
|
|
1263
1277
|
leftMargin: e?.leftMargin,
|
|
1264
1278
|
rightMargin: e?.rightMargin,
|
|
1265
1279
|
colorDomain: e?.colorDomain,
|
|
1266
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1280
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1267
1281
|
backgroundColor: e?.backgroundColor,
|
|
1268
1282
|
padding: e?.padding,
|
|
1269
1283
|
topMargin: e?.topMargin,
|
|
@@ -1310,7 +1324,7 @@ function Ge(y) {
|
|
|
1310
1324
|
leftMargin: e?.leftMargin,
|
|
1311
1325
|
rightMargin: e?.rightMargin,
|
|
1312
1326
|
truncateBy: e?.truncateBy,
|
|
1313
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1327
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1314
1328
|
backgroundColor: e?.backgroundColor,
|
|
1315
1329
|
padding: e?.padding,
|
|
1316
1330
|
topMargin: e?.topMargin,
|
|
@@ -1353,7 +1367,7 @@ function Ge(y) {
|
|
|
1353
1367
|
sources: e?.sources,
|
|
1354
1368
|
colors: e?.colors,
|
|
1355
1369
|
colorDomain: e?.colorDomain,
|
|
1356
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1370
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1357
1371
|
radius: e?.radius,
|
|
1358
1372
|
backgroundColor: e?.backgroundColor,
|
|
1359
1373
|
padding: e?.padding,
|
|
@@ -1405,7 +1419,7 @@ function Ge(y) {
|
|
|
1405
1419
|
leftMargin: e?.leftMargin,
|
|
1406
1420
|
rightMargin: e?.rightMargin,
|
|
1407
1421
|
colorDomain: e?.colorDomain,
|
|
1408
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1422
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1409
1423
|
backgroundColor: e?.backgroundColor,
|
|
1410
1424
|
padding: e?.padding,
|
|
1411
1425
|
topMargin: e?.topMargin,
|
|
@@ -1431,7 +1445,8 @@ function Ge(y) {
|
|
|
1431
1445
|
orientation: e?.orientation,
|
|
1432
1446
|
styles: e?.styles,
|
|
1433
1447
|
classNames: e?.classNames,
|
|
1434
|
-
animate: e?.animate
|
|
1448
|
+
animate: e?.animate,
|
|
1449
|
+
hideAxisLine: e?.hideAxisLine
|
|
1435
1450
|
};
|
|
1436
1451
|
case "butterflyChart":
|
|
1437
1452
|
return {
|
|
@@ -1444,8 +1459,8 @@ function Ge(y) {
|
|
|
1444
1459
|
data: o,
|
|
1445
1460
|
graphTitle: e?.graphTitle,
|
|
1446
1461
|
graphDescription: e?.graphDescription,
|
|
1447
|
-
leftBarTitle: Object.keys(e || {}).indexOf("leftBarTitle") !== -1 ? e?.leftBarTitle : r("leftBar",
|
|
1448
|
-
rightBarTitle: Object.keys(e || {}).indexOf("rightBarTitle") !== -1 ? e?.rightBarTitle : r("rightBar",
|
|
1462
|
+
leftBarTitle: Object.keys(e || {}).indexOf("leftBarTitle") !== -1 ? e?.leftBarTitle : r("leftBar", i || [], t || []),
|
|
1463
|
+
rightBarTitle: Object.keys(e || {}).indexOf("rightBarTitle") !== -1 ? e?.rightBarTitle : r("rightBar", i || [], t || []),
|
|
1449
1464
|
footNote: e?.footNote,
|
|
1450
1465
|
width: e?.width,
|
|
1451
1466
|
height: e?.height,
|
|
@@ -1479,7 +1494,8 @@ function Ge(y) {
|
|
|
1479
1494
|
detailsOnClick: e?.detailsOnClick,
|
|
1480
1495
|
styles: e?.styles,
|
|
1481
1496
|
classNames: e?.classNames,
|
|
1482
|
-
animate: e?.animate
|
|
1497
|
+
animate: e?.animate,
|
|
1498
|
+
hideAxisLine: e?.hideAxisLine
|
|
1483
1499
|
};
|
|
1484
1500
|
case "histogram":
|
|
1485
1501
|
return {
|
|
@@ -1522,7 +1538,8 @@ function Ge(y) {
|
|
|
1522
1538
|
ariaLabel: e?.ariaLabel,
|
|
1523
1539
|
detailsOnClick: e?.detailsOnClick,
|
|
1524
1540
|
styles: e?.styles,
|
|
1525
|
-
classNames: e?.classNames
|
|
1541
|
+
classNames: e?.classNames,
|
|
1542
|
+
hideAxisLine: e?.hideAxisLine
|
|
1526
1543
|
};
|
|
1527
1544
|
case "sparkLine":
|
|
1528
1545
|
return {
|
|
@@ -1571,8 +1588,8 @@ function Ge(y) {
|
|
|
1571
1588
|
showValues: e?.showValues,
|
|
1572
1589
|
graphTitle: e?.graphTitle,
|
|
1573
1590
|
graphDescription: e?.graphDescription,
|
|
1574
|
-
barTitle: Object.keys(e || {}).indexOf("barTitle") !== -1 ? e?.barTitle : r("barTitle",
|
|
1575
|
-
lineTitle: Object.keys(e || {}).indexOf("lineTitle") !== -1 ? e?.lineTitle : r("lineTitle",
|
|
1591
|
+
barTitle: Object.keys(e || {}).indexOf("barTitle") !== -1 ? e?.barTitle : r("barTitle", i || [], t || []),
|
|
1592
|
+
lineTitle: Object.keys(e || {}).indexOf("lineTitle") !== -1 ? e?.lineTitle : r("lineTitle", i || [], t || []),
|
|
1576
1593
|
footNote: e?.footNote,
|
|
1577
1594
|
width: e?.width,
|
|
1578
1595
|
height: e?.height,
|
|
@@ -1823,21 +1840,21 @@ function Ge(y) {
|
|
|
1823
1840
|
default:
|
|
1824
1841
|
return {};
|
|
1825
1842
|
}
|
|
1826
|
-
}, a[7] = o, a[8] =
|
|
1827
|
-
const w = p, u =
|
|
1843
|
+
}, a[7] = o, a[8] = i, a[9] = t, a[10] = e, a[11] = n, a[12] = p) : p = a[12];
|
|
1844
|
+
const w = p, u = M[s];
|
|
1828
1845
|
let f;
|
|
1829
1846
|
a[13] !== w || a[14] !== s ? (f = w(s), a[13] = w, a[14] = s, a[15] = f) : f = a[15];
|
|
1830
|
-
const
|
|
1847
|
+
const x = f, T = `grow my-0 ${s !== "statCard" ? "mx-auto" : "mx-0"} flex flex-col w-full ${s !== "unitChart" && s !== "statCard" ? "justify-center" : "justify-start"} ${e?.theme || "light"}`;
|
|
1831
1848
|
let D;
|
|
1832
1849
|
a[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
1833
1850
|
minHeight: "inherit"
|
|
1834
1851
|
}, a[16] = D) : D = a[16];
|
|
1835
1852
|
let g;
|
|
1836
|
-
a[17] !== u || a[18] !== s || a[19] !==
|
|
1853
|
+
a[17] !== u || a[18] !== s || a[19] !== x ? (g = u ? /* @__PURE__ */ d.jsx(u, { ...x }) : /* @__PURE__ */ d.jsx(k, { size: "sm", marginBottom: "none", className: "p-2 text-center text-accent-dark-red dark:text-accent-red", children: `Invalid chart type: ${s}` }), a[17] = u, a[18] = s, a[19] = x, a[20] = g) : g = a[20];
|
|
1837
1854
|
let C;
|
|
1838
|
-
return a[21] !==
|
|
1855
|
+
return a[21] !== T || a[22] !== g ? (C = /* @__PURE__ */ d.jsx("div", { className: T, style: D, children: g }), a[21] = T, a[22] = g, a[23] = C) : C = a[23], C;
|
|
1839
1856
|
}
|
|
1840
1857
|
export {
|
|
1841
1858
|
Ge as G
|
|
1842
1859
|
};
|
|
1843
|
-
//# sourceMappingURL=GraphEl-
|
|
1860
|
+
//# sourceMappingURL=GraphEl-L5hNe7wJ.js.map
|