@undp/data-viz 1.5.7 → 1.5.9
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 +13 -13
- package/dist/{Axis-Ddg-seDi.js → Axis-4gUOL8B7.js} +2 -2
- package/dist/{Axis-Ddg-seDi.js.map → Axis-4gUOL8B7.js.map} +1 -1
- package/dist/{Axis-DE7dSn1_.cjs → Axis-CkNn1wit.cjs} +2 -2
- package/dist/{Axis-DE7dSn1_.cjs.map → Axis-CkNn1wit.cjs.map} +1 -1
- package/dist/{AxisTitle-CK9YeovX.cjs → AxisTitle-Wkz-xeQL.cjs} +2 -2
- package/dist/{AxisTitle-CK9YeovX.cjs.map → AxisTitle-Wkz-xeQL.cjs.map} +1 -1
- package/dist/{AxisTitle-BmHLMRJZ.js → AxisTitle-v6_xcXZ-.js} +2 -2
- package/dist/{AxisTitle-BmHLMRJZ.js.map → AxisTitle-v6_xcXZ-.js.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.js +666 -664
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +2 -2
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +42 -42
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +2 -0
- package/dist/BiVariateChoroplethMap.js +257 -264
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.js +223 -221
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.js +84 -82
- 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 +296 -304
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +3 -3
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +2 -2
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +2 -2
- package/dist/CopyTextButton.cjs +4 -4
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +27 -27
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +1 -1
- package/dist/CsvDownloadButton.js +2 -2
- package/dist/DataCards.cjs +3 -3
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +16 -16
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +3 -3
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.js +133 -131
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +20 -20
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +2 -0
- package/dist/DotDensityMap.js +282 -289
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-CtOKZHD0.js → DropdownSelect-6kjXM6oW.js} +2 -2
- package/dist/DropdownSelect-6kjXM6oW.js.map +1 -0
- package/dist/{DropdownSelect-DBDM64B5.cjs → DropdownSelect-vt8yiB-g.cjs} +5 -5
- package/dist/DropdownSelect-vt8yiB-g.cjs.map +1 -0
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.js +141 -121
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.js +307 -307
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-DdTp-Mdn.js → EmptyState-36lXXyui.js} +4 -4
- package/dist/{EmptyState-DdTp-Mdn.js.map → EmptyState-36lXXyui.js.map} +1 -1
- package/dist/{EmptyState-d8_8SxeW.cjs → EmptyState-B8IpKGcL.cjs} +2 -2
- package/dist/{EmptyState-d8_8SxeW.cjs.map → EmptyState-B8IpKGcL.cjs.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.js +2 -2
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +2 -2
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.js +65 -80
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.cjs.map +1 -1
- package/dist/GeoHubMap.js +95 -125
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +73 -88
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/{GraphEl-CqWzvOyr.js → GraphEl-2IiUDxjR.js} +15 -12
- package/dist/GraphEl-2IiUDxjR.js.map +1 -0
- package/dist/GraphEl-qrlfGPe3.cjs +2 -0
- package/dist/GraphEl-qrlfGPe3.cjs.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphHeader.cjs +1 -1
- package/dist/GraphHeader.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +2 -2
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +5 -5
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/GriddedGraphsFromConfig.js +2 -2
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +19 -19
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +3 -3
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +2 -2
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.js +204 -184
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +2 -2
- package/dist/{Modal-DVVwpKhP.js → Modal-Cg8daIlV.js} +198 -187
- package/dist/Modal-Cg8daIlV.js.map +1 -0
- package/dist/Modal-CuuJdWkD.cjs +46 -0
- package/dist/Modal-CuuJdWkD.cjs.map +1 -0
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboard.js +3 -3
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.js +2 -2
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +4 -4
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +2 -2
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.js +172 -173
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.js +89 -78
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.js +186 -181
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +3 -3
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +2 -2
- package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.js +3 -3
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +256 -244
- package/dist/RadarChart.js.map +1 -1
- package/dist/{ReferenceLine-CfAW3vKJ.js → ReferenceLine-CPMaAX0r.js} +3 -3
- package/dist/{ReferenceLine-CfAW3vKJ.js.map → ReferenceLine-CPMaAX0r.js.map} +1 -1
- package/dist/{ReferenceLine-CFVBBN__.cjs → ReferenceLine-D04j-zeV.cjs} +2 -2
- package/dist/{ReferenceLine-CFVBBN__.cjs.map → ReferenceLine-D04j-zeV.cjs.map} +1 -1
- package/dist/{RegressionLine-mH7UKOPi.js → RegressionLine-CW7iViH2.js} +13 -12
- package/dist/RegressionLine-CW7iViH2.js.map +1 -0
- package/dist/RegressionLine-D-49RaHa.cjs +2 -0
- package/dist/RegressionLine-D-49RaHa.cjs.map +1 -0
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +27 -27
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.js +145 -144
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/ScrollStory.js +3 -3
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.js +53 -48
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +6 -6
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardFromConfig.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +2 -2
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +2 -2
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +14 -13
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +2 -2
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.js +137 -133
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +2 -2
- package/dist/{Spinner-C85UF28E.js → Spinner-Bpz70q_g.js} +2 -2
- package/dist/{Spinner-C85UF28E.js.map → Spinner-Bpz70q_g.js.map} +1 -1
- package/dist/{Spinner-DA6Z5E4n.cjs → Spinner-C6wLp85s.cjs} +2 -2
- package/dist/{Spinner-DA6Z5E4n.cjs.map → Spinner-C6wLp85s.cjs.map} +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +2 -2
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.js +307 -295
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +2 -0
- package/dist/ThreeDGlobe.js +220 -228
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +2 -2
- package/dist/{Tooltip-CVCGWyzw.js → Tooltip-6LIdPQGC.js} +2 -2
- package/dist/{Tooltip-CVCGWyzw.js.map → Tooltip-6LIdPQGC.js.map} +1 -1
- package/dist/{Tooltip-De16GWhY.cjs → Tooltip-Cpv0QohJ.cjs} +2 -2
- package/dist/{Tooltip-De16GWhY.cjs.map → Tooltip-Cpv0QohJ.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +24 -24
- package/dist/Types.d.ts +1 -0
- package/dist/{Typography-k-kOjICQ.cjs → Typography-BDULiwlF.cjs} +2 -2
- package/dist/{Typography-k-kOjICQ.cjs.map → Typography-BDULiwlF.cjs.map} +1 -1
- package/dist/{Typography-Ctgfl1J5.js → Typography-LmZ9LEpe.js} +2 -2
- package/dist/{Typography-Ctgfl1J5.js.map → Typography-LmZ9LEpe.js.map} +1 -1
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.js +25 -26
- package/dist/UnitChart.js.map +1 -1
- package/dist/{XAxesLabels-Drf7M3YK.cjs → XAxesLabels-CLZnBgSr.cjs} +2 -2
- package/dist/{XAxesLabels-Drf7M3YK.cjs.map → XAxesLabels-CLZnBgSr.cjs.map} +1 -1
- package/dist/{XAxesLabels-loO78vUO.js → XAxesLabels-SOSmso5J.js} +3 -3
- package/dist/{XAxesLabels-loO78vUO.js.map → XAxesLabels-SOSmso5J.js.map} +1 -1
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js → XTicksAndGridLines-DuydSnZ_.js} +2 -2
- package/dist/{XTicksAndGridLines-Bn9u5gOM.js.map → XTicksAndGridLines-DuydSnZ_.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs → XTicksAndGridLines-RKy7BVCO.cjs} +2 -2
- package/dist/{XTicksAndGridLines-CCzXIV8d.cjs.map → XTicksAndGridLines-RKy7BVCO.cjs.map} +1 -1
- package/dist/{YAxesLabels-DECkMgq8.js → YAxesLabels-DlDyLvhi.js} +3 -3
- package/dist/{YAxesLabels-DECkMgq8.js.map → YAxesLabels-DlDyLvhi.js.map} +1 -1
- package/dist/{YAxesLabels-yRFFdx1s.cjs → YAxesLabels-Dqd259-t.cjs} +2 -2
- package/dist/{YAxesLabels-yRFFdx1s.cjs.map → YAxesLabels-Dqd259-t.cjs.map} +1 -1
- package/dist/{YTicksAndGridLines-B6ah7CRf.js → YTicksAndGridLines-7t4MKtGw.js} +2 -2
- package/dist/{YTicksAndGridLines-B6ah7CRf.js.map → YTicksAndGridLines-7t4MKtGw.js.map} +1 -1
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs → YTicksAndGridLines-qGpRo_t1.cjs} +2 -2
- package/dist/{YTicksAndGridLines-DBDuz6vb.cjs.map → YTicksAndGridLines-qGpRo_t1.cjs.map} +1 -1
- package/dist/checkIfMultiple-Dko_cBvE.cjs +12 -0
- package/dist/checkIfMultiple-Dko_cBvE.cjs.map +1 -0
- package/dist/{checkIfMultiple-ChTJk2Tk.js → checkIfMultiple-u2SmbiCf.js} +11 -11
- package/dist/checkIfMultiple-u2SmbiCf.js.map +1 -0
- package/dist/{customArea-CK768gCn.cjs → customArea-1G1S78s_.cjs} +2 -2
- package/dist/{customArea-CK768gCn.cjs.map → customArea-1G1S78s_.cjs.map} +1 -1
- package/dist/{customArea-B-dWU0zZ.js → customArea-x4L4xwLl.js} +3 -3
- package/dist/{customArea-B-dWU0zZ.js.map → customArea-x4L4xwLl.js.map} +1 -1
- package/dist/getCentroidCoordinates-Dfk6IqEG.js.map +1 -1
- package/dist/getCentroidCoordinates-DxTBqzp2.cjs.map +1 -1
- package/dist/getSliderMarks-CUxPy36E.cjs +6 -0
- package/dist/getSliderMarks-CUxPy36E.cjs.map +1 -0
- package/dist/{getSliderMarks-9cNoRkDx.js → getSliderMarks-_pYOWEtO.js} +3 -3
- package/dist/getSliderMarks-_pYOWEtO.js.map +1 -0
- package/dist/{index-BYzIB5V6.cjs → index-BHe3wsWF.cjs} +2 -2
- package/dist/{index-BYzIB5V6.cjs.map → index-BHe3wsWF.cjs.map} +1 -1
- package/dist/{index-DKCxu1Gh.js → index-Bw_eHBVN.js} +3 -3
- package/dist/{index-DKCxu1Gh.js.map → index-Bw_eHBVN.js.map} +1 -1
- package/dist/{index-BW_-wD2k.cjs → index-C0bpbS4F.cjs} +2 -2
- package/dist/{index-BW_-wD2k.cjs.map → index-C0bpbS4F.cjs.map} +1 -1
- package/dist/{index-37q0ULNQ.js → index-CE9pmfxt.js} +17 -17
- package/dist/{index-37q0ULNQ.js.map → index-CE9pmfxt.js.map} +1 -1
- package/dist/{index-CVlCtJbC.cjs → index-CEJwW3lL.cjs} +2 -2
- package/dist/{index-CVlCtJbC.cjs.map → index-CEJwW3lL.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-BPSP-7Jg.js → index-CHPV5EwG-DBWUSD9b.js} +539 -543
- package/dist/index-CHPV5EwG-DBWUSD9b.js.map +1 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs +44 -0
- package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +1 -0
- package/dist/{index-BW8iNx7E.cjs → index-Cm8NIdOO.cjs} +2 -2
- package/dist/{index-BW8iNx7E.cjs.map → index-Cm8NIdOO.cjs.map} +1 -1
- package/dist/{index-tvAyXPPW-DBlMKnNB.js → index-Cw8sCyo_-BuI_jX5Z.js} +3 -3
- package/dist/{index-tvAyXPPW-DBlMKnNB.js.map → index-Cw8sCyo_-BuI_jX5Z.js.map} +1 -1
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs +2 -0
- package/dist/index-Cw8sCyo_-gxT8ADyn.cjs.map +1 -0
- package/dist/{index-CNvov0eg.js → index-Cwgh7i7X.js} +3 -3
- package/dist/{index-CNvov0eg.js.map → index-Cwgh7i7X.js.map} +1 -1
- package/dist/{index-DG3YrCr5-D3FrrXj8.js → index-Dzc_aaI9-BKklH89r.js} +2 -2
- package/dist/{index-DG3YrCr5-D3FrrXj8.js.map → index-Dzc_aaI9-BKklH89r.js.map} +1 -1
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs → index-Dzc_aaI9-RIk2GRHD.cjs} +2 -2
- package/dist/{index-DG3YrCr5-v7rayV3N.cjs.map → index-Dzc_aaI9-RIk2GRHD.cjs.map} +1 -1
- package/dist/{index-BmCqpO1B.js → index-zZjQEHlm.js} +2 -2
- package/dist/{index-BmCqpO1B.js.map → index-zZjQEHlm.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1
- package/dist/{proxy-CkpFesk1.js → proxy-BYIC9BuT.js} +2 -2
- package/dist/{proxy-CkpFesk1.js.map → proxy-BYIC9BuT.js.map} +1 -1
- package/dist/{proxy-BHRoeZgd.cjs → proxy-CKadx4lC.cjs} +2 -2
- package/dist/{proxy-BHRoeZgd.cjs.map → proxy-CKadx4lC.cjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{use-in-view-sQJZ_xDO.cjs → use-in-view-CEwlc_dd.cjs} +2 -2
- package/dist/{use-in-view-sQJZ_xDO.cjs.map → use-in-view-CEwlc_dd.cjs.map} +1 -1
- package/dist/{use-in-view-yS6jzJAp.js → use-in-view-DR-UTB96.js} +2 -2
- package/dist/{use-in-view-yS6jzJAp.js.map → use-in-view-DR-UTB96.js.map} +1 -1
- package/package.json +4 -4
- package/dist/DropdownSelect-CtOKZHD0.js.map +0 -1
- package/dist/DropdownSelect-DBDM64B5.cjs.map +0 -1
- package/dist/GraphEl-C6yjl1VM.cjs +0 -2
- package/dist/GraphEl-C6yjl1VM.cjs.map +0 -1
- package/dist/GraphEl-CqWzvOyr.js.map +0 -1
- package/dist/Modal-DVVwpKhP.js.map +0 -1
- package/dist/Modal-tXZlLE5s.cjs +0 -46
- package/dist/Modal-tXZlLE5s.cjs.map +0 -1
- package/dist/RegressionLine-mH7UKOPi.js.map +0 -1
- package/dist/RegressionLine-xKdiJ8sw.cjs +0 -2
- package/dist/RegressionLine-xKdiJ8sw.cjs.map +0 -1
- package/dist/checkIfMultiple-BXbHUCWM.cjs +0 -12
- package/dist/checkIfMultiple-BXbHUCWM.cjs.map +0 -1
- package/dist/checkIfMultiple-ChTJk2Tk.js.map +0 -1
- package/dist/getSliderMarks-9cNoRkDx.js.map +0 -1
- package/dist/getSliderMarks-CRIbTGYV.cjs +0 -6
- package/dist/getSliderMarks-CRIbTGYV.cjs.map +0 -1
- package/dist/index-CHPV5EwG-BPSP-7Jg.js.map +0 -1
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs +0 -44
- package/dist/index-CHPV5EwG-DDoeWRVt.cjs.map +0 -1
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs +0 -2
- package/dist/index-tvAyXPPW-DPOG-C2i.cjs.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { j as i, m as k } from "./index-CHPV5EwG-
|
|
2
|
-
import { useRef as
|
|
1
|
+
import { j as i, m as k } from "./index-CHPV5EwG-DBWUSD9b.js";
|
|
2
|
+
import { useRef as ot, useState as P, useEffect as gt } from "react";
|
|
3
3
|
import { p as G, f as $t } from "./parse-DlCRUFh_.js";
|
|
4
4
|
import { o as It } from "./index-DvVprvy6.js";
|
|
5
|
-
import { n as
|
|
6
|
-
import { T as Tt } from "./Tooltip-
|
|
7
|
-
import { c as
|
|
8
|
-
import { X as Vt } from "./XTicksAndGridLines-
|
|
9
|
-
import { A as
|
|
10
|
-
import { A as At } from "./AxisTitle-
|
|
11
|
-
import { H as Ot } from "./index-
|
|
5
|
+
import { n as lt } from "./numberFormattingFunction-14YCbkN2.js";
|
|
6
|
+
import { T as Tt } from "./Tooltip-6LIdPQGC.js";
|
|
7
|
+
import { c as f } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
8
|
+
import { X as Vt } from "./XTicksAndGridLines-DuydSnZ_.js";
|
|
9
|
+
import { A as ft } from "./Axis-4gUOL8B7.js";
|
|
10
|
+
import { A as At } from "./AxisTitle-v6_xcXZ-.js";
|
|
11
|
+
import { H as Ot } from "./index-Bw_eHBVN.js";
|
|
12
12
|
import { t as St } from "./time-BzJP5SPC.js";
|
|
13
13
|
import { a as bt } from "./linear-DUdu7l2G.js";
|
|
14
14
|
import { l as Nt, c as Ct } from "./line-CPfhohvF.js";
|
|
@@ -16,22 +16,22 @@ import { c as Ft, s as Ht, a as Pt, m as Wt } from "./step-BrDul-H4.js";
|
|
|
16
16
|
import { s as Xt } from "./select-DKy99ogv.js";
|
|
17
17
|
import { a as Et } from "./init-BhZylTFx.js";
|
|
18
18
|
import { p as Yt } from "./pointer-CWRWOsrb.js";
|
|
19
|
-
import { u as Gt } from "./use-in-view-
|
|
20
|
-
import { m as N } from "./proxy-
|
|
19
|
+
import { u as Gt } from "./use-in-view-DR-UTB96.js";
|
|
20
|
+
import { m as N } from "./proxy-BYIC9BuT.js";
|
|
21
21
|
import { GraphFooter as Rt } from "./GraphFooter.js";
|
|
22
22
|
import { GraphHeader as Bt } from "./GraphHeader.js";
|
|
23
23
|
import { ColorLegend as zt } from "./ColorLegend.js";
|
|
24
24
|
import { Colors as kt } from "./Colors.js";
|
|
25
|
-
import { E as Ut } from "./EmptyState-
|
|
25
|
+
import { E as Ut } from "./EmptyState-36lXXyui.js";
|
|
26
26
|
function qt(ct) {
|
|
27
27
|
const {
|
|
28
28
|
data: L,
|
|
29
29
|
width: A,
|
|
30
30
|
height: V,
|
|
31
|
-
lineColors:
|
|
31
|
+
lineColors: a,
|
|
32
32
|
labels: u,
|
|
33
|
-
sameAxes:
|
|
34
|
-
dateFormat:
|
|
33
|
+
sameAxes: l,
|
|
34
|
+
dateFormat: g,
|
|
35
35
|
showValues: R,
|
|
36
36
|
noOfXTicks: mt,
|
|
37
37
|
rightMargin: xt,
|
|
@@ -41,7 +41,7 @@ function qt(ct) {
|
|
|
41
41
|
tooltip: v,
|
|
42
42
|
highlightAreaSettings: yt,
|
|
43
43
|
onSeriesMouseOver: W,
|
|
44
|
-
animate:
|
|
44
|
+
animate: s,
|
|
45
45
|
strokeWidth: U,
|
|
46
46
|
showDots: X,
|
|
47
47
|
noOfYTicks: q,
|
|
@@ -50,52 +50,52 @@ function qt(ct) {
|
|
|
50
50
|
minDate: J,
|
|
51
51
|
maxDate: D,
|
|
52
52
|
curveType: C,
|
|
53
|
-
styles:
|
|
53
|
+
styles: o,
|
|
54
54
|
classNames: n,
|
|
55
55
|
precision: b,
|
|
56
56
|
customLayers: E,
|
|
57
57
|
showAxisLabels: K
|
|
58
|
-
} = ct, Q =
|
|
59
|
-
once:
|
|
60
|
-
amount:
|
|
58
|
+
} = ct, Q = ot(null), y = Gt(Q, {
|
|
59
|
+
once: s.once,
|
|
60
|
+
amount: s.amount
|
|
61
61
|
}), [d, F] = P(!1);
|
|
62
|
-
|
|
62
|
+
gt(() => {
|
|
63
63
|
if (y && !d) {
|
|
64
64
|
const t = setTimeout(
|
|
65
65
|
() => {
|
|
66
66
|
F(!0);
|
|
67
67
|
},
|
|
68
|
-
(
|
|
68
|
+
(s.duration + 0.5) * 1e3
|
|
69
69
|
);
|
|
70
70
|
return () => clearTimeout(t);
|
|
71
71
|
}
|
|
72
|
-
}, [y, d,
|
|
72
|
+
}, [y, d, s.duration]);
|
|
73
73
|
const Z = C === "linear" ? Ct : C === "step" ? Ft : C === "stepAfter" ? Ht : C === "stepBefore" ? Pt : Wt, [M, _] = P(void 0), [tt, it] = P(void 0), [et, at] = P(void 0), h = {
|
|
74
74
|
top: z,
|
|
75
75
|
bottom: ht,
|
|
76
76
|
left: B + 50,
|
|
77
77
|
right: xt + 65
|
|
78
|
-
}, w =
|
|
78
|
+
}, w = ot(null), e = It(
|
|
79
79
|
L.map((t) => ({
|
|
80
80
|
...t,
|
|
81
|
-
date: G(`${t.date}`,
|
|
81
|
+
date: G(`${t.date}`, g, /* @__PURE__ */ new Date())
|
|
82
82
|
})),
|
|
83
83
|
["date"],
|
|
84
84
|
["asc"]
|
|
85
85
|
), dt = yt.map((t) => ({
|
|
86
86
|
...t,
|
|
87
87
|
coordinates: [
|
|
88
|
-
t.coordinates[0] === null ? null : G(`${t.coordinates[0]}`,
|
|
89
|
-
t.coordinates[1] === null ? null : G(`${t.coordinates[1]}`,
|
|
88
|
+
t.coordinates[0] === null ? null : G(`${t.coordinates[0]}`, g, /* @__PURE__ */ new Date()),
|
|
89
|
+
t.coordinates[1] === null ? null : G(`${t.coordinates[1]}`, g, /* @__PURE__ */ new Date())
|
|
90
90
|
]
|
|
91
|
-
})), x = A - h.left - h.right, r = V - h.top - h.bottom, st = J ? G(`${J}`,
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
})), x = A - h.left - h.right, r = V - h.top - h.bottom, st = J ? G(`${J}`, g, /* @__PURE__ */ new Date()) : e[0].date, nt = D ? G(`${D}`, g, /* @__PURE__ */ new Date()) : e[e.length - 1].date, H = Math.min(...e.map((t) => t.y1).filter((t) => t != null)) !== 1 / 0 ? Math.min(...e.map((t) => t.y2).filter((t) => t != null)) > 0 ? 0 : Math.min(...e.map((t) => t.y1).filter((t) => t != null)) : 0, j = Math.min(...e.map((t) => t.y2).filter((t) => t != null)) !== 1 / 0 ? Math.min(...e.map((t) => t.y2).filter((t) => t != null)) > 0 ? 0 : Math.min(...e.map((t) => t.y2).filter((t) => t != null)) : 0, $ = Math.max(...e.map((t) => t.y1).filter((t) => t != null)) !== 1 / 0 ? Math.max(...e.map((t) => t.y1).filter((t) => t != null)) : 0, c = Math.max(...e.map((t) => t.y2).filter((t) => t != null)) !== 1 / 0 ? Math.max(...e.map((t) => t.y2).filter((t) => t != null)) : 0, Y = H < j ? H : j, rt = $ > c ? $ : c, m = St().domain([st, nt]).range([0, x]), I = bt().domain([
|
|
92
|
+
l ? Y : H,
|
|
93
|
+
l ? rt > 0 ? rt : 0 : $ > 0 ? $ : 0
|
|
94
94
|
]).range([r, 0]).nice(), p = bt().domain([
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
]).range([r, 0]).nice(), vt = Nt().defined((t) => !
|
|
98
|
-
return
|
|
95
|
+
l ? Y : j,
|
|
96
|
+
l ? rt > 0 ? rt : 0 : c > 0 ? c : 0
|
|
97
|
+
]).range([r, 0]).nice(), vt = Nt().defined((t) => !f(t.y1)).x((t) => m(t.date)).y((t) => I(t.y1)).curve(Z), ut = Nt().defined((t) => !f(t.y2)).x((t) => m(t.date)).y((t) => p(t.y2)).curve(Z), Lt = I.ticks(q), Dt = p.ticks(q), wt = m.ticks(mt);
|
|
98
|
+
return gt(() => {
|
|
99
99
|
const t = (pt) => {
|
|
100
100
|
const jt = e[Et(
|
|
101
101
|
e.map((Mt) => Mt.date),
|
|
@@ -124,7 +124,7 @@ function qt(ct) {
|
|
|
124
124
|
width: x,
|
|
125
125
|
height: r,
|
|
126
126
|
scale: m,
|
|
127
|
-
animate:
|
|
127
|
+
animate: s,
|
|
128
128
|
isInView: y
|
|
129
129
|
}
|
|
130
130
|
),
|
|
@@ -138,9 +138,9 @@ function qt(ct) {
|
|
|
138
138
|
x1: -15,
|
|
139
139
|
x2: -20,
|
|
140
140
|
style: {
|
|
141
|
-
stroke:
|
|
141
|
+
stroke: a[0],
|
|
142
142
|
strokeWidth: 1,
|
|
143
|
-
...
|
|
143
|
+
...o?.yAxis?.gridLines || {}
|
|
144
144
|
},
|
|
145
145
|
className: n?.yAxis?.gridLines
|
|
146
146
|
}
|
|
@@ -154,22 +154,22 @@ function qt(ct) {
|
|
|
154
154
|
className: k("text-xs", n?.yAxis?.labels),
|
|
155
155
|
style: {
|
|
156
156
|
textAnchor: "end",
|
|
157
|
-
fill:
|
|
158
|
-
...
|
|
157
|
+
fill: a[0],
|
|
158
|
+
...o?.yAxis?.labels || {}
|
|
159
159
|
},
|
|
160
|
-
children:
|
|
160
|
+
children: lt(t, "NA", b, S[0], O[0])
|
|
161
161
|
}
|
|
162
162
|
)
|
|
163
163
|
] }, T)),
|
|
164
164
|
/* @__PURE__ */ i.jsx(
|
|
165
|
-
|
|
165
|
+
ft,
|
|
166
166
|
{
|
|
167
167
|
y1: 0,
|
|
168
168
|
y2: r,
|
|
169
169
|
x1: -15,
|
|
170
170
|
x2: -15,
|
|
171
171
|
classNames: { axis: n?.xAxis?.axis },
|
|
172
|
-
styles: { axis: { stroke:
|
|
172
|
+
styles: { axis: { stroke: a[0], ...o?.xAxis?.axis || {} } }
|
|
173
173
|
}
|
|
174
174
|
),
|
|
175
175
|
K ? /* @__PURE__ */ i.jsx(
|
|
@@ -177,7 +177,7 @@ function qt(ct) {
|
|
|
177
177
|
{
|
|
178
178
|
x: 10 - h.left,
|
|
179
179
|
y: r / 2,
|
|
180
|
-
style: { fill:
|
|
180
|
+
style: { fill: a[0], ...o?.yAxis?.title || {} },
|
|
181
181
|
className: n?.yAxis?.title,
|
|
182
182
|
text: u[0].length > 100 ? `${u[0].substring(0, 100)}...` : u[0],
|
|
183
183
|
rotate90: !0
|
|
@@ -194,9 +194,9 @@ function qt(ct) {
|
|
|
194
194
|
x1: x + 15,
|
|
195
195
|
x2: x + 20,
|
|
196
196
|
style: {
|
|
197
|
-
stroke:
|
|
197
|
+
stroke: a[1],
|
|
198
198
|
strokeWidth: 1,
|
|
199
|
-
...
|
|
199
|
+
...o?.yAxis?.gridLines || {}
|
|
200
200
|
},
|
|
201
201
|
className: n?.yAxis?.gridLines
|
|
202
202
|
}
|
|
@@ -210,23 +210,23 @@ function qt(ct) {
|
|
|
210
210
|
dx: -2,
|
|
211
211
|
style: {
|
|
212
212
|
textAnchor: "start",
|
|
213
|
-
fill:
|
|
214
|
-
...
|
|
213
|
+
fill: a[1],
|
|
214
|
+
...o?.yAxis?.labels || {}
|
|
215
215
|
},
|
|
216
216
|
className: k("text-xs", n?.yAxis?.labels),
|
|
217
|
-
children:
|
|
217
|
+
children: lt(t, "NA", b, S[1], O[1])
|
|
218
218
|
}
|
|
219
219
|
)
|
|
220
220
|
] }, T)),
|
|
221
221
|
/* @__PURE__ */ i.jsx(
|
|
222
|
-
|
|
222
|
+
ft,
|
|
223
223
|
{
|
|
224
224
|
y1: 0,
|
|
225
225
|
y2: r,
|
|
226
226
|
x1: x + 15,
|
|
227
227
|
x2: x + 15,
|
|
228
228
|
classNames: { axis: n?.xAxis?.axis },
|
|
229
|
-
styles: { axis: { stroke:
|
|
229
|
+
styles: { axis: { stroke: a[1], ...o?.xAxis?.axis || {} } }
|
|
230
230
|
}
|
|
231
231
|
),
|
|
232
232
|
K ? /* @__PURE__ */ i.jsx(
|
|
@@ -234,7 +234,7 @@ function qt(ct) {
|
|
|
234
234
|
{
|
|
235
235
|
x: x + h.right - 15,
|
|
236
236
|
y: r / 2,
|
|
237
|
-
style: { fill:
|
|
237
|
+
style: { fill: a[1], ...o?.yAxis?.title || {} },
|
|
238
238
|
className: n?.yAxis?.title,
|
|
239
239
|
text: u[1].length > 100 ? `${u[1].substring(0, 100)}...` : u[1],
|
|
240
240
|
rotate90: !0
|
|
@@ -243,26 +243,26 @@ function qt(ct) {
|
|
|
243
243
|
] }),
|
|
244
244
|
/* @__PURE__ */ i.jsxs("g", { children: [
|
|
245
245
|
/* @__PURE__ */ i.jsx(
|
|
246
|
-
|
|
246
|
+
ft,
|
|
247
247
|
{
|
|
248
248
|
y1: r,
|
|
249
249
|
y2: r,
|
|
250
250
|
x1: -15,
|
|
251
251
|
x2: x + 15,
|
|
252
252
|
classNames: { axis: n?.xAxis?.axis },
|
|
253
|
-
styles: { axis:
|
|
253
|
+
styles: { axis: o?.xAxis?.axis }
|
|
254
254
|
}
|
|
255
255
|
),
|
|
256
256
|
/* @__PURE__ */ i.jsx(
|
|
257
257
|
Vt,
|
|
258
258
|
{
|
|
259
|
-
values: wt.map((t) => $t(t,
|
|
259
|
+
values: wt.map((t) => $t(t, g)),
|
|
260
260
|
x: wt.map((t) => m(t)),
|
|
261
261
|
y1: 0,
|
|
262
262
|
y2: r,
|
|
263
263
|
styles: {
|
|
264
|
-
gridLines:
|
|
265
|
-
labels:
|
|
264
|
+
gridLines: o?.xAxis?.gridLines,
|
|
265
|
+
labels: o?.xAxis?.labels
|
|
266
266
|
},
|
|
267
267
|
classNames: {
|
|
268
268
|
gridLines: k("opacity-0", n?.xAxis?.gridLines),
|
|
@@ -283,17 +283,17 @@ function qt(ct) {
|
|
|
283
283
|
N.path,
|
|
284
284
|
{
|
|
285
285
|
style: {
|
|
286
|
-
stroke:
|
|
286
|
+
stroke: a[0],
|
|
287
287
|
strokeWidth: U,
|
|
288
288
|
fill: "none"
|
|
289
289
|
},
|
|
290
|
-
exit: { opacity: 0, transition: { duration:
|
|
290
|
+
exit: { opacity: 0, transition: { duration: s.duration } },
|
|
291
291
|
variants: {
|
|
292
292
|
initial: {
|
|
293
293
|
pathLength: 0,
|
|
294
294
|
d: vt(
|
|
295
295
|
e.filter(
|
|
296
|
-
(t) => !
|
|
296
|
+
(t) => !f(t.y1)
|
|
297
297
|
)
|
|
298
298
|
) || "",
|
|
299
299
|
opacity: 1
|
|
@@ -302,11 +302,11 @@ function qt(ct) {
|
|
|
302
302
|
pathLength: 1,
|
|
303
303
|
d: vt(
|
|
304
304
|
e.filter(
|
|
305
|
-
(t) => !
|
|
305
|
+
(t) => !f(t.y1)
|
|
306
306
|
)
|
|
307
307
|
) || "",
|
|
308
308
|
opacity: 1,
|
|
309
|
-
transition: { duration:
|
|
309
|
+
transition: { duration: s.duration }
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
312
|
initial: "initial",
|
|
@@ -318,21 +318,21 @@ function qt(ct) {
|
|
|
318
318
|
{
|
|
319
319
|
d: ut(
|
|
320
320
|
e.filter(
|
|
321
|
-
(t) => !
|
|
321
|
+
(t) => !f(t.y2)
|
|
322
322
|
)
|
|
323
323
|
) || "",
|
|
324
324
|
style: {
|
|
325
|
-
stroke:
|
|
325
|
+
stroke: a[1],
|
|
326
326
|
strokeWidth: U,
|
|
327
327
|
fill: "none"
|
|
328
328
|
},
|
|
329
|
-
exit: { opacity: 0, transition: { duration:
|
|
329
|
+
exit: { opacity: 0, transition: { duration: s.duration } },
|
|
330
330
|
variants: {
|
|
331
331
|
initial: {
|
|
332
332
|
pathLength: 0,
|
|
333
333
|
d: ut(
|
|
334
334
|
e.filter(
|
|
335
|
-
(t) => !
|
|
335
|
+
(t) => !f(t.y2)
|
|
336
336
|
)
|
|
337
337
|
) || "",
|
|
338
338
|
opacity: 1
|
|
@@ -341,11 +341,11 @@ function qt(ct) {
|
|
|
341
341
|
pathLength: 1,
|
|
342
342
|
d: ut(
|
|
343
343
|
e.filter(
|
|
344
|
-
(t) => !
|
|
344
|
+
(t) => !f(t.y2)
|
|
345
345
|
)
|
|
346
346
|
) || "",
|
|
347
347
|
opacity: 1,
|
|
348
|
-
transition: { duration:
|
|
348
|
+
transition: { duration: s.duration }
|
|
349
349
|
}
|
|
350
350
|
},
|
|
351
351
|
initial: "initial",
|
|
@@ -363,25 +363,30 @@ function qt(ct) {
|
|
|
363
363
|
"undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",
|
|
364
364
|
n?.mouseOverLine
|
|
365
365
|
),
|
|
366
|
-
style:
|
|
366
|
+
style: o?.mouseOverLine
|
|
367
367
|
}
|
|
368
368
|
) : null
|
|
369
369
|
] }),
|
|
370
370
|
/* @__PURE__ */ i.jsx("g", { children: e.map((t, T) => /* @__PURE__ */ i.jsxs(N.g, { children: [
|
|
371
|
-
|
|
371
|
+
f(t.y1) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
372
372
|
X ? /* @__PURE__ */ i.jsx(
|
|
373
373
|
N.circle,
|
|
374
374
|
{
|
|
375
375
|
r: x / e.length < 5 ? 0 : x / e.length < 20 ? 2 : 4,
|
|
376
|
-
|
|
377
|
-
exit: { opacity: 0, transition: { duration: a.duration } },
|
|
376
|
+
exit: { opacity: 0, transition: { duration: s.duration } },
|
|
378
377
|
variants: {
|
|
379
|
-
initial: {
|
|
378
|
+
initial: {
|
|
379
|
+
opacity: 0,
|
|
380
|
+
cx: m(t.date),
|
|
381
|
+
cy: I(t.y1),
|
|
382
|
+
fill: a[0]
|
|
383
|
+
},
|
|
380
384
|
whileInView: {
|
|
381
385
|
opacity: 1,
|
|
386
|
+
fill: a[0],
|
|
382
387
|
transition: {
|
|
383
|
-
duration: d ?
|
|
384
|
-
delay: d ? 0 :
|
|
388
|
+
duration: d ? s.duration : 0.5,
|
|
389
|
+
delay: d ? 0 : s.duration
|
|
385
390
|
},
|
|
386
391
|
cx: m(t.date),
|
|
387
392
|
cy: I(t.y1)
|
|
@@ -394,32 +399,37 @@ function qt(ct) {
|
|
|
394
399
|
R ? /* @__PURE__ */ i.jsx(
|
|
395
400
|
N.text,
|
|
396
401
|
{
|
|
397
|
-
dy:
|
|
402
|
+
dy: f(t.y2) || t.y2 < t.y1 ? -8 : "1em",
|
|
398
403
|
style: {
|
|
399
|
-
fill: s[0],
|
|
400
404
|
textAnchor: "middle",
|
|
401
|
-
...
|
|
405
|
+
...o?.graphObjectValues || {}
|
|
402
406
|
},
|
|
403
407
|
className: k(
|
|
404
408
|
"graph-value graph-value-line-1 text-xs font-bold",
|
|
405
409
|
n?.graphObjectValues
|
|
406
410
|
),
|
|
407
|
-
exit: { opacity: 0, transition: { duration:
|
|
411
|
+
exit: { opacity: 0, transition: { duration: s.duration } },
|
|
408
412
|
variants: {
|
|
409
|
-
initial: {
|
|
413
|
+
initial: {
|
|
414
|
+
opacity: 0,
|
|
415
|
+
x: m(t.date),
|
|
416
|
+
y: p(t.y1),
|
|
417
|
+
fill: a[0]
|
|
418
|
+
},
|
|
410
419
|
whileInView: {
|
|
411
420
|
opacity: 1,
|
|
412
421
|
x: m(t.date),
|
|
422
|
+
fill: a[0],
|
|
413
423
|
y: p(t.y1),
|
|
414
424
|
transition: {
|
|
415
|
-
duration: d ?
|
|
416
|
-
delay: d ? 0 :
|
|
425
|
+
duration: d ? s.duration : 0.5,
|
|
426
|
+
delay: d ? 0 : s.duration
|
|
417
427
|
}
|
|
418
428
|
}
|
|
419
429
|
},
|
|
420
430
|
initial: "initial",
|
|
421
431
|
animate: y ? "whileInView" : "initial",
|
|
422
|
-
children:
|
|
432
|
+
children: lt(
|
|
423
433
|
t.y1,
|
|
424
434
|
"NA",
|
|
425
435
|
b,
|
|
@@ -429,21 +439,26 @@ function qt(ct) {
|
|
|
429
439
|
}
|
|
430
440
|
) : null
|
|
431
441
|
] }),
|
|
432
|
-
|
|
442
|
+
f(t.y2) ? null : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
433
443
|
X ? /* @__PURE__ */ i.jsx(
|
|
434
444
|
N.circle,
|
|
435
445
|
{
|
|
436
446
|
r: x / e.length < 5 ? 0 : x / e.length < 20 ? 2 : 4,
|
|
437
|
-
|
|
438
|
-
exit: { opacity: 0, transition: { duration: a.duration } },
|
|
447
|
+
exit: { opacity: 0, transition: { duration: s.duration } },
|
|
439
448
|
variants: {
|
|
440
|
-
initial: {
|
|
449
|
+
initial: {
|
|
450
|
+
opacity: 0,
|
|
451
|
+
cx: m(t.date),
|
|
452
|
+
cy: p(t.y2),
|
|
453
|
+
fill: a[1]
|
|
454
|
+
},
|
|
441
455
|
whileInView: {
|
|
442
456
|
opacity: 1,
|
|
443
457
|
transition: {
|
|
444
|
-
duration: d ?
|
|
445
|
-
delay: d ? 0 :
|
|
458
|
+
duration: d ? s.duration : 0.5,
|
|
459
|
+
delay: d ? 0 : s.duration
|
|
446
460
|
},
|
|
461
|
+
fill: a[1],
|
|
447
462
|
cx: m(t.date),
|
|
448
463
|
cy: p(t.y2)
|
|
449
464
|
}
|
|
@@ -455,32 +470,37 @@ function qt(ct) {
|
|
|
455
470
|
R ? /* @__PURE__ */ i.jsx(
|
|
456
471
|
N.text,
|
|
457
472
|
{
|
|
458
|
-
dy:
|
|
473
|
+
dy: f(t.y1) || t.y1 < t.y2 ? -8 : "1em",
|
|
459
474
|
style: {
|
|
460
|
-
fill: s[1],
|
|
461
475
|
textAnchor: "middle",
|
|
462
|
-
...
|
|
476
|
+
...o?.graphObjectValues || {}
|
|
463
477
|
},
|
|
464
478
|
className: k(
|
|
465
479
|
"graph-value graph-value-line-2 text-xs font-bold",
|
|
466
480
|
n?.graphObjectValues
|
|
467
481
|
),
|
|
468
|
-
exit: { opacity: 0, transition: { duration:
|
|
482
|
+
exit: { opacity: 0, transition: { duration: s.duration } },
|
|
469
483
|
variants: {
|
|
470
|
-
initial: {
|
|
484
|
+
initial: {
|
|
485
|
+
opacity: 0,
|
|
486
|
+
x: m(t.date),
|
|
487
|
+
y: p(t.y2),
|
|
488
|
+
fill: a[1]
|
|
489
|
+
},
|
|
471
490
|
whileInView: {
|
|
472
491
|
opacity: 1,
|
|
473
492
|
x: m(t.date),
|
|
474
493
|
y: p(t.y2),
|
|
494
|
+
fill: a[1],
|
|
475
495
|
transition: {
|
|
476
|
-
duration: d ?
|
|
477
|
-
delay: d ? 0 :
|
|
496
|
+
duration: d ? s.duration : 0.5,
|
|
497
|
+
delay: d ? 0 : s.duration
|
|
478
498
|
}
|
|
479
499
|
}
|
|
480
500
|
},
|
|
481
501
|
initial: "initial",
|
|
482
502
|
animate: y ? "whileInView" : "initial",
|
|
483
|
-
children:
|
|
503
|
+
children: lt(
|
|
484
504
|
t.y2,
|
|
485
505
|
"NA",
|
|
486
506
|
b,
|
|
@@ -514,7 +534,7 @@ function qt(ct) {
|
|
|
514
534
|
body: v,
|
|
515
535
|
xPos: tt,
|
|
516
536
|
yPos: et,
|
|
517
|
-
backgroundStyle:
|
|
537
|
+
backgroundStyle: o?.tooltip,
|
|
518
538
|
className: n?.tooltip
|
|
519
539
|
}
|
|
520
540
|
) : null
|
|
@@ -525,10 +545,10 @@ function wi(ct) {
|
|
|
525
545
|
data: L,
|
|
526
546
|
graphTitle: A,
|
|
527
547
|
sources: V,
|
|
528
|
-
graphDescription:
|
|
548
|
+
graphDescription: a,
|
|
529
549
|
height: u,
|
|
530
|
-
width:
|
|
531
|
-
footNote:
|
|
550
|
+
width: l,
|
|
551
|
+
footNote: g,
|
|
532
552
|
noOfXTicks: R = 10,
|
|
533
553
|
dateFormat: mt = "yyyy",
|
|
534
554
|
showValues: xt = !1,
|
|
@@ -541,7 +561,7 @@ function wi(ct) {
|
|
|
541
561
|
backgroundColor: v = !1,
|
|
542
562
|
leftMargin: yt = 80,
|
|
543
563
|
rightMargin: W = 80,
|
|
544
|
-
topMargin:
|
|
564
|
+
topMargin: s = 20,
|
|
545
565
|
bottomMargin: U = 25,
|
|
546
566
|
labels: X,
|
|
547
567
|
lineSuffixes: q = ["", ""],
|
|
@@ -550,7 +570,7 @@ function wi(ct) {
|
|
|
550
570
|
highlightAreaSettings: J = [],
|
|
551
571
|
relativeHeight: D,
|
|
552
572
|
onSeriesMouseOver: C,
|
|
553
|
-
graphID:
|
|
573
|
+
graphID: o,
|
|
554
574
|
graphDownload: n = !1,
|
|
555
575
|
dataDownload: b = !1,
|
|
556
576
|
animate: E = !1,
|
|
@@ -571,39 +591,39 @@ function wi(ct) {
|
|
|
571
591
|
precision: e = 2,
|
|
572
592
|
customLayers: dt = [],
|
|
573
593
|
showAxisLabels: x = !0
|
|
574
|
-
} = ct, [r, st] = P(0), [nt, H] = P(0), j =
|
|
575
|
-
return
|
|
594
|
+
} = ct, [r, st] = P(0), [nt, H] = P(0), j = ot(null), $ = ot(null);
|
|
595
|
+
return gt(() => {
|
|
576
596
|
const c = new ResizeObserver((Y) => {
|
|
577
|
-
st(
|
|
597
|
+
st(l || Y[0].target.clientWidth || 620), H(u || Y[0].target.clientHeight || 480);
|
|
578
598
|
});
|
|
579
|
-
return j.current && (H(j.current.clientHeight || 480), st(j.current.clientWidth || 620),
|
|
580
|
-
}, [
|
|
599
|
+
return j.current && (H(j.current.clientHeight || 480), st(j.current.clientWidth || 620), l || c.observe(j.current)), () => c.disconnect();
|
|
600
|
+
}, [l, u]), /* @__PURE__ */ i.jsx(
|
|
581
601
|
"div",
|
|
582
602
|
{
|
|
583
|
-
className: `${M || "light"} flex ${
|
|
603
|
+
className: `${M || "light"} flex ${l ? "w-fit grow-0" : "w-full grow"}`,
|
|
584
604
|
dir: y === "he" || y === "ar" ? "rtl" : void 0,
|
|
585
605
|
children: /* @__PURE__ */ i.jsx(
|
|
586
606
|
"div",
|
|
587
607
|
{
|
|
588
608
|
className: k(
|
|
589
609
|
`${v ? v === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${y || "en"}`,
|
|
590
|
-
|
|
610
|
+
l ? "w-fit" : "w-full",
|
|
591
611
|
w?.graphContainer
|
|
592
612
|
),
|
|
593
613
|
style: {
|
|
594
614
|
...h?.graphContainer || {},
|
|
595
615
|
...v && v !== !0 ? { backgroundColor: v } : {}
|
|
596
616
|
},
|
|
597
|
-
id:
|
|
617
|
+
id: o,
|
|
598
618
|
ref: $,
|
|
599
|
-
"aria-label": _ || `${A ? `The graph shows ${A}. ` : ""}This is a line chart that show trends for two datasets over time.${
|
|
619
|
+
"aria-label": _ || `${A ? `The graph shows ${A}. ` : ""}This is a line chart that show trends for two datasets over time.${a ? ` ${a}` : ""}`,
|
|
600
620
|
children: /* @__PURE__ */ i.jsx(
|
|
601
621
|
"div",
|
|
602
622
|
{
|
|
603
623
|
className: "flex grow",
|
|
604
624
|
style: { padding: v ? B || "1rem" : B || 0 },
|
|
605
625
|
children: /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
606
|
-
A ||
|
|
626
|
+
A || a || n || b ? /* @__PURE__ */ i.jsx(
|
|
607
627
|
Bt,
|
|
608
628
|
{
|
|
609
629
|
styles: {
|
|
@@ -615,8 +635,8 @@ function wi(ct) {
|
|
|
615
635
|
description: w?.description
|
|
616
636
|
},
|
|
617
637
|
graphTitle: A,
|
|
618
|
-
graphDescription:
|
|
619
|
-
width:
|
|
638
|
+
graphDescription: a,
|
|
639
|
+
width: l,
|
|
620
640
|
graphDownload: n ? $.current : void 0,
|
|
621
641
|
dataDownload: b ? L.map((c) => c.data).filter((c) => c !== void 0).length > 0 ? L.map((c) => c.data).filter((c) => c !== void 0) : L.filter((c) => c !== void 0) : null
|
|
622
642
|
}
|
|
@@ -637,23 +657,23 @@ function wi(ct) {
|
|
|
637
657
|
className: "flex flex-col grow justify-center leading-0",
|
|
638
658
|
ref: j,
|
|
639
659
|
"aria-label": "Graph area",
|
|
640
|
-
children: (
|
|
660
|
+
children: (l || r) && (u || nt) ? /* @__PURE__ */ i.jsx(
|
|
641
661
|
qt,
|
|
642
662
|
{
|
|
643
663
|
data: L,
|
|
644
664
|
sameAxes: ht,
|
|
645
665
|
lineColors: z,
|
|
646
|
-
width:
|
|
666
|
+
width: l || r,
|
|
647
667
|
height: Math.max(
|
|
648
668
|
F,
|
|
649
|
-
u || (D ? F ? (
|
|
669
|
+
u || (D ? F ? (l || r) * D > F ? (l || r) * D : F : (l || r) * D : nt)
|
|
650
670
|
),
|
|
651
671
|
dateFormat: mt,
|
|
652
672
|
showValues: xt,
|
|
653
673
|
noOfXTicks: R,
|
|
654
674
|
leftMargin: yt,
|
|
655
675
|
rightMargin: W,
|
|
656
|
-
topMargin:
|
|
676
|
+
topMargin: s,
|
|
657
677
|
bottomMargin: U,
|
|
658
678
|
labels: X,
|
|
659
679
|
highlightAreaSettings: J,
|
|
@@ -678,7 +698,7 @@ function wi(ct) {
|
|
|
678
698
|
}
|
|
679
699
|
)
|
|
680
700
|
] }) }),
|
|
681
|
-
V ||
|
|
701
|
+
V || g ? /* @__PURE__ */ i.jsx(
|
|
682
702
|
Rt,
|
|
683
703
|
{
|
|
684
704
|
styles: { footnote: h?.footnote, source: h?.source },
|
|
@@ -687,8 +707,8 @@ function wi(ct) {
|
|
|
687
707
|
source: w?.source
|
|
688
708
|
},
|
|
689
709
|
sources: V,
|
|
690
|
-
footNote:
|
|
691
|
-
width:
|
|
710
|
+
footNote: g,
|
|
711
|
+
width: l
|
|
692
712
|
}
|
|
693
713
|
) : null
|
|
694
714
|
] })
|