@undp/data-viz 2.2.1 → 2.2.3
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 +2 -0
- package/dist/BiVariateChoroplethMap.js +264 -250
- 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 +2 -0
- package/dist/ChoroplethMap.js +272 -258
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +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-BZbunD1_.cjs +2 -0
- package/dist/GraphEl-BZbunD1_.cjs.map +1 -0
- package/dist/{GraphEl-DKrjuQNB.js → GraphEl-C1Rz1V__.js} +68 -57
- package/dist/GraphEl-C1Rz1V__.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +2 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +2 -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/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +2 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +2 -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 +2 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +1 -1
- package/dist/ScrollStory.d.ts +2 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +2 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/Types.d.ts +2 -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.d.ts +24 -0
- package/package.json +1 -1
- 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-CBZdcvb7.cjs +0 -2
- package/dist/GraphEl-CBZdcvb7.cjs.map +0 -1
- package/dist/GraphEl-DKrjuQNB.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as M, j as d } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
|
-
import { j as
|
|
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";
|
|
@@ -7,8 +7,8 @@ import { DonutChart as H } from "./DonutChart.js";
|
|
|
7
7
|
import { HeatMap as A } from "./HeatMap.js";
|
|
8
8
|
import { Histogram as v } from "./Histogram.js";
|
|
9
9
|
import { DualAxisLineChart as B } from "./DualAxisLineChart.js";
|
|
10
|
-
import { SimpleLineChart as
|
|
11
|
-
import { MultiLineChart as
|
|
10
|
+
import { SimpleLineChart as I } from "./SimpleLineChart.js";
|
|
11
|
+
import { MultiLineChart as P } from "./MultiLineChart.js";
|
|
12
12
|
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";
|
|
@@ -27,8 +27,8 @@ 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";
|
|
@@ -40,8 +40,8 @@ function Ge(y) {
|
|
|
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
|
}
|
|
@@ -61,9 +61,9 @@ function Ge(y) {
|
|
|
61
61
|
bulletChart: le,
|
|
62
62
|
groupedBarChart: ee,
|
|
63
63
|
stackedBarChart: Z,
|
|
64
|
-
lineChart:
|
|
64
|
+
lineChart: I,
|
|
65
65
|
dualAxisLineChart: B,
|
|
66
|
-
multiLineChart:
|
|
66
|
+
multiLineChart: P,
|
|
67
67
|
multiLineAltChart: W,
|
|
68
68
|
stackedAreaChart: G,
|
|
69
69
|
choroplethMap: F,
|
|
@@ -76,8 +76,8 @@ function Ge(y) {
|
|
|
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,
|
|
@@ -95,7 +95,7 @@ function Ge(y) {
|
|
|
95
95
|
}, a[6] = m) : m = a[6];
|
|
96
96
|
const O = 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,
|
|
@@ -823,7 +828,8 @@ function Ge(y) {
|
|
|
823
828
|
styles: e?.styles,
|
|
824
829
|
classNames: e?.classNames,
|
|
825
830
|
zoomInteraction: e?.zoomInteraction,
|
|
826
|
-
animate: e?.animate
|
|
831
|
+
animate: e?.animate,
|
|
832
|
+
zoomAndCenterByHighlightedIds: e?.zoomAndCenterByHighlightedIds
|
|
827
833
|
};
|
|
828
834
|
case "biVariateChoroplethMap":
|
|
829
835
|
return {
|
|
@@ -842,8 +848,8 @@ function Ge(y) {
|
|
|
842
848
|
width: e?.width,
|
|
843
849
|
height: e?.height,
|
|
844
850
|
sources: e?.sources,
|
|
845
|
-
xColorLegendTitle: Object.keys(e || {}).indexOf("xColorLegendTitle") !== -1 ? e?.xColorLegendTitle : r("x",
|
|
846
|
-
yColorLegendTitle: Object.keys(e || {}).indexOf("yColorLegendTitle") !== -1 ? e?.yColorLegendTitle : r("y",
|
|
851
|
+
xColorLegendTitle: Object.keys(e || {}).indexOf("xColorLegendTitle") !== -1 ? e?.xColorLegendTitle : r("x", i || [], t || []),
|
|
852
|
+
yColorLegendTitle: Object.keys(e || {}).indexOf("yColorLegendTitle") !== -1 ? e?.yColorLegendTitle : r("y", i || [], t || []),
|
|
847
853
|
xDomain: e?.xDomain,
|
|
848
854
|
yDomain: e?.yDomain,
|
|
849
855
|
colors: e?.colors,
|
|
@@ -875,7 +881,8 @@ function Ge(y) {
|
|
|
875
881
|
styles: e?.styles,
|
|
876
882
|
classNames: e?.classNames,
|
|
877
883
|
zoomInteraction: e?.zoomInteraction,
|
|
878
|
-
animate: e?.animate
|
|
884
|
+
animate: e?.animate,
|
|
885
|
+
zoomAndCenterByHighlightedIds: e?.zoomAndCenterByHighlightedIds
|
|
879
886
|
};
|
|
880
887
|
case "dotDensityMap":
|
|
881
888
|
return {
|
|
@@ -897,7 +904,7 @@ function Ge(y) {
|
|
|
897
904
|
sources: e?.sources,
|
|
898
905
|
colors: e?.colors,
|
|
899
906
|
colorDomain: e?.colorDomain,
|
|
900
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
907
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
901
908
|
data: o,
|
|
902
909
|
scale: e?.scale,
|
|
903
910
|
centerPoint: e?.centerPoint,
|
|
@@ -945,7 +952,7 @@ function Ge(y) {
|
|
|
945
952
|
sources: e?.sources,
|
|
946
953
|
colorDomain: e?.colorDomain,
|
|
947
954
|
colors: e?.colors,
|
|
948
|
-
mapColorLegendTitle: Object.keys(e || {}).indexOf("mapColorLegendTitle") !== -1 ? e?.mapColorLegendTitle : r("x",
|
|
955
|
+
mapColorLegendTitle: Object.keys(e || {}).indexOf("mapColorLegendTitle") !== -1 ? e?.mapColorLegendTitle : r("x", i || [], t || []),
|
|
949
956
|
choroplethScaleType: e?.choroplethScaleType,
|
|
950
957
|
data: o,
|
|
951
958
|
scale: e?.scale,
|
|
@@ -1046,7 +1053,7 @@ function Ge(y) {
|
|
|
1046
1053
|
showLabels: e?.showLabels,
|
|
1047
1054
|
colors: e?.colors,
|
|
1048
1055
|
colorDomain: e?.colorDomain,
|
|
1049
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1056
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1050
1057
|
radius: e?.radius,
|
|
1051
1058
|
axisTitles: e?.axisTitles,
|
|
1052
1059
|
backgroundColor: e?.backgroundColor,
|
|
@@ -1091,10 +1098,10 @@ function Ge(y) {
|
|
|
1091
1098
|
showLabels: e?.showLabels,
|
|
1092
1099
|
colors: e?.colors,
|
|
1093
1100
|
colorDomain: e?.colorDomain,
|
|
1094
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1101
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1095
1102
|
radius: e?.radius,
|
|
1096
|
-
xAxisTitle: Object.keys(e || {}).indexOf("xAxisTitle") !== -1 ? e?.xAxisTitle : r("x",
|
|
1097
|
-
yAxisTitle: Object.keys(e || {}).indexOf("yAxisTitle") !== -1 ? e?.yAxisTitle : r("y",
|
|
1103
|
+
xAxisTitle: Object.keys(e || {}).indexOf("xAxisTitle") !== -1 ? e?.xAxisTitle : r("x", i || [], t || []),
|
|
1104
|
+
yAxisTitle: Object.keys(e || {}).indexOf("yAxisTitle") !== -1 ? e?.yAxisTitle : r("y", i || [], t || []),
|
|
1098
1105
|
backgroundColor: e?.backgroundColor,
|
|
1099
1106
|
padding: e?.padding,
|
|
1100
1107
|
leftMargin: e?.leftMargin,
|
|
@@ -1161,7 +1168,7 @@ function Ge(y) {
|
|
|
1161
1168
|
truncateBy: e?.truncateBy,
|
|
1162
1169
|
labelOrder: e?.labelOrder,
|
|
1163
1170
|
showColorScale: e?.showColorScale,
|
|
1164
|
-
colorDomain: e?.colorDomain || r("x",
|
|
1171
|
+
colorDomain: e?.colorDomain || r("x", i || [], t || []),
|
|
1165
1172
|
colorLegendTitle: e?.colorLegendTitle,
|
|
1166
1173
|
backgroundColor: e?.backgroundColor,
|
|
1167
1174
|
padding: e?.padding,
|
|
@@ -1195,7 +1202,8 @@ function Ge(y) {
|
|
|
1195
1202
|
classNames: e?.classNames,
|
|
1196
1203
|
animate: e?.animate,
|
|
1197
1204
|
highlightedDataPoints: e?.highlightedDataPoints,
|
|
1198
|
-
dimmedOpacity: e?.dimmedOpacity
|
|
1205
|
+
dimmedOpacity: e?.dimmedOpacity,
|
|
1206
|
+
hideAxisLine: e?.hideAxisLine
|
|
1199
1207
|
};
|
|
1200
1208
|
case "treeMap":
|
|
1201
1209
|
return {
|
|
@@ -1216,7 +1224,7 @@ function Ge(y) {
|
|
|
1216
1224
|
leftMargin: e?.leftMargin,
|
|
1217
1225
|
rightMargin: e?.rightMargin,
|
|
1218
1226
|
colorDomain: e?.colorDomain,
|
|
1219
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1227
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1220
1228
|
backgroundColor: e?.backgroundColor,
|
|
1221
1229
|
padding: e?.padding,
|
|
1222
1230
|
topMargin: e?.topMargin,
|
|
@@ -1261,7 +1269,7 @@ function Ge(y) {
|
|
|
1261
1269
|
leftMargin: e?.leftMargin,
|
|
1262
1270
|
rightMargin: e?.rightMargin,
|
|
1263
1271
|
colorDomain: e?.colorDomain,
|
|
1264
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1272
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1265
1273
|
backgroundColor: e?.backgroundColor,
|
|
1266
1274
|
padding: e?.padding,
|
|
1267
1275
|
topMargin: e?.topMargin,
|
|
@@ -1308,7 +1316,7 @@ function Ge(y) {
|
|
|
1308
1316
|
leftMargin: e?.leftMargin,
|
|
1309
1317
|
rightMargin: e?.rightMargin,
|
|
1310
1318
|
truncateBy: e?.truncateBy,
|
|
1311
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1319
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1312
1320
|
backgroundColor: e?.backgroundColor,
|
|
1313
1321
|
padding: e?.padding,
|
|
1314
1322
|
topMargin: e?.topMargin,
|
|
@@ -1351,7 +1359,7 @@ function Ge(y) {
|
|
|
1351
1359
|
sources: e?.sources,
|
|
1352
1360
|
colors: e?.colors,
|
|
1353
1361
|
colorDomain: e?.colorDomain,
|
|
1354
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1362
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1355
1363
|
radius: e?.radius,
|
|
1356
1364
|
backgroundColor: e?.backgroundColor,
|
|
1357
1365
|
padding: e?.padding,
|
|
@@ -1403,7 +1411,7 @@ function Ge(y) {
|
|
|
1403
1411
|
leftMargin: e?.leftMargin,
|
|
1404
1412
|
rightMargin: e?.rightMargin,
|
|
1405
1413
|
colorDomain: e?.colorDomain,
|
|
1406
|
-
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color",
|
|
1414
|
+
colorLegendTitle: Object.keys(e || {}).indexOf("colorLegendTitle") !== -1 ? e?.colorLegendTitle : r("color", i || [], t || []),
|
|
1407
1415
|
backgroundColor: e?.backgroundColor,
|
|
1408
1416
|
padding: e?.padding,
|
|
1409
1417
|
topMargin: e?.topMargin,
|
|
@@ -1429,7 +1437,8 @@ function Ge(y) {
|
|
|
1429
1437
|
orientation: e?.orientation,
|
|
1430
1438
|
styles: e?.styles,
|
|
1431
1439
|
classNames: e?.classNames,
|
|
1432
|
-
animate: e?.animate
|
|
1440
|
+
animate: e?.animate,
|
|
1441
|
+
hideAxisLine: e?.hideAxisLine
|
|
1433
1442
|
};
|
|
1434
1443
|
case "butterflyChart":
|
|
1435
1444
|
return {
|
|
@@ -1442,8 +1451,8 @@ function Ge(y) {
|
|
|
1442
1451
|
data: o,
|
|
1443
1452
|
graphTitle: e?.graphTitle,
|
|
1444
1453
|
graphDescription: e?.graphDescription,
|
|
1445
|
-
leftBarTitle: Object.keys(e || {}).indexOf("leftBarTitle") !== -1 ? e?.leftBarTitle : r("leftBar",
|
|
1446
|
-
rightBarTitle: Object.keys(e || {}).indexOf("rightBarTitle") !== -1 ? e?.rightBarTitle : r("rightBar",
|
|
1454
|
+
leftBarTitle: Object.keys(e || {}).indexOf("leftBarTitle") !== -1 ? e?.leftBarTitle : r("leftBar", i || [], t || []),
|
|
1455
|
+
rightBarTitle: Object.keys(e || {}).indexOf("rightBarTitle") !== -1 ? e?.rightBarTitle : r("rightBar", i || [], t || []),
|
|
1447
1456
|
footNote: e?.footNote,
|
|
1448
1457
|
width: e?.width,
|
|
1449
1458
|
height: e?.height,
|
|
@@ -1477,7 +1486,8 @@ function Ge(y) {
|
|
|
1477
1486
|
detailsOnClick: e?.detailsOnClick,
|
|
1478
1487
|
styles: e?.styles,
|
|
1479
1488
|
classNames: e?.classNames,
|
|
1480
|
-
animate: e?.animate
|
|
1489
|
+
animate: e?.animate,
|
|
1490
|
+
hideAxisLine: e?.hideAxisLine
|
|
1481
1491
|
};
|
|
1482
1492
|
case "histogram":
|
|
1483
1493
|
return {
|
|
@@ -1520,7 +1530,8 @@ function Ge(y) {
|
|
|
1520
1530
|
ariaLabel: e?.ariaLabel,
|
|
1521
1531
|
detailsOnClick: e?.detailsOnClick,
|
|
1522
1532
|
styles: e?.styles,
|
|
1523
|
-
classNames: e?.classNames
|
|
1533
|
+
classNames: e?.classNames,
|
|
1534
|
+
hideAxisLine: e?.hideAxisLine
|
|
1524
1535
|
};
|
|
1525
1536
|
case "sparkLine":
|
|
1526
1537
|
return {
|
|
@@ -1569,8 +1580,8 @@ function Ge(y) {
|
|
|
1569
1580
|
showValues: e?.showValues,
|
|
1570
1581
|
graphTitle: e?.graphTitle,
|
|
1571
1582
|
graphDescription: e?.graphDescription,
|
|
1572
|
-
barTitle: Object.keys(e || {}).indexOf("barTitle") !== -1 ? e?.barTitle : r("barTitle",
|
|
1573
|
-
lineTitle: Object.keys(e || {}).indexOf("lineTitle") !== -1 ? e?.lineTitle : r("lineTitle",
|
|
1583
|
+
barTitle: Object.keys(e || {}).indexOf("barTitle") !== -1 ? e?.barTitle : r("barTitle", i || [], t || []),
|
|
1584
|
+
lineTitle: Object.keys(e || {}).indexOf("lineTitle") !== -1 ? e?.lineTitle : r("lineTitle", i || [], t || []),
|
|
1574
1585
|
footNote: e?.footNote,
|
|
1575
1586
|
width: e?.width,
|
|
1576
1587
|
height: e?.height,
|
|
@@ -1821,21 +1832,21 @@ function Ge(y) {
|
|
|
1821
1832
|
default:
|
|
1822
1833
|
return {};
|
|
1823
1834
|
}
|
|
1824
|
-
}, a[7] = o, a[8] =
|
|
1835
|
+
}, a[7] = o, a[8] = i, a[9] = t, a[10] = e, a[11] = n, a[12] = p) : p = a[12];
|
|
1825
1836
|
const w = p, u = O[s];
|
|
1826
1837
|
let f;
|
|
1827
1838
|
a[13] !== w || a[14] !== s ? (f = w(s), a[13] = w, a[14] = s, a[15] = f) : f = a[15];
|
|
1828
|
-
const
|
|
1839
|
+
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"}`;
|
|
1829
1840
|
let D;
|
|
1830
1841
|
a[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
1831
1842
|
minHeight: "inherit"
|
|
1832
1843
|
}, a[16] = D) : D = a[16];
|
|
1833
1844
|
let g;
|
|
1834
|
-
a[17] !== u || a[18] !== s || a[19] !==
|
|
1845
|
+
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];
|
|
1835
1846
|
let C;
|
|
1836
|
-
return a[21] !==
|
|
1847
|
+
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;
|
|
1837
1848
|
}
|
|
1838
1849
|
export {
|
|
1839
1850
|
Ge as G
|
|
1840
1851
|
};
|
|
1841
|
-
//# sourceMappingURL=GraphEl-
|
|
1852
|
+
//# sourceMappingURL=GraphEl-C1Rz1V__.js.map
|