@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
package/dist/SlopeChart.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { j as o, m as j } from "./index-CHPV5EwG-
|
|
1
|
+
import { j as o, m as j } from "./index-CHPV5EwG-DBWUSD9b.js";
|
|
2
2
|
import { useRef as ii, useState as I, useEffect as yi } from "react";
|
|
3
3
|
import { i as xi } from "./index-Bwrro8-q.js";
|
|
4
|
-
import {
|
|
5
|
-
import { T as hi } from "./Tooltip-
|
|
4
|
+
import { G as mi } from "./Modal-Cg8daIlV.js";
|
|
5
|
+
import { T as hi } from "./Tooltip-6LIdPQGC.js";
|
|
6
6
|
import { c as J } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
|
-
import { Colors as
|
|
7
|
+
import { Colors as s } from "./Colors.js";
|
|
8
8
|
import { s as fi } from "./string2HTML-oFCROsus.js";
|
|
9
|
-
import { A as ri } from "./Axis-
|
|
10
|
-
import { A as ai } from "./AxisTitle-
|
|
9
|
+
import { A as ri } from "./Axis-4gUOL8B7.js";
|
|
10
|
+
import { A as ai } from "./AxisTitle-v6_xcXZ-.js";
|
|
11
11
|
import { a as gi } from "./linear-DUdu7l2G.js";
|
|
12
|
-
import { u as ui } from "./use-in-view-
|
|
13
|
-
import { m as O } from "./proxy-
|
|
14
|
-
import { A as di } from "./index-
|
|
12
|
+
import { u as ui } from "./use-in-view-DR-UTB96.js";
|
|
13
|
+
import { m as O } from "./proxy-BYIC9BuT.js";
|
|
14
|
+
import { A as di } from "./index-Cwgh7i7X.js";
|
|
15
15
|
import { GraphFooter as pi } from "./GraphFooter.js";
|
|
16
16
|
import { GraphHeader as wi } from "./GraphHeader.js";
|
|
17
17
|
import { ColorLegendWithMouseOver as vi } from "./ColorLegendWithMouseOver.js";
|
|
18
|
-
import { E as bi } from "./EmptyState-
|
|
18
|
+
import { E as bi } from "./EmptyState-36lXXyui.js";
|
|
19
19
|
import { u as ni } from "./uniqBy-BHy4I8PK.js";
|
|
20
20
|
function Oi(K) {
|
|
21
21
|
const {
|
|
@@ -24,13 +24,13 @@ function Oi(K) {
|
|
|
24
24
|
height: k,
|
|
25
25
|
showLabels: H,
|
|
26
26
|
colors: e,
|
|
27
|
-
colorDomain:
|
|
28
|
-
radius:
|
|
27
|
+
colorDomain: a,
|
|
28
|
+
radius: r,
|
|
29
29
|
leftMargin: m,
|
|
30
|
-
rightMargin:
|
|
31
|
-
topMargin:
|
|
30
|
+
rightMargin: G,
|
|
31
|
+
topMargin: R,
|
|
32
32
|
bottomMargin: Q,
|
|
33
|
-
tooltip:
|
|
33
|
+
tooltip: X,
|
|
34
34
|
onSeriesMouseOver: F,
|
|
35
35
|
axisTitles: L,
|
|
36
36
|
highlightedDataPoints: x,
|
|
@@ -40,20 +40,20 @@ function Oi(K) {
|
|
|
40
40
|
onSeriesMouseClick: E,
|
|
41
41
|
resetSelectionOnDoubleClick: Z,
|
|
42
42
|
detailsOnClick: g,
|
|
43
|
-
styles:
|
|
43
|
+
styles: d,
|
|
44
44
|
classNames: h,
|
|
45
|
-
animate:
|
|
46
|
-
dimmedOpacity:
|
|
45
|
+
animate: c,
|
|
46
|
+
dimmedOpacity: p,
|
|
47
47
|
customLayers: B
|
|
48
|
-
} = K, _ = ii(null),
|
|
49
|
-
once:
|
|
50
|
-
amount:
|
|
51
|
-
}), [
|
|
52
|
-
top:
|
|
48
|
+
} = K, _ = ii(null), w = ui(_, {
|
|
49
|
+
once: c.once,
|
|
50
|
+
amount: c.amount
|
|
51
|
+
}), [v, S] = I(void 0), [M, N] = I(void 0), [U, C] = I(void 0), [T, W] = I(void 0), A = {
|
|
52
|
+
top: R,
|
|
53
53
|
bottom: Q,
|
|
54
54
|
left: m,
|
|
55
|
-
right:
|
|
56
|
-
},
|
|
55
|
+
right: G
|
|
56
|
+
}, u = $ - A.left - A.right, f = k - A.top - A.bottom, b = Math.min(Math.min(...l.map((i) => i.y1)), Math.min(...l.map((i) => i.y2))), P = Math.max(Math.max(...l.map((i) => i.y1)), Math.max(...l.map((i) => i.y2))), y = gi().domain([
|
|
57
57
|
J(q) ? b > 0 ? 0 : b : q,
|
|
58
58
|
J(z) ? P > 0 ? P : 0 : z
|
|
59
59
|
]).range([f, 0]).nice();
|
|
@@ -74,8 +74,8 @@ function Oi(K) {
|
|
|
74
74
|
{
|
|
75
75
|
y1: 0,
|
|
76
76
|
y2: f,
|
|
77
|
-
x1:
|
|
78
|
-
x2:
|
|
77
|
+
x1: r,
|
|
78
|
+
x2: r,
|
|
79
79
|
classNames: {
|
|
80
80
|
axis: j(
|
|
81
81
|
"stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",
|
|
@@ -87,9 +87,9 @@ function Oi(K) {
|
|
|
87
87
|
/* @__PURE__ */ o.jsx(
|
|
88
88
|
ai,
|
|
89
89
|
{
|
|
90
|
-
x:
|
|
90
|
+
x: r,
|
|
91
91
|
y: f + 15,
|
|
92
|
-
style:
|
|
92
|
+
style: d?.yAxis?.title,
|
|
93
93
|
className: j(
|
|
94
94
|
"fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
|
|
95
95
|
h?.yAxis?.title
|
|
@@ -104,8 +104,8 @@ function Oi(K) {
|
|
|
104
104
|
{
|
|
105
105
|
y1: 0,
|
|
106
106
|
y2: f,
|
|
107
|
-
x1:
|
|
108
|
-
x2:
|
|
107
|
+
x1: u - r,
|
|
108
|
+
x2: u - r,
|
|
109
109
|
classNames: {
|
|
110
110
|
axis: j(
|
|
111
111
|
"stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",
|
|
@@ -117,9 +117,9 @@ function Oi(K) {
|
|
|
117
117
|
/* @__PURE__ */ o.jsx(
|
|
118
118
|
ai,
|
|
119
119
|
{
|
|
120
|
-
x:
|
|
120
|
+
x: u - r,
|
|
121
121
|
y: f + 15,
|
|
122
|
-
style:
|
|
122
|
+
style: d?.yAxis?.title,
|
|
123
123
|
className: j(
|
|
124
124
|
"fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",
|
|
125
125
|
h?.yAxis?.title
|
|
@@ -134,16 +134,16 @@ function Oi(K) {
|
|
|
134
134
|
{
|
|
135
135
|
variants: {
|
|
136
136
|
initial: {
|
|
137
|
-
opacity: D ? i.color && e[
|
|
137
|
+
opacity: D ? i.color && e[a.indexOf(`${i.color}`)] === D ? 1 : p : v ? v.label === i.label ? 1 : p : x.length !== 0 ? x.indexOf(i.label) !== -1 ? 1 : p : 1
|
|
138
138
|
},
|
|
139
139
|
whileInView: {
|
|
140
|
-
opacity: D ? i.color && e[
|
|
141
|
-
transition: { duration:
|
|
140
|
+
opacity: D ? i.color && e[a.indexOf(`${i.color}`)] === D ? 1 : p : v ? v.label === i.label ? 1 : p : x.length !== 0 ? x.indexOf(i.label) !== -1 ? 1 : p : 1,
|
|
141
|
+
transition: { duration: c.duration }
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
144
|
initial: "initial",
|
|
145
|
-
animate:
|
|
146
|
-
exit: { opacity: 0, transition: { duration:
|
|
145
|
+
animate: w ? "whileInView" : "initial",
|
|
146
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
147
147
|
onMouseEnter: (t) => {
|
|
148
148
|
S(i), W(t.clientY), C(t.clientX), F?.(i);
|
|
149
149
|
},
|
|
@@ -160,26 +160,27 @@ function Oi(K) {
|
|
|
160
160
|
/* @__PURE__ */ o.jsx(
|
|
161
161
|
O.circle,
|
|
162
162
|
{
|
|
163
|
-
cx: c,
|
|
164
163
|
variants: {
|
|
165
164
|
initial: {
|
|
165
|
+
cx: r,
|
|
166
166
|
cy: y(i.y1),
|
|
167
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
168
|
-
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
167
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
168
|
+
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
169
169
|
opacity: 0
|
|
170
170
|
},
|
|
171
171
|
whileInView: {
|
|
172
|
+
cx: r,
|
|
172
173
|
cy: y(i.y1),
|
|
173
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
174
|
-
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
174
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
175
|
+
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
175
176
|
opacity: 1,
|
|
176
|
-
transition: { duration:
|
|
177
|
+
transition: { duration: c.duration }
|
|
177
178
|
}
|
|
178
179
|
},
|
|
179
180
|
initial: "initial",
|
|
180
|
-
animate:
|
|
181
|
-
exit: { opacity: 0, transition: { duration:
|
|
182
|
-
r
|
|
181
|
+
animate: w ? "whileInView" : "initial",
|
|
182
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
183
|
+
r,
|
|
183
184
|
style: {
|
|
184
185
|
fillOpacity: 0.6
|
|
185
186
|
}
|
|
@@ -191,28 +192,28 @@ function Oi(K) {
|
|
|
191
192
|
variants: {
|
|
192
193
|
initial: {
|
|
193
194
|
y: y(i.y1),
|
|
194
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
195
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
195
196
|
opacity: 0
|
|
196
197
|
},
|
|
197
198
|
whileInView: {
|
|
198
199
|
y: y(i.y1),
|
|
199
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
200
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
200
201
|
opacity: 1,
|
|
201
|
-
transition: { duration:
|
|
202
|
+
transition: { duration: c.duration }
|
|
202
203
|
}
|
|
203
204
|
},
|
|
204
205
|
initial: "initial",
|
|
205
|
-
animate:
|
|
206
|
-
exit: { opacity: 0, transition: { duration:
|
|
206
|
+
animate: w ? "whileInView" : "initial",
|
|
207
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
207
208
|
style: {
|
|
208
209
|
textAnchor: "end",
|
|
209
|
-
...
|
|
210
|
+
...d?.yAxis?.labels || {}
|
|
210
211
|
},
|
|
211
212
|
className: j("text-xs", h?.yAxis?.labels),
|
|
212
213
|
x: 5,
|
|
213
214
|
dy: "0.33em",
|
|
214
215
|
textAnchor: "end",
|
|
215
|
-
dx: 0 -
|
|
216
|
+
dx: 0 - r - 3,
|
|
216
217
|
children: i.label
|
|
217
218
|
}
|
|
218
219
|
) : x.length !== 0 && x.indexOf(i.label) !== -1 ? /* @__PURE__ */ o.jsx(
|
|
@@ -221,22 +222,22 @@ function Oi(K) {
|
|
|
221
222
|
variants: {
|
|
222
223
|
initial: {
|
|
223
224
|
y: y(i.y1),
|
|
224
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
225
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
225
226
|
opacity: 0
|
|
226
227
|
},
|
|
227
228
|
whileInView: {
|
|
228
229
|
y: y(i.y1),
|
|
229
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
230
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
230
231
|
opacity: 1,
|
|
231
|
-
transition: { duration:
|
|
232
|
+
transition: { duration: c.duration }
|
|
232
233
|
}
|
|
233
234
|
},
|
|
234
235
|
initial: "initial",
|
|
235
|
-
animate:
|
|
236
|
-
exit: { opacity: 0, transition: { duration:
|
|
236
|
+
animate: w ? "whileInView" : "initial",
|
|
237
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
237
238
|
style: {
|
|
238
239
|
textAnchor: "end",
|
|
239
|
-
...
|
|
240
|
+
...d?.yAxis?.labels || {}
|
|
240
241
|
},
|
|
241
242
|
className: j("text-xs", h?.yAxis?.labels),
|
|
242
243
|
x: 5,
|
|
@@ -248,26 +249,27 @@ function Oi(K) {
|
|
|
248
249
|
/* @__PURE__ */ o.jsx(
|
|
249
250
|
O.circle,
|
|
250
251
|
{
|
|
251
|
-
cx: v - c,
|
|
252
252
|
variants: {
|
|
253
253
|
initial: {
|
|
254
|
+
cx: u - r,
|
|
254
255
|
cy: y(i.y2),
|
|
255
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
256
|
-
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
256
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
257
|
+
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
257
258
|
opacity: 0
|
|
258
259
|
},
|
|
259
260
|
whileInView: {
|
|
261
|
+
cx: u - r,
|
|
260
262
|
cy: y(i.y2),
|
|
261
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
262
|
-
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
263
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
264
|
+
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
263
265
|
opacity: 1,
|
|
264
|
-
transition: { duration:
|
|
266
|
+
transition: { duration: c.duration }
|
|
265
267
|
}
|
|
266
268
|
},
|
|
267
269
|
initial: "initial",
|
|
268
|
-
animate:
|
|
269
|
-
exit: { opacity: 0, transition: { duration:
|
|
270
|
-
r
|
|
270
|
+
animate: w ? "whileInView" : "initial",
|
|
271
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
272
|
+
r,
|
|
271
273
|
style: {
|
|
272
274
|
fillOpacity: 0.6
|
|
273
275
|
}
|
|
@@ -279,27 +281,27 @@ function Oi(K) {
|
|
|
279
281
|
variants: {
|
|
280
282
|
initial: {
|
|
281
283
|
y: y(i.y2),
|
|
282
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
284
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
283
285
|
opacity: 0
|
|
284
286
|
},
|
|
285
287
|
whileInView: {
|
|
286
288
|
y: y(i.y2),
|
|
287
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
289
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
288
290
|
opacity: 1,
|
|
289
|
-
transition: { duration:
|
|
291
|
+
transition: { duration: c.duration }
|
|
290
292
|
}
|
|
291
293
|
},
|
|
292
294
|
initial: "initial",
|
|
293
|
-
animate:
|
|
294
|
-
exit: { opacity: 0, transition: { duration:
|
|
295
|
+
animate: w ? "whileInView" : "initial",
|
|
296
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
295
297
|
style: {
|
|
296
298
|
textAnchor: "start",
|
|
297
|
-
...
|
|
299
|
+
...d?.yAxis?.labels || {}
|
|
298
300
|
},
|
|
299
301
|
className: j("text-xs", h?.yAxis?.labels),
|
|
300
|
-
x:
|
|
302
|
+
x: u - 5,
|
|
301
303
|
dy: "0.33em",
|
|
302
|
-
dx:
|
|
304
|
+
dx: r + 3,
|
|
303
305
|
children: i.label
|
|
304
306
|
}
|
|
305
307
|
) : x.length !== 0 && x.indexOf(i.label) !== -1 ? /* @__PURE__ */ o.jsx(
|
|
@@ -308,25 +310,25 @@ function Oi(K) {
|
|
|
308
310
|
variants: {
|
|
309
311
|
initial: {
|
|
310
312
|
y: y(i.y2),
|
|
311
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
313
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
312
314
|
opacity: 0
|
|
313
315
|
},
|
|
314
316
|
whileInView: {
|
|
315
317
|
y: y(i.y2),
|
|
316
|
-
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
318
|
+
fill: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
317
319
|
opacity: 1,
|
|
318
|
-
transition: { duration:
|
|
320
|
+
transition: { duration: c.duration }
|
|
319
321
|
}
|
|
320
322
|
},
|
|
321
323
|
initial: "initial",
|
|
322
|
-
animate:
|
|
323
|
-
exit: { opacity: 0, transition: { duration:
|
|
324
|
+
animate: w ? "whileInView" : "initial",
|
|
325
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
324
326
|
style: {
|
|
325
327
|
textAnchor: "start",
|
|
326
|
-
...
|
|
328
|
+
...d?.yAxis?.labels || {}
|
|
327
329
|
},
|
|
328
330
|
className: j("text-xs", h?.yAxis?.labels),
|
|
329
|
-
x:
|
|
331
|
+
x: u - 5,
|
|
330
332
|
dy: "0.33em",
|
|
331
333
|
dx: 3,
|
|
332
334
|
children: i.label
|
|
@@ -335,29 +337,31 @@ function Oi(K) {
|
|
|
335
337
|
/* @__PURE__ */ o.jsx(
|
|
336
338
|
O.line,
|
|
337
339
|
{
|
|
338
|
-
x1: c,
|
|
339
|
-
x2: v - c,
|
|
340
340
|
variants: {
|
|
341
341
|
initial: {
|
|
342
|
+
x1: r,
|
|
343
|
+
x2: u - r,
|
|
342
344
|
y1: y(i.y1),
|
|
343
345
|
y2: y(i.y1),
|
|
344
|
-
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
346
|
+
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray
|
|
345
347
|
},
|
|
346
348
|
whileInView: {
|
|
349
|
+
x1: r,
|
|
350
|
+
x2: u - r,
|
|
347
351
|
y1: y(i.y1),
|
|
348
352
|
y2: y(i.y2),
|
|
349
|
-
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[
|
|
350
|
-
transition: { duration:
|
|
353
|
+
stroke: l.filter((t) => t.color).length === 0 ? e[0] : i.color ? e[a.indexOf(`${i.color}`)] : s.gray,
|
|
354
|
+
transition: { duration: c.duration }
|
|
351
355
|
}
|
|
352
356
|
},
|
|
353
357
|
initial: "initial",
|
|
354
|
-
animate:
|
|
355
|
-
exit: { opacity: 0, transition: { duration:
|
|
358
|
+
animate: w ? "whileInView" : "initial",
|
|
359
|
+
exit: { opacity: 0, transition: { duration: c.duration } },
|
|
356
360
|
className: h?.dataConnectors,
|
|
357
361
|
style: {
|
|
358
362
|
fill: "none",
|
|
359
363
|
strokeWidth: 1,
|
|
360
|
-
...
|
|
364
|
+
...d?.dataConnectors
|
|
361
365
|
}
|
|
362
366
|
}
|
|
363
367
|
)
|
|
@@ -369,14 +373,14 @@ function Oi(K) {
|
|
|
369
373
|
] })
|
|
370
374
|
}
|
|
371
375
|
),
|
|
372
|
-
|
|
376
|
+
v && X && U && T ? /* @__PURE__ */ o.jsx(
|
|
373
377
|
hi,
|
|
374
378
|
{
|
|
375
|
-
data:
|
|
376
|
-
body:
|
|
379
|
+
data: v,
|
|
380
|
+
body: X,
|
|
377
381
|
xPos: U,
|
|
378
382
|
yPos: T,
|
|
379
|
-
backgroundStyle:
|
|
383
|
+
backgroundStyle: d?.tooltip,
|
|
380
384
|
className: h?.tooltip
|
|
381
385
|
}
|
|
382
386
|
) : null,
|
|
@@ -399,20 +403,20 @@ function Oi(K) {
|
|
|
399
403
|
) : null
|
|
400
404
|
] });
|
|
401
405
|
}
|
|
402
|
-
function
|
|
406
|
+
function Ri(K) {
|
|
403
407
|
const {
|
|
404
408
|
data: l,
|
|
405
409
|
graphTitle: $,
|
|
406
410
|
colors: k,
|
|
407
411
|
sources: H,
|
|
408
412
|
graphDescription: e,
|
|
409
|
-
showLabels:
|
|
410
|
-
height:
|
|
413
|
+
showLabels: a = !1,
|
|
414
|
+
height: r,
|
|
411
415
|
width: m,
|
|
412
|
-
footNote:
|
|
413
|
-
colorDomain:
|
|
416
|
+
footNote: G,
|
|
417
|
+
colorDomain: R,
|
|
414
418
|
colorLegendTitle: Q,
|
|
415
|
-
radius:
|
|
419
|
+
radius: X = 5,
|
|
416
420
|
axisTitles: F = ["", ""],
|
|
417
421
|
padding: L,
|
|
418
422
|
backgroundColor: x = !1,
|
|
@@ -422,14 +426,14 @@ function Gi(K) {
|
|
|
422
426
|
bottomMargin: E = 20,
|
|
423
427
|
tooltip: Z,
|
|
424
428
|
relativeHeight: g,
|
|
425
|
-
onSeriesMouseOver:
|
|
429
|
+
onSeriesMouseOver: d,
|
|
426
430
|
showColorScale: h = !0,
|
|
427
|
-
highlightedDataPoints:
|
|
428
|
-
graphID:
|
|
431
|
+
highlightedDataPoints: c = [],
|
|
432
|
+
graphID: p,
|
|
429
433
|
minValue: B,
|
|
430
434
|
maxValue: _,
|
|
431
|
-
onSeriesMouseClick:
|
|
432
|
-
graphDownload:
|
|
435
|
+
onSeriesMouseClick: w,
|
|
436
|
+
graphDownload: v = !1,
|
|
433
437
|
dataDownload: S = !1,
|
|
434
438
|
fillContainer: M = !0,
|
|
435
439
|
language: N = "en",
|
|
@@ -438,7 +442,7 @@ function Gi(K) {
|
|
|
438
442
|
theme: T = "light",
|
|
439
443
|
ariaLabel: W,
|
|
440
444
|
resetSelectionOnDoubleClick: A = !0,
|
|
441
|
-
detailsOnClick:
|
|
445
|
+
detailsOnClick: u,
|
|
442
446
|
styles: f,
|
|
443
447
|
classNames: b,
|
|
444
448
|
animate: P = !1,
|
|
@@ -446,11 +450,11 @@ function Gi(K) {
|
|
|
446
450
|
customLayers: i = []
|
|
447
451
|
} = K, [V, t] = I(0), [ti, ei] = I(0), [si, ci] = I(void 0), Y = ii(null), oi = ii(null);
|
|
448
452
|
return yi(() => {
|
|
449
|
-
const
|
|
450
|
-
t(m || li[0].target.clientWidth || 620), ei(
|
|
453
|
+
const n = new ResizeObserver((li) => {
|
|
454
|
+
t(m || li[0].target.clientWidth || 620), ei(r || li[0].target.clientHeight || 480);
|
|
451
455
|
});
|
|
452
|
-
return Y.current && (ei(Y.current.clientHeight || 480), t(Y.current.clientWidth || 620), m ||
|
|
453
|
-
}, [m,
|
|
456
|
+
return Y.current && (ei(Y.current.clientHeight || 480), t(Y.current.clientWidth || 620), m || n.observe(Y.current)), () => n.disconnect();
|
|
457
|
+
}, [m, r]), /* @__PURE__ */ o.jsx(
|
|
454
458
|
"div",
|
|
455
459
|
{
|
|
456
460
|
className: `${T || "light"} flex ${m ? "grow-0" : "grow"} ${M ? "w-full" : "w-fit"} `,
|
|
@@ -467,7 +471,7 @@ function Gi(K) {
|
|
|
467
471
|
...f?.graphContainer || {},
|
|
468
472
|
...x && x !== !0 ? { backgroundColor: x } : {}
|
|
469
473
|
},
|
|
470
|
-
id:
|
|
474
|
+
id: p,
|
|
471
475
|
ref: oi,
|
|
472
476
|
"aria-label": W || `${$ ? `The graph shows ${$}. ` : ""}This is a slope chart showing changes in data between two category or starting and ending time. Each line represents a different row in data, with lines sloping up or down to show increase or decrease over two categories or time.${e ? ` ${e}` : ""}`,
|
|
473
477
|
children: /* @__PURE__ */ o.jsx(
|
|
@@ -476,7 +480,7 @@ function Gi(K) {
|
|
|
476
480
|
className: "flex grow",
|
|
477
481
|
style: { padding: x ? L || "1rem" : L || 0 },
|
|
478
482
|
children: /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
|
|
479
|
-
$ || e ||
|
|
483
|
+
$ || e || v || S ? /* @__PURE__ */ o.jsx(
|
|
480
484
|
wi,
|
|
481
485
|
{
|
|
482
486
|
styles: {
|
|
@@ -490,18 +494,18 @@ function Gi(K) {
|
|
|
490
494
|
graphTitle: $,
|
|
491
495
|
graphDescription: e,
|
|
492
496
|
width: m,
|
|
493
|
-
graphDownload:
|
|
494
|
-
dataDownload: S ? l.map((
|
|
497
|
+
graphDownload: v ? oi.current : void 0,
|
|
498
|
+
dataDownload: S ? l.map((n) => n.data).filter((n) => n !== void 0).length > 0 ? l.map((n) => n.data).filter((n) => n !== void 0) : l.filter((n) => n !== void 0) : null
|
|
495
499
|
}
|
|
496
500
|
) : null,
|
|
497
501
|
/* @__PURE__ */ o.jsx("div", { className: "grow flex flex-col justify-center gap-3 w-full", children: l.length === 0 ? /* @__PURE__ */ o.jsx(bi, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
498
|
-
h && l.filter((
|
|
502
|
+
h && l.filter((n) => n.color).length !== 0 ? /* @__PURE__ */ o.jsx(
|
|
499
503
|
vi,
|
|
500
504
|
{
|
|
501
505
|
width: m,
|
|
502
506
|
colorLegendTitle: Q,
|
|
503
|
-
colors: k ||
|
|
504
|
-
colorDomain:
|
|
507
|
+
colors: k || s[T].categoricalColors.colors,
|
|
508
|
+
colorDomain: R || ni(l, "color", !0),
|
|
505
509
|
setSelectedColor: ci,
|
|
506
510
|
showNAColor: U
|
|
507
511
|
}
|
|
@@ -512,35 +516,35 @@ function Gi(K) {
|
|
|
512
516
|
className: "flex flex-col grow justify-center w-full leading-0",
|
|
513
517
|
ref: Y,
|
|
514
518
|
"aria-label": "Graph area",
|
|
515
|
-
children: (m || V) && (
|
|
519
|
+
children: (m || V) && (r || ti) ? /* @__PURE__ */ o.jsx(
|
|
516
520
|
Oi,
|
|
517
521
|
{
|
|
518
522
|
data: l.filter(
|
|
519
|
-
(
|
|
523
|
+
(n) => !J(n.y1) && !J(n.y2)
|
|
520
524
|
),
|
|
521
525
|
width: m || V,
|
|
522
526
|
height: Math.max(
|
|
523
527
|
C,
|
|
524
|
-
|
|
528
|
+
r || (g ? C ? (m || V) * g > C ? (m || V) * g : C : (m || V) * g : ti)
|
|
525
529
|
),
|
|
526
|
-
colorDomain: l.filter((
|
|
527
|
-
colors: l.filter((
|
|
530
|
+
colorDomain: l.filter((n) => n.color).length === 0 ? [] : R || ni(l, "color", !0),
|
|
531
|
+
colors: l.filter((n) => n.color).length === 0 ? k ? [k] : [s.primaryColors["blue-600"]] : k || s[T].categoricalColors.colors,
|
|
528
532
|
selectedColor: si,
|
|
529
533
|
axisTitles: F,
|
|
530
|
-
showLabels:
|
|
531
|
-
radius:
|
|
534
|
+
showLabels: a,
|
|
535
|
+
radius: X,
|
|
532
536
|
leftMargin: D,
|
|
533
537
|
rightMargin: q,
|
|
534
538
|
topMargin: z,
|
|
535
539
|
bottomMargin: E,
|
|
536
540
|
tooltip: Z,
|
|
537
|
-
onSeriesMouseOver:
|
|
538
|
-
highlightedDataPoints:
|
|
541
|
+
onSeriesMouseOver: d,
|
|
542
|
+
highlightedDataPoints: c,
|
|
539
543
|
minValue: B,
|
|
540
544
|
maxValue: _,
|
|
541
|
-
onSeriesMouseClick:
|
|
545
|
+
onSeriesMouseClick: w,
|
|
542
546
|
resetSelectionOnDoubleClick: A,
|
|
543
|
-
detailsOnClick:
|
|
547
|
+
detailsOnClick: u,
|
|
544
548
|
styles: f,
|
|
545
549
|
classNames: b,
|
|
546
550
|
animate: P === !0 ? { duration: 0.5, once: !0, amount: 0.5 } : P || { duration: 0, once: !0, amount: 0 },
|
|
@@ -551,7 +555,7 @@ function Gi(K) {
|
|
|
551
555
|
}
|
|
552
556
|
)
|
|
553
557
|
] }) }),
|
|
554
|
-
H ||
|
|
558
|
+
H || G ? /* @__PURE__ */ o.jsx(
|
|
555
559
|
pi,
|
|
556
560
|
{
|
|
557
561
|
styles: { footnote: f?.footnote, source: f?.source },
|
|
@@ -560,7 +564,7 @@ function Gi(K) {
|
|
|
560
564
|
source: b?.source
|
|
561
565
|
},
|
|
562
566
|
sources: H,
|
|
563
|
-
footNote:
|
|
567
|
+
footNote: G,
|
|
564
568
|
width: m
|
|
565
569
|
}
|
|
566
570
|
) : null
|
|
@@ -573,6 +577,6 @@ function Gi(K) {
|
|
|
573
577
|
);
|
|
574
578
|
}
|
|
575
579
|
export {
|
|
576
|
-
|
|
580
|
+
Ri as SlopeChart
|
|
577
581
|
};
|
|
578
582
|
//# sourceMappingURL=SlopeChart.js.map
|