@undp/data-viz 2.1.9 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +19 -19
- package/dist/AreaChart.js.map +1 -1
- package/dist/{Axis-CRyfcLjc.js → Axis-DoOqnt6g.js} +2 -2
- package/dist/{Axis-CRyfcLjc.js.map → Axis-DoOqnt6g.js.map} +1 -1
- package/dist/{Axis-DxRV2yMi.cjs → Axis-Dtjn-EgM.cjs} +2 -2
- package/dist/{Axis-DxRV2yMi.cjs.map → Axis-Dtjn-EgM.cjs.map} +1 -1
- package/dist/{AxisTitle-sS5bLLR7.cjs → AxisTitle-DV4n0RxE.cjs} +2 -2
- package/dist/{AxisTitle-sS5bLLR7.cjs.map → AxisTitle-DV4n0RxE.cjs.map} +1 -1
- package/dist/{AxisTitle-jeI7am8o.js → AxisTitle-VFq89Olw.js} +2 -2
- package/dist/{AxisTitle-jeI7am8o.js.map → AxisTitle-VFq89Olw.js.map} +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +24 -24
- 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 +14 -14
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.js +48 -48
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.js +22 -22
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +19 -19
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.js +51 -51
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.js +4 -4
- 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 +1 -16
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +13 -31
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +2 -20
- package/dist/CsvDownloadButton.cjs.map +1 -1
- package/dist/CsvDownloadButton.js +5 -26
- package/dist/CsvDownloadButton.js.map +1 -1
- package/dist/DataCards.cjs +1 -21
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.js +18 -42
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +6 -6
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-0Ry5nXiC.js → DetailsModal-BMCTgVsk.js} +4 -4
- package/dist/{DetailsModal-0Ry5nXiC.js.map → DetailsModal-BMCTgVsk.js.map} +1 -1
- package/dist/{DetailsModal-BN0HDFlV.cjs → DetailsModal-DHttOA80.cjs} +2 -2
- package/dist/{DetailsModal-BN0HDFlV.cjs.map → DetailsModal-DHttOA80.cjs.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +22 -22
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +10 -10
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.js +78 -78
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-BbdPQa2k.js → DropdownSelect-D8rFbygC.js} +5 -33
- package/dist/{DropdownSelect-BbdPQa2k.js.map → DropdownSelect-D8rFbygC.js.map} +1 -1
- package/dist/{DropdownSelect-Doz3mCrM.cjs → DropdownSelect-NNpOs7DX.cjs} +2 -26
- package/dist/{DropdownSelect-Doz3mCrM.cjs.map → DropdownSelect-NNpOs7DX.cjs.map} +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +15 -15
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +22 -22
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/{EmptyState-gLDRXBHm.cjs → EmptyState-CGeBqbmR.cjs} +2 -2
- package/dist/{EmptyState-gLDRXBHm.cjs.map → EmptyState-CGeBqbmR.cjs.map} +1 -1
- package/dist/EmptyState-tZBErBKF.js +15 -0
- package/dist/{EmptyState-C7ZXkZWd.js.map → EmptyState-tZBErBKF.js.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.js +13 -13
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.js +8 -8
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +12 -12
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/{GraphContainer-d8A46BK2.cjs → GraphContainer-B1EDxJ0S.cjs} +2 -2
- package/dist/{GraphContainer-d8A46BK2.cjs.map → GraphContainer-B1EDxJ0S.cjs.map} +1 -1
- package/dist/{GraphContainer-CRqzdKu2.js → GraphContainer-CF6ws3pd.js} +2 -2
- package/dist/{GraphContainer-CRqzdKu2.js.map → GraphContainer-CF6ws3pd.js.map} +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +2 -2
- package/dist/GraphEl-CBZdcvb7.cjs +2 -0
- package/dist/GraphEl-CBZdcvb7.cjs.map +1 -0
- package/dist/{GraphEl-Dyu_EIQb.js → GraphEl-DKrjuQNB.js} +79 -18
- package/dist/GraphEl-DKrjuQNB.js.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +2 -2
- 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 -1
- package/dist/GriddedGraphs.js +8 -8
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -1
- package/dist/GriddedGraphsFromConfig.js +4 -4
- package/dist/GriddedGraphsFromConfig.js.map +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +14 -14
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +5 -5
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.js +48 -48
- package/dist/HybridMap.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.js +3 -3
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +18 -18
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +2 -2
- package/dist/{Modal-JW_IExO3.cjs → Modal-CaYa_TLE.cjs} +2 -2
- package/dist/{Modal-JW_IExO3.cjs.map → Modal-CaYa_TLE.cjs.map} +1 -1
- package/dist/{Modal-bMQA6bL_.js → Modal-Ch9wvKxF.js} +4 -4
- package/dist/{Modal-bMQA6bL_.js.map → Modal-Ch9wvKxF.js.map} +1 -1
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -1
- package/dist/MultiGraphDashboard.js +5 -5
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -1
- package/dist/MultiGraphDashboardFromConfig.js +4 -4
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.js +5 -5
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +4 -4
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +17 -17
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +19 -19
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +15 -15
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +5 -5
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +4 -4
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -1
- package/dist/PerformanceIntensiveScrollStory.js +6 -6
- package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.js +9 -9
- package/dist/{ReferenceLine-2XCwHXQ4.js → ReferenceLine-DgtoRgw0.js} +5 -5
- package/dist/ReferenceLine-DgtoRgw0.js.map +1 -0
- package/dist/{ReferenceLine-BH0qdf4R.cjs → ReferenceLine-M9aP3dj-.cjs} +2 -2
- package/dist/{ReferenceLine-BH0qdf4R.cjs.map → ReferenceLine-M9aP3dj-.cjs.map} +1 -1
- package/dist/{RegressionLine-BOTTNSrr.cjs → RegressionLine-Ci-Dh0w0.cjs} +2 -2
- package/dist/{RegressionLine-BOTTNSrr.cjs.map → RegressionLine-Ci-Dh0w0.cjs.map} +1 -1
- package/dist/{RegressionLine-DAcY2DjT.js → RegressionLine-D2aqeBKp.js} +6 -6
- package/dist/RegressionLine-D2aqeBKp.js.map +1 -0
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.js +2 -2
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.js +61 -67
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +23 -23
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +1 -1
- package/dist/ScrollStory.d.ts +1 -1
- package/dist/ScrollStory.js +4 -4
- package/dist/ScrollStory.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +19 -19
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -1
- package/dist/SingleGraphDashboard.js +9 -9
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -1
- package/dist/SingleGraphDashboardFromConfig.js +4 -4
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.js +5 -5
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +4 -4
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.js +63 -70
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +4 -4
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +12 -12
- package/dist/SlopeChart.js.map +1 -1
- package/dist/{Source-DYMJRrsq.cjs → Source-B5AoSlsi.cjs} +2 -2
- package/dist/{Source-DYMJRrsq.cjs.map → Source-B5AoSlsi.cjs.map} +1 -1
- package/dist/{Source-DwTHB8fn.js → Source-F8EYCYkV.js} +4 -4
- package/dist/{Source-DwTHB8fn.js.map → Source-F8EYCYkV.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +3 -3
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.js +8 -8
- package/dist/SparkLine.js.map +1 -1
- package/dist/{Spinner-DVBnY6Vg.js → Spinner--r2RrJV8.js} +2 -2
- package/dist/{Spinner-DVBnY6Vg.js.map → Spinner--r2RrJV8.js.map} +1 -1
- package/dist/{Spinner-CQZcjzwd.cjs → Spinner-jTMOLuw_.cjs} +2 -2
- package/dist/{Spinner-CQZcjzwd.cjs.map → Spinner-jTMOLuw_.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.js +10 -10
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +13 -13
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +3 -3
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
- package/dist/{Tooltip-uUdw6wJL.cjs → Tooltip-BLa2EfMs.cjs} +2 -2
- package/dist/{Tooltip-uUdw6wJL.cjs.map → Tooltip-BLa2EfMs.cjs.map} +1 -1
- package/dist/{Tooltip-Dj5eVppQ.js → Tooltip-BRnAz2Gv.js} +3 -3
- package/dist/{Tooltip-Dj5eVppQ.js.map → Tooltip-BRnAz2Gv.js.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +10 -10
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +8 -1
- package/dist/{Typography-PxtFcnJb.js → Typography-hWfh3H0J.js} +2 -2
- package/dist/{Typography-PxtFcnJb.js.map → Typography-hWfh3H0J.js.map} +1 -1
- package/dist/{Typography-DX7PlgQU.cjs → Typography-sa1UE0oF.cjs} +2 -2
- package/dist/{Typography-DX7PlgQU.cjs.map → Typography-sa1UE0oF.cjs.map} +1 -1
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +8 -8
- package/dist/WaterfallChart.cjs +2 -0
- package/dist/WaterfallChart.cjs.map +1 -0
- package/dist/WaterfallChart.d.ts +208 -0
- package/dist/WaterfallChart.js +427 -0
- package/dist/WaterfallChart.js.map +1 -0
- package/dist/{XAxesLabels-Bt5NZBmX.cjs → XAxesLabels-C6o9jJal.cjs} +2 -2
- package/dist/{XAxesLabels-Bt5NZBmX.cjs.map → XAxesLabels-C6o9jJal.cjs.map} +1 -1
- package/dist/{XAxesLabels-Dy8E1SEo.js → XAxesLabels-rhK7lRjO.js} +3 -3
- package/dist/{XAxesLabels-Dy8E1SEo.js.map → XAxesLabels-rhK7lRjO.js.map} +1 -1
- package/dist/{XTicksAndGridLines-CObVFSm4.js → XTicksAndGridLines-CVZkZkpS.js} +2 -2
- package/dist/{XTicksAndGridLines-CObVFSm4.js.map → XTicksAndGridLines-CVZkZkpS.js.map} +1 -1
- package/dist/{XTicksAndGridLines-B6CELS7q.cjs → XTicksAndGridLines-CekrPykD.cjs} +2 -2
- package/dist/{XTicksAndGridLines-B6CELS7q.cjs.map → XTicksAndGridLines-CekrPykD.cjs.map} +1 -1
- package/dist/{YAxesLabels-DesLesUP.cjs → YAxesLabels-BQ2aCazV.cjs} +2 -2
- package/dist/{YAxesLabels-DesLesUP.cjs.map → YAxesLabels-BQ2aCazV.cjs.map} +1 -1
- package/dist/{YAxesLabels-a57ZRv-0.js → YAxesLabels-QICWVsHf.js} +3 -3
- package/dist/{YAxesLabels-a57ZRv-0.js.map → YAxesLabels-QICWVsHf.js.map} +1 -1
- package/dist/{YTicksAndGridLines-Blepl7XF.js → YTicksAndGridLines-GnXnSRF2.js} +2 -2
- package/dist/{YTicksAndGridLines-Blepl7XF.js.map → YTicksAndGridLines-GnXnSRF2.js.map} +1 -1
- package/dist/{YTicksAndGridLines-4pxTRlRK.cjs → YTicksAndGridLines-UzVC5eBM.cjs} +2 -2
- package/dist/{YTicksAndGridLines-4pxTRlRK.cjs.map → YTicksAndGridLines-UzVC5eBM.cjs.map} +1 -1
- package/dist/{band-DHUZ2X7J.js → band-DYty33LD.js} +2 -2
- package/dist/{band-DHUZ2X7J.js.map → band-DYty33LD.js.map} +1 -1
- package/dist/{checkIfMultiple-CIRtG0KE.js → checkIfMultiple-D9fVkeOq.js} +7 -19
- package/dist/{checkIfMultiple-CIRtG0KE.js.map → checkIfMultiple-D9fVkeOq.js.map} +1 -1
- package/dist/checkIfMultiple-DxnGtm3t.cjs +2 -0
- package/dist/{checkIfMultiple-wg6hJLXy.cjs.map → checkIfMultiple-DxnGtm3t.cjs.map} +1 -1
- package/dist/{customArea-BUhPiPT6.js → customArea-ASDaSE4u.js} +5 -5
- package/dist/{customArea-BUhPiPT6.js.map → customArea-ASDaSE4u.js.map} +1 -1
- package/dist/{customArea-CMF5g-C3.cjs → customArea-B1LWQBmM.cjs} +2 -2
- package/dist/{customArea-CMF5g-C3.cjs.map → customArea-B1LWQBmM.cjs.map} +1 -1
- package/dist/defaultLocale-C4wbwF1n.cjs +2 -0
- package/dist/defaultLocale-C4wbwF1n.cjs.map +1 -0
- package/dist/defaultLocale-CPy_WVtp.js +172 -0
- package/dist/defaultLocale-CPy_WVtp.js.map +1 -0
- package/dist/{ensureCompleteData-DH5c52Ub.js → ensureCompleteData-CDIukSG6.js} +2 -2
- package/dist/{ensureCompleteData-DH5c52Ub.js.map → ensureCompleteData-CDIukSG6.js.map} +1 -1
- package/dist/{ensureCompleteData-pZ9QO6kB.cjs → ensureCompleteData-D9bQTiVS.cjs} +2 -2
- package/dist/{ensureCompleteData-pZ9QO6kB.cjs.map → ensureCompleteData-D9bQTiVS.cjs.map} +1 -1
- package/dist/{fetchAndParseData-BpqkBPQL.js → fetchAndParseData-BAXhgTDM.js} +12 -18
- package/dist/{fetchAndParseData-BpqkBPQL.js.map → fetchAndParseData-BAXhgTDM.js.map} +1 -1
- package/dist/{fetchAndParseData-l5HGMAEs.cjs → fetchAndParseData-QTF6tjij.cjs} +3 -8
- package/dist/{fetchAndParseData-l5HGMAEs.cjs.map → fetchAndParseData-QTF6tjij.cjs.map} +1 -1
- package/dist/fetchAndParseData.cjs +1 -1
- package/dist/fetchAndParseData.js +1 -1
- package/dist/getCentroidCoordinates-CtBGrNC8.cjs +2 -0
- package/dist/getCentroidCoordinates-CtBGrNC8.cjs.map +1 -0
- package/dist/{getCentroidCoordinates-D7r34N4w.js → getCentroidCoordinates-s0OOUjLF.js} +15 -15
- package/dist/getCentroidCoordinates-s0OOUjLF.js.map +1 -0
- package/dist/{getGraphList-Dxwo9TDb.js → getGraphList-Bpd3PVmF.js} +7 -1
- package/dist/getGraphList-Bpd3PVmF.js.map +1 -0
- package/dist/getGraphList-DQ24IzAn.cjs +2 -0
- package/dist/getGraphList-DQ24IzAn.cjs.map +1 -0
- package/dist/{getJenks-GYmdwBqm.cjs → getJenks-BzJvhy_H.cjs} +2 -2
- package/dist/{getJenks-GYmdwBqm.cjs.map → getJenks-BzJvhy_H.cjs.map} +1 -1
- package/dist/{getJenks-BbngDoBQ.js → getJenks-DTCcQSDi.js} +2 -2
- package/dist/{getJenks-BbngDoBQ.js.map → getJenks-DTCcQSDi.js.map} +1 -1
- package/dist/getSchema.cjs +1 -1
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.d.ts +3 -3
- package/dist/getSchema.js +24 -16
- package/dist/getSchema.js.map +1 -1
- package/dist/getSliderMarks-CIuSoedo.cjs +2 -0
- package/dist/{getSliderMarks-BmADcPQt.cjs.map → getSliderMarks-CIuSoedo.cjs.map} +1 -1
- package/dist/{getSliderMarks-HIDJ0_Cd.js → getSliderMarks-Cvg8zHBU.js} +4 -9
- package/dist/getSliderMarks-Cvg8zHBU.js.map +1 -0
- package/dist/{imageDownload-NYXbvKob.cjs → imageDownload-61q6jyJW.cjs} +3 -3
- package/dist/imageDownload-61q6jyJW.cjs.map +1 -0
- package/dist/{imageDownload-BU4qnxJP.js → imageDownload-Diofs_vY.js} +14 -15
- package/dist/imageDownload-Diofs_vY.js.map +1 -0
- package/dist/{index-D491FEn1.js → index-BQYOuXdl.js} +15 -15
- package/dist/{index-D491FEn1.js.map → index-BQYOuXdl.js.map} +1 -1
- package/dist/{index-DxXnJ8Ti.cjs → index-C5K--w8d.cjs} +2 -2
- package/dist/index-C5K--w8d.cjs.map +1 -0
- package/dist/{index-DRXx7m-C.cjs → index-C6er0ety.cjs} +2 -2
- package/dist/{index-DRXx7m-C.cjs.map → index-C6er0ety.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-CTPQjnHt.cjs → index-CHPV5EwG-6v2a2njQ.cjs} +5 -69
- package/dist/{index-CHPV5EwG-CTPQjnHt.cjs.map → index-CHPV5EwG-6v2a2njQ.cjs.map} +1 -1
- package/dist/{index-CHPV5EwG-Curnpaqc.js → index-CHPV5EwG-DecW7_qr.js} +5 -77
- package/dist/{index-CHPV5EwG-Curnpaqc.js.map → index-CHPV5EwG-DecW7_qr.js.map} +1 -1
- package/dist/{index-SKgJALZg.js → index-CSiFiXPj.js} +3 -3
- package/dist/{index-SKgJALZg.js.map → index-CSiFiXPj.js.map} +1 -1
- package/dist/index-CoobIWNj.cjs +10 -0
- package/dist/index-CoobIWNj.cjs.map +1 -0
- package/dist/index-CtMBjvtq.js +148 -0
- package/dist/index-CtMBjvtq.js.map +1 -0
- package/dist/{index-Cw8sCyo_-BrHiWiRF.cjs → index-Cw8sCyo_-CEcCMKUi.cjs} +2 -2
- package/dist/{index-Cw8sCyo_-BrHiWiRF.cjs.map → index-Cw8sCyo_-CEcCMKUi.cjs.map} +1 -1
- package/dist/{index-Cw8sCyo_-B2hEKjzG.js → index-Cw8sCyo_-n4AacHGk.js} +6 -4
- package/dist/{index-Cw8sCyo_-B2hEKjzG.js.map → index-Cw8sCyo_-n4AacHGk.js.map} +1 -1
- package/dist/{index-R1gTfap5.js → index-D5ihtaJJ.js} +12 -12
- package/dist/{index-R1gTfap5.js.map → index-D5ihtaJJ.js.map} +1 -1
- package/dist/{index-B_sAFsEV.cjs → index-D69M6klB.cjs} +2 -2
- package/dist/{index-B_sAFsEV.cjs.map → index-D69M6klB.cjs.map} +1 -1
- package/dist/{index-GEsywGxz.js → index-DCsFBfJ_.js} +160 -104
- package/dist/index-DCsFBfJ_.js.map +1 -0
- package/dist/{index-WML2dCZ0.cjs → index-Dgjq6aZ2.cjs} +2 -2
- package/dist/{index-WML2dCZ0.cjs.map → index-Dgjq6aZ2.cjs.map} +1 -1
- package/dist/{index-Dzc_aaI9-BmkfPMyc.cjs → index-Dzc_aaI9-C3DbPpy3.cjs} +2 -2
- package/dist/{index-Dzc_aaI9-BmkfPMyc.cjs.map → index-Dzc_aaI9-C3DbPpy3.cjs.map} +1 -1
- package/dist/{index-Dzc_aaI9-Bb7gobH_.js → index-Dzc_aaI9-CG2Ar7l1.js} +4 -4
- package/dist/{index-Dzc_aaI9-Bb7gobH_.js.map → index-Dzc_aaI9-CG2Ar7l1.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +208 -93
- package/dist/index.js +129 -127
- package/dist/index.js.map +1 -1
- package/dist/{linear-BqltdMeF.js → linear-CalFSAaO.js} +2 -2
- package/dist/{linear-BqltdMeF.js.map → linear-CalFSAaO.js.map} +1 -1
- package/dist/{linear-BwPAspcq.cjs → linear-CgUCbw9F.cjs} +2 -2
- package/dist/{linear-BwPAspcq.cjs.map → linear-CgUCbw9F.cjs.map} +1 -1
- package/dist/{ordinal-BJ6O_LC5.js → ordinal-CHaxGJ_l.js} +2 -2
- package/dist/{ordinal-BJ6O_LC5.js.map → ordinal-CHaxGJ_l.js.map} +1 -1
- package/dist/{parse-DlCRUFh_.js → parse-Dv4of-PN.js} +2 -67
- package/dist/{parse-DlCRUFh_.js.map → parse-Dv4of-PN.js.map} +1 -1
- package/dist/parse-xYI9yrvL.cjs +2 -0
- package/dist/{parse-hMnG_lRV.cjs.map → parse-xYI9yrvL.cjs.map} +1 -1
- package/dist/{pow-DgrUorRi.cjs → pow-BnyPO-NX.cjs} +2 -2
- package/dist/{pow-DgrUorRi.cjs.map → pow-BnyPO-NX.cjs.map} +1 -1
- package/dist/{pow-CM2aze4M.js → pow-CaIrlM4J.js} +2 -2
- package/dist/{pow-CM2aze4M.js.map → pow-CaIrlM4J.js.map} +1 -1
- package/dist/proxy-C4-uo6nS.cjs +2 -0
- package/dist/proxy-C4-uo6nS.cjs.map +1 -0
- package/dist/{proxy-BxkFHwUw.js → proxy-DRuSUlPL.js} +2828 -2717
- package/dist/proxy-DRuSUlPL.js.map +1 -0
- package/dist/{string2HTML-DhG75NqA.js → string2HTML-DUYZT1L9.js} +17 -17
- package/dist/{string2HTML-DhG75NqA.js.map → string2HTML-DUYZT1L9.js.map} +1 -1
- package/dist/{string2HTML-CPGr_I5E.cjs → string2HTML-xx9MzTtY.cjs} +3 -3
- package/dist/{string2HTML-CPGr_I5E.cjs.map → string2HTML-xx9MzTtY.cjs.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{time-BUL-dwnK.js → time-CAtex-RV.js} +2 -2
- package/dist/{time-BUL-dwnK.js.map → time-CAtex-RV.js.map} +1 -1
- package/dist/{time-CZd5YLSP.cjs → time-CkcKbhwe.cjs} +2 -2
- package/dist/{time-CZd5YLSP.cjs.map → time-CkcKbhwe.cjs.map} +1 -1
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.d.ts +1 -1
- package/dist/transformData.js +3 -3
- package/dist/transformDataForAggregation-BFdha9Dx.cjs +2 -0
- package/dist/transformDataForAggregation-BFdha9Dx.cjs.map +1 -0
- package/dist/{transformDataForAggregation-j34UL73s.js → transformDataForAggregation-wdPf8bNt.js} +26 -11
- package/dist/transformDataForAggregation-wdPf8bNt.js.map +1 -0
- package/dist/{transformDataForGraphFromFile-CuXxR8uA.cjs → transformDataForGraphFromFile-DOhp1qrp.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-CuXxR8uA.cjs.map → transformDataForGraphFromFile-DOhp1qrp.cjs.map} +1 -1
- package/dist/{transformDataForGraphFromFile-DyP-83Nh.js → transformDataForGraphFromFile-dt9sHTVy.js} +3 -3
- package/dist/{transformDataForGraphFromFile-DyP-83Nh.js.map → transformDataForGraphFromFile-dt9sHTVy.js.map} +1 -1
- package/dist/{use-in-view-QcfiW0w3.cjs → use-in-view-C3o_ntMv.cjs} +2 -2
- package/dist/use-in-view-C3o_ntMv.cjs.map +1 -0
- package/dist/{use-in-view-Cxa7y1TH.js → use-in-view-Dl5L8LtP.js} +2 -2
- package/dist/use-in-view-Dl5L8LtP.js.map +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +4 -4
- package/dist/validateSchema.cjs +1 -1
- package/dist/validateSchema.d.ts +1 -1
- package/dist/validateSchema.js +1 -1
- package/dist/{x-BBpi7a_7-WVdj1j6r.js → x-BBpi7a_7-BsvWCzYM.js} +1 -31
- package/dist/{x-BBpi7a_7-WVdj1j6r.js.map → x-BBpi7a_7-BsvWCzYM.js.map} +1 -1
- package/dist/x-BBpi7a_7-DXYIEFwN.cjs +2 -0
- package/dist/{x-BBpi7a_7-mTo40uId.cjs.map → x-BBpi7a_7-DXYIEFwN.cjs.map} +1 -1
- package/dist/{zoom-C9MFjAaV.js → zoom-5AkJSuWO.js} +3 -3
- package/dist/zoom-5AkJSuWO.js.map +1 -0
- package/dist/{zoom-DPw8bba-.cjs → zoom-ChcvXFIz.cjs} +2 -2
- package/dist/zoom-ChcvXFIz.cjs.map +1 -0
- package/package.json +21 -1
- package/readme.md +33 -22
- package/dist/EmptyState-C7ZXkZWd.js +0 -15
- package/dist/GraphEl-BixTEyKW.cjs +0 -2
- package/dist/GraphEl-BixTEyKW.cjs.map +0 -1
- package/dist/GraphEl-Dyu_EIQb.js.map +0 -1
- package/dist/ReferenceLine-2XCwHXQ4.js.map +0 -1
- package/dist/RegressionLine-DAcY2DjT.js.map +0 -1
- package/dist/checkIfMultiple-wg6hJLXy.cjs +0 -12
- package/dist/defaultLocale-BEa-49Qz.js +0 -172
- package/dist/defaultLocale-BEa-49Qz.js.map +0 -1
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -2
- package/dist/defaultLocale-DIVzfLaQ.cjs.map +0 -1
- package/dist/getCentroidCoordinates-D7r34N4w.js.map +0 -1
- package/dist/getCentroidCoordinates-Dng1HVjO.cjs +0 -2
- package/dist/getCentroidCoordinates-Dng1HVjO.cjs.map +0 -1
- package/dist/getGraphList-CA17dvFB.cjs +0 -2
- package/dist/getGraphList-CA17dvFB.cjs.map +0 -1
- package/dist/getGraphList-Dxwo9TDb.js.map +0 -1
- package/dist/getSliderMarks-BmADcPQt.cjs +0 -6
- package/dist/getSliderMarks-HIDJ0_Cd.js.map +0 -1
- package/dist/imageDownload-BU4qnxJP.js.map +0 -1
- package/dist/imageDownload-NYXbvKob.cjs.map +0 -1
- package/dist/index-BqfRwk1n.js +0 -146
- package/dist/index-BqfRwk1n.js.map +0 -1
- package/dist/index-DG2bgAva.cjs +0 -10
- package/dist/index-DG2bgAva.cjs.map +0 -1
- package/dist/index-DxXnJ8Ti.cjs.map +0 -1
- package/dist/index-GEsywGxz.js.map +0 -1
- package/dist/parse-hMnG_lRV.cjs +0 -2
- package/dist/proxy-BxkFHwUw.js.map +0 -1
- package/dist/proxy-BxvUI_9l.cjs +0 -2
- package/dist/proxy-BxvUI_9l.cjs.map +0 -1
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs +0 -2
- package/dist/transformDataForAggregation-CYoB5Xsk.cjs.map +0 -1
- package/dist/transformDataForAggregation-j34UL73s.js.map +0 -1
- package/dist/use-in-view-Cxa7y1TH.js.map +0 -1
- package/dist/use-in-view-QcfiW0w3.cjs.map +0 -1
- package/dist/x-BBpi7a_7-mTo40uId.cjs +0 -27
- package/dist/zoom-C9MFjAaV.js.map +0 -1
- package/dist/zoom-DPw8bba-.cjs.map +0 -1
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
declare interface AnimateDataType {
|
|
4
|
+
duration: number;
|
|
5
|
+
once: boolean;
|
|
6
|
+
amount: 'some' | 'all' | number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare interface AxesClassNameObject {
|
|
10
|
+
gridLines?: string;
|
|
11
|
+
labels?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
axis?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare interface AxesStyleObject {
|
|
17
|
+
gridLines?: React.CSSProperties;
|
|
18
|
+
labels?: React.CSSProperties;
|
|
19
|
+
title?: React.CSSProperties;
|
|
20
|
+
axis?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare interface BarGraphDataType {
|
|
24
|
+
label: string | number;
|
|
25
|
+
date?: string | number;
|
|
26
|
+
size?: number | null;
|
|
27
|
+
color?: string | null;
|
|
28
|
+
data?: object;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare interface ClassNameObject {
|
|
32
|
+
title?: string;
|
|
33
|
+
footnote?: string;
|
|
34
|
+
source?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
tooltip?: string;
|
|
37
|
+
xAxis?: AxesClassNameObject;
|
|
38
|
+
yAxis?: AxesClassNameObject;
|
|
39
|
+
legend?: string;
|
|
40
|
+
graphContainer?: string;
|
|
41
|
+
graphObjectValues?: string;
|
|
42
|
+
dataConnectors?: string;
|
|
43
|
+
mouseOverLine?: string;
|
|
44
|
+
regLine?: string;
|
|
45
|
+
dataCards?: string;
|
|
46
|
+
colorLegend?: string;
|
|
47
|
+
modal?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare interface CustomLayerDataType {
|
|
51
|
+
position: 'before' | 'after';
|
|
52
|
+
layer: React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | 'jp' | 'ka' | 'km' | 'ko' | 'my' | 'ne' | 'zh' | 'custom';
|
|
56
|
+
|
|
57
|
+
declare interface Props {
|
|
58
|
+
/** Array of data objects */
|
|
59
|
+
data: BarGraphDataType[];
|
|
60
|
+
/** Title of the graph */
|
|
61
|
+
graphTitle?: string | React.ReactNode;
|
|
62
|
+
/** Description of the graph */
|
|
63
|
+
graphDescription?: string | React.ReactNode;
|
|
64
|
+
/** Footnote for the graph */
|
|
65
|
+
footNote?: string | React.ReactNode;
|
|
66
|
+
/** Source data for the graph */
|
|
67
|
+
sources?: SourcesDataType[];
|
|
68
|
+
/** Accessibility label */
|
|
69
|
+
ariaLabel?: string;
|
|
70
|
+
/** Color or array of colors for bars */
|
|
71
|
+
colors?: string | string[];
|
|
72
|
+
/** Domain of colors for the graph */
|
|
73
|
+
colorDomain?: string[];
|
|
74
|
+
/** Title for the color legend */
|
|
75
|
+
colorLegendTitle?: string;
|
|
76
|
+
/** Background color of the graph */
|
|
77
|
+
backgroundColor?: string | boolean;
|
|
78
|
+
/** Custom styles for the graph. Each object should be a valid React CSS style object. */
|
|
79
|
+
styles?: StyleObject;
|
|
80
|
+
/** Custom class names */
|
|
81
|
+
classNames?: ClassNameObject;
|
|
82
|
+
/** Width of the graph */
|
|
83
|
+
width?: number;
|
|
84
|
+
/** Height of the graph */
|
|
85
|
+
height?: number;
|
|
86
|
+
/** Minimum height of the graph */
|
|
87
|
+
minHeight?: number;
|
|
88
|
+
/** Relative height scaling factor. This overwrites the height props */
|
|
89
|
+
relativeHeight?: number;
|
|
90
|
+
/** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
|
|
91
|
+
padding?: string;
|
|
92
|
+
/** Left margin of the graph */
|
|
93
|
+
leftMargin?: number;
|
|
94
|
+
/** Right margin of the graph */
|
|
95
|
+
rightMargin?: number;
|
|
96
|
+
/** Top margin of the graph */
|
|
97
|
+
topMargin?: number;
|
|
98
|
+
/** Bottom margin of the graph */
|
|
99
|
+
bottomMargin?: number;
|
|
100
|
+
/** Padding between bars */
|
|
101
|
+
barPadding?: number;
|
|
102
|
+
/** Maximum thickness of bars */
|
|
103
|
+
maxBarThickness?: number;
|
|
104
|
+
/** Minimum thickness of bars */
|
|
105
|
+
minBarThickness?: number;
|
|
106
|
+
/** Maximum number of bars shown in the graph */
|
|
107
|
+
maxNumberOfBars?: number;
|
|
108
|
+
/** Prefix for values */
|
|
109
|
+
prefix?: string;
|
|
110
|
+
/** Suffix for values */
|
|
111
|
+
suffix?: string;
|
|
112
|
+
/** Maximum value for the chart */
|
|
113
|
+
maxValue?: number;
|
|
114
|
+
/** Minimum value for the chart */
|
|
115
|
+
minValue?: number;
|
|
116
|
+
/** Truncate labels by specified length */
|
|
117
|
+
truncateBy?: number;
|
|
118
|
+
/** Reference values for comparison */
|
|
119
|
+
refValues?: ReferenceDataType[];
|
|
120
|
+
/** Number of ticks on the axis */
|
|
121
|
+
noOfTicks?: number;
|
|
122
|
+
/** Toggle visibility of labels */
|
|
123
|
+
showLabels?: boolean;
|
|
124
|
+
/** Toggle visibility of values */
|
|
125
|
+
showValues?: boolean;
|
|
126
|
+
/** Custom order for labels */
|
|
127
|
+
labelOrder?: string[];
|
|
128
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
129
|
+
naLabel?: string;
|
|
130
|
+
/** Toggle visibility of axis ticks */
|
|
131
|
+
showTicks?: boolean;
|
|
132
|
+
/** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */
|
|
133
|
+
showColorScale?: boolean;
|
|
134
|
+
/** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */
|
|
135
|
+
showNAColor?: boolean;
|
|
136
|
+
/** Data points to highlight. Use the label value from data to highlight the data point */
|
|
137
|
+
highlightedDataPoints?: (string | number)[];
|
|
138
|
+
/** Defines the opacity of the non-highlighted data */
|
|
139
|
+
dimmedOpacity?: number;
|
|
140
|
+
/** Title for the bar axis */
|
|
141
|
+
barAxisTitle?: string;
|
|
142
|
+
/** Toggles if data point which are undefined or has value null are filtered out. */
|
|
143
|
+
filterNA?: boolean;
|
|
144
|
+
/** Toggles if the graph animates in when loaded. */
|
|
145
|
+
animate?: boolean | AnimateDataType;
|
|
146
|
+
/** Specifies the number of decimal places to display in the value. */
|
|
147
|
+
precision?: number;
|
|
148
|
+
/** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
|
|
149
|
+
customLayers?: CustomLayerDataType[];
|
|
150
|
+
/** Enable graph download option as png */
|
|
151
|
+
graphDownload?: boolean;
|
|
152
|
+
/** Enable data download option as a csv */
|
|
153
|
+
dataDownload?: boolean;
|
|
154
|
+
/** Tooltip content. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */
|
|
155
|
+
tooltip?: string | ((_d: any) => React.ReactNode);
|
|
156
|
+
/** Details displayed on the modal when user clicks of a data point. If the type is string then this uses the [handlebar](../?path=/docs/misc-handlebars-templates-and-custom-helpers--docs) template to display the data */
|
|
157
|
+
detailsOnClick?: string | ((_d: any) => React.ReactNode);
|
|
158
|
+
/** Callback for mouse over event */
|
|
159
|
+
onSeriesMouseOver?: (_d: any) => void;
|
|
160
|
+
/** Callback for mouse click event */
|
|
161
|
+
onSeriesMouseClick?: (_d: any) => void;
|
|
162
|
+
/** Language setting */
|
|
163
|
+
language?: Languages;
|
|
164
|
+
/** Color theme */
|
|
165
|
+
theme?: 'light' | 'dark';
|
|
166
|
+
/** Unique ID for the graph */
|
|
167
|
+
graphID?: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
declare interface ReferenceDataType {
|
|
171
|
+
value: number | null;
|
|
172
|
+
text: string;
|
|
173
|
+
color?: string;
|
|
174
|
+
styles?: {
|
|
175
|
+
line?: React.CSSProperties;
|
|
176
|
+
text?: React.CSSProperties;
|
|
177
|
+
};
|
|
178
|
+
classNames?: {
|
|
179
|
+
line?: string;
|
|
180
|
+
text?: string;
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare interface SourcesDataType {
|
|
185
|
+
source: string;
|
|
186
|
+
link?: string;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
declare interface StyleObject {
|
|
190
|
+
title?: React.CSSProperties;
|
|
191
|
+
footnote?: React.CSSProperties;
|
|
192
|
+
source?: React.CSSProperties;
|
|
193
|
+
description?: React.CSSProperties;
|
|
194
|
+
graphContainer?: React.CSSProperties;
|
|
195
|
+
tooltip?: React.CSSProperties;
|
|
196
|
+
xAxis?: AxesStyleObject;
|
|
197
|
+
yAxis?: AxesStyleObject;
|
|
198
|
+
graphObjectValues?: React.CSSProperties;
|
|
199
|
+
dataConnectors?: React.CSSProperties;
|
|
200
|
+
mouseOverLine?: React.CSSProperties;
|
|
201
|
+
regLine?: React.CSSProperties;
|
|
202
|
+
dataCards?: React.CSSProperties;
|
|
203
|
+
modal?: React.CSSProperties;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare function WaterfallChart(props: Props): JSX.Element;
|
|
207
|
+
|
|
208
|
+
export { }
|
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { c as ne, j as n, m as se } from "./index-CHPV5EwG-DecW7_qr.js";
|
|
2
|
+
import { useRef as ee, useState as vt, useEffect as re } from "react";
|
|
3
|
+
import { i as ae } from "./index-Bwrro8-q.js";
|
|
4
|
+
import { n as ie } from "./numberFormattingFunction-14YCbkN2.js";
|
|
5
|
+
import { T as le } from "./Tooltip-BRnAz2Gv.js";
|
|
6
|
+
import { c as Ht } from "./checkIfNullOrUndefined-DmfiKkNw.js";
|
|
7
|
+
import { Colors as bt } from "./Colors.js";
|
|
8
|
+
import { A as ce } from "./AxisTitle-VFq89Olw.js";
|
|
9
|
+
import { A as me } from "./Axis-DoOqnt6g.js";
|
|
10
|
+
import { a as ue } from "./ReferenceLine-DgtoRgw0.js";
|
|
11
|
+
import { Y as fe } from "./YTicksAndGridLines-GnXnSRF2.js";
|
|
12
|
+
import { X as de } from "./XAxesLabels-rhK7lRjO.js";
|
|
13
|
+
import { D as he } from "./DetailsModal-BMCTgVsk.js";
|
|
14
|
+
import { g as Gt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
|
|
15
|
+
import { a as pe } from "./linear-CalFSAaO.js";
|
|
16
|
+
import { b as ge } from "./band-DYty33LD.js";
|
|
17
|
+
import { m as te } from "./proxy-DRuSUlPL.js";
|
|
18
|
+
import { u as xe } from "./use-in-view-Dl5L8LtP.js";
|
|
19
|
+
import { A as ve } from "./index-CtMBjvtq.js";
|
|
20
|
+
import { ColorLegendWithMouseOver as be } from "./ColorLegendWithMouseOver.js";
|
|
21
|
+
import { E as ye } from "./EmptyState-tZBErBKF.js";
|
|
22
|
+
import { a as we, G as Me } from "./GraphContainer-CF6ws3pd.js";
|
|
23
|
+
import { GraphFooter as Oe } from "./GraphFooter.js";
|
|
24
|
+
import { GraphHeader as Ae } from "./GraphHeader.js";
|
|
25
|
+
import { u as oe } from "./uniqBy-BHy4I8PK.js";
|
|
26
|
+
function Ce(i) {
|
|
27
|
+
let t = 0, o = 0, O = 0;
|
|
28
|
+
for (const d of i)
|
|
29
|
+
t += d || 0, t > o && (o = t), t < O && (O = t);
|
|
30
|
+
return {
|
|
31
|
+
max: o,
|
|
32
|
+
min: O
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function $e(i) {
|
|
36
|
+
const t = ne.c(46), {
|
|
37
|
+
leftMargin: o,
|
|
38
|
+
rightMargin: O,
|
|
39
|
+
topMargin: d,
|
|
40
|
+
bottomMargin: Yt,
|
|
41
|
+
data: h,
|
|
42
|
+
width: yt,
|
|
43
|
+
height: W,
|
|
44
|
+
barColor: p,
|
|
45
|
+
suffix: wt,
|
|
46
|
+
prefix: Mt,
|
|
47
|
+
barPadding: Qt,
|
|
48
|
+
showLabels: Rt,
|
|
49
|
+
showValues: u,
|
|
50
|
+
showTicks: Ot,
|
|
51
|
+
colorDomain: g,
|
|
52
|
+
truncateBy: At,
|
|
53
|
+
tooltip: V,
|
|
54
|
+
onSeriesMouseOver: Ct,
|
|
55
|
+
refValues: Xt,
|
|
56
|
+
selectedColor: G,
|
|
57
|
+
maxValue: $t,
|
|
58
|
+
minValue: jt,
|
|
59
|
+
highlightedDataPoints: H,
|
|
60
|
+
onSeriesMouseClick: Dt,
|
|
61
|
+
labelOrder: b,
|
|
62
|
+
maxBarThickness: kt,
|
|
63
|
+
minBarThickness: Lt,
|
|
64
|
+
detailsOnClick: I,
|
|
65
|
+
barAxisTitle: ot,
|
|
66
|
+
noOfTicks: Ft,
|
|
67
|
+
styles: f,
|
|
68
|
+
classNames: l,
|
|
69
|
+
dimmedOpacity: j,
|
|
70
|
+
animate: c,
|
|
71
|
+
precision: Nt,
|
|
72
|
+
customLayers: D,
|
|
73
|
+
naLabel: qt
|
|
74
|
+
} = i, k = o === void 0 ? 20 : o, Tt = O === void 0 ? 20 : O, Vt = d === void 0 ? 20 : d, nt = Yt === void 0 ? 25 : Yt, st = ee(null);
|
|
75
|
+
let Y;
|
|
76
|
+
t[0] !== c.amount || t[1] !== c.once ? (Y = {
|
|
77
|
+
once: c.once,
|
|
78
|
+
amount: c.amount
|
|
79
|
+
}, t[0] = c.amount, t[1] = c.once, t[2] = Y) : Y = t[2];
|
|
80
|
+
const S = xe(st, Y), rt = ot ? k + 30 : k;
|
|
81
|
+
let R;
|
|
82
|
+
t[3] !== nt || t[4] !== Tt || t[5] !== rt || t[6] !== Vt ? (R = {
|
|
83
|
+
top: Vt,
|
|
84
|
+
bottom: nt,
|
|
85
|
+
left: rt,
|
|
86
|
+
right: Tt
|
|
87
|
+
}, t[3] = nt, t[4] = Tt, t[5] = rt, t[6] = Vt, t[7] = R) : R = t[7];
|
|
88
|
+
const x = R, {
|
|
89
|
+
max: a,
|
|
90
|
+
min: r
|
|
91
|
+
} = Ce(h.map(Ee)), Ut = Ht($t) ? a : $t, y = Ht(jt) ? r : jt, [at, It] = vt(void 0), [L, X] = vt(void 0), [F, lt] = vt(void 0), [q, ct] = vt(void 0), N = yt - x.left - x.right, St = W - x.top - x.bottom;
|
|
92
|
+
let z;
|
|
93
|
+
if (t[8] !== h || t[9] !== b) {
|
|
94
|
+
const e = /* @__PURE__ */ new Set(), T = h.map(($, it) => {
|
|
95
|
+
const E = b ? `${$.label}` : `${it}`;
|
|
96
|
+
return e.add(E), {
|
|
97
|
+
...$,
|
|
98
|
+
id: E
|
|
99
|
+
};
|
|
100
|
+
}), C = b ? b.filter(($) => !e.has($)) : [];
|
|
101
|
+
z = [...T, ...C.map(Pe)], t[8] = h, t[9] = b, t[10] = z;
|
|
102
|
+
} else
|
|
103
|
+
z = t[10];
|
|
104
|
+
const U = z;
|
|
105
|
+
let J;
|
|
106
|
+
t[11] !== U || t[12] !== b ? (J = b ?? U.map(Be), t[11] = U, t[12] = b, t[13] = J) : J = t[13];
|
|
107
|
+
const mt = J, s = pe().domain([y, Ut]).range([St, 0]).nice(), m = ge().domain(mt).range([0, Lt ? Math.max(N, Lt * mt.length) : kt ? Math.min(N, kt * mt.length) : N]).paddingInner(Qt), ut = s.ticks(Ft);
|
|
108
|
+
let w = 0;
|
|
109
|
+
const Jt = U.map((e) => {
|
|
110
|
+
const T = w;
|
|
111
|
+
return w = w + (e.size || 0), {
|
|
112
|
+
...e,
|
|
113
|
+
start: T,
|
|
114
|
+
end: w
|
|
115
|
+
};
|
|
116
|
+
}), ft = l?.xAxis?.axis, v = l?.yAxis?.labels;
|
|
117
|
+
let K;
|
|
118
|
+
t[14] !== v || t[15] !== ft ? (K = {
|
|
119
|
+
axis: ft,
|
|
120
|
+
label: v
|
|
121
|
+
}, t[14] = v, t[15] = ft, t[16] = K) : K = t[16];
|
|
122
|
+
const A = f?.xAxis?.axis, Q = f?.yAxis?.labels;
|
|
123
|
+
let Z;
|
|
124
|
+
t[17] !== A || t[18] !== Q ? (Z = {
|
|
125
|
+
axis: A,
|
|
126
|
+
label: Q
|
|
127
|
+
}, t[17] = A, t[18] = Q, t[19] = Z) : Z = t[19];
|
|
128
|
+
const dt = 0 - k - 15, _ = St / 2, ht = f?.yAxis?.title, pt = l?.yAxis?.title;
|
|
129
|
+
let B;
|
|
130
|
+
t[20] !== ot || t[21] !== dt || t[22] !== _ || t[23] !== ht || t[24] !== pt ? (B = /* @__PURE__ */ n.jsx(ce, { x: dt, y: _, style: ht, className: pt, text: ot, rotate90: !0 }), t[20] = ot, t[21] = dt, t[22] = _, t[23] = ht, t[24] = pt, t[25] = B) : B = t[25];
|
|
131
|
+
let zt;
|
|
132
|
+
t[26] !== D ? (zt = D.filter(Ie).map(Ve), t[26] = D, t[27] = zt) : zt = t[27];
|
|
133
|
+
const tt = ve, Kt = Jt.map((e, T) => Ht(m(e.id)) ? null : /* @__PURE__ */ n.jsxs(te.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: S ? "whileInView" : "initial", variants: {
|
|
134
|
+
initial: {
|
|
135
|
+
opacity: G ? e.color && p[g.indexOf(e.color)] === G ? 1 : j : H.length !== 0 ? H.indexOf(e.label) !== -1 ? 0.85 : j : 0.85
|
|
136
|
+
},
|
|
137
|
+
whileInView: {
|
|
138
|
+
opacity: G ? e.color && p[g.indexOf(e.color)] === G ? 1 : j : H.length !== 0 ? H.indexOf(e.label) !== -1 ? 0.85 : j : 0.85,
|
|
139
|
+
transition: {
|
|
140
|
+
duration: c.duration
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}, exit: {
|
|
144
|
+
opacity: 0,
|
|
145
|
+
transition: {
|
|
146
|
+
duration: c.duration
|
|
147
|
+
}
|
|
148
|
+
}, onMouseEnter: (C) => {
|
|
149
|
+
It(e), ct(C.clientY), lt(C.clientX), Ct?.(e);
|
|
150
|
+
}, onClick: () => {
|
|
151
|
+
(Dt || I) && (ae(L, e) ? (X(void 0), Dt?.(void 0)) : (X(e), Dt?.(e)));
|
|
152
|
+
}, onMouseMove: (C) => {
|
|
153
|
+
It(e), ct(C.clientY), lt(C.clientX);
|
|
154
|
+
}, onMouseLeave: () => {
|
|
155
|
+
It(void 0), lt(void 0), ct(void 0), Ct?.(void 0);
|
|
156
|
+
}, children: [
|
|
157
|
+
e.size ? /* @__PURE__ */ n.jsx(te.rect, { width: m.bandwidth(), initial: "initial", animate: S ? "whileInView" : "initial", variants: {
|
|
158
|
+
initial: {
|
|
159
|
+
height: 0,
|
|
160
|
+
x: m(`${e.id}`),
|
|
161
|
+
y: s(e.start),
|
|
162
|
+
fill: h.filter(Te).length === 0 ? p[0] : e.color ? p[g.indexOf(e.color)] : bt.gray
|
|
163
|
+
},
|
|
164
|
+
whileInView: {
|
|
165
|
+
height: Math.abs(s(e.start) - s(e.end)),
|
|
166
|
+
y: s(Math.max(e.start, e.end)),
|
|
167
|
+
x: m(`${e.id}`),
|
|
168
|
+
fill: h.filter(Ne).length === 0 ? p[0] : e.color ? p[g.indexOf(e.color)] : bt.gray,
|
|
169
|
+
transition: {
|
|
170
|
+
duration: c.duration
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}, exit: {
|
|
174
|
+
height: 0,
|
|
175
|
+
y: s(e.start),
|
|
176
|
+
transition: {
|
|
177
|
+
duration: c.duration
|
|
178
|
+
}
|
|
179
|
+
} }) : null,
|
|
180
|
+
Rt ? /* @__PURE__ */ n.jsx(de, { value: `${e.label}`.length < At ? `${e.label}` : `${`${e.label}`.substring(0, At)}...`, y: s(0) + 5, x: m(`${e.id}`), width: m.bandwidth(), height: x.bottom, style: f?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: c, isInView: S }) : null,
|
|
181
|
+
u && Math.abs(s(e.start) - s(e.end)) > 16 ? /* @__PURE__ */ n.jsx(te.text, { style: {
|
|
182
|
+
textAnchor: "middle",
|
|
183
|
+
...f?.graphObjectValues || {}
|
|
184
|
+
}, className: se("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
|
|
185
|
+
initial: {
|
|
186
|
+
x: m(`${e.id}`) + m.bandwidth() / 2,
|
|
187
|
+
y: (s(e.start) + s(e.end)) / 2,
|
|
188
|
+
opacity: 0,
|
|
189
|
+
fill: h.filter(Le).length === 0 ? Gt(p[0]) : e.color ? Gt(p[g.indexOf(e.color)]) : Gt(bt.gray)
|
|
190
|
+
},
|
|
191
|
+
whileInView: {
|
|
192
|
+
x: m(`${e.id}`) + m.bandwidth() / 2,
|
|
193
|
+
y: (s(e.start) + s(e.end)) / 2,
|
|
194
|
+
fill: h.filter(ke).length === 0 ? Gt(p[0]) : e.color ? Gt(p[g.indexOf(e.color)]) : Gt(bt.gray),
|
|
195
|
+
opacity: 1,
|
|
196
|
+
transition: {
|
|
197
|
+
duration: c.duration
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}, initial: "initial", animate: S ? "whileInView" : "initial", exit: {
|
|
201
|
+
opacity: 0,
|
|
202
|
+
transition: {
|
|
203
|
+
duration: c.duration
|
|
204
|
+
}
|
|
205
|
+
}, children: ie(e.size ? Math.abs(e.size) : e.size, qt, Nt, Mt, wt) }) : null
|
|
206
|
+
] }, e.label)), gt = Xt ? /* @__PURE__ */ n.jsx(n.Fragment, { children: Xt.map((e, T) => /* @__PURE__ */ n.jsx(ue, { text: e.text, color: e.color, y: s(e.value), x1: 0 - k, x2: N + x.right, classNames: e.classNames, styles: e.styles, animate: c, isInView: S }, T)) }) : null;
|
|
207
|
+
let Bt;
|
|
208
|
+
t[28] !== tt || t[29] !== Kt || t[30] !== gt ? (Bt = /* @__PURE__ */ n.jsxs(tt, { children: [
|
|
209
|
+
Kt,
|
|
210
|
+
gt
|
|
211
|
+
] }), t[28] = tt, t[29] = Kt, t[30] = gt, t[31] = Bt) : Bt = t[31];
|
|
212
|
+
let et;
|
|
213
|
+
t[32] !== D ? (et = D.filter(De).map(je), t[32] = D, t[33] = et) : et = t[33];
|
|
214
|
+
let xt;
|
|
215
|
+
t[34] !== l?.tooltip || t[35] !== F || t[36] !== q || t[37] !== at || t[38] !== f?.tooltip || t[39] !== V ? (xt = at && V && F && q ? /* @__PURE__ */ n.jsx(le, { data: at, body: V, xPos: F, yPos: q, backgroundStyle: f?.tooltip, className: l?.tooltip }) : null, t[34] = l?.tooltip, t[35] = F, t[36] = q, t[37] = at, t[38] = f?.tooltip, t[39] = V, t[40] = xt) : xt = t[40];
|
|
216
|
+
let P;
|
|
217
|
+
return t[41] !== l?.modal || t[42] !== I || t[43] !== L || t[44] !== X ? (P = I && L !== void 0 ? /* @__PURE__ */ n.jsx(he, { body: I, data: L, setData: X, className: l?.modal }) : null, t[41] = l?.modal, t[42] = I, t[43] = L, t[44] = X, t[45] = P) : P = t[45], /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
218
|
+
/* @__PURE__ */ n.jsx(te.svg, { ref: st, width: `${yt}px`, height: `${W}px`, viewBox: `0 0 ${yt} ${W}`, direction: "ltr", children: /* @__PURE__ */ n.jsxs("g", { transform: `translate(${x.left},${x.top})`, children: [
|
|
219
|
+
/* @__PURE__ */ n.jsx(me, { y1: s(y < 0 ? 0 : y), y2: s(y < 0 ? 0 : y), x1: 0 - k, x2: N + x.right, label: ie(y < 0 ? 0 : y, qt, Nt, Mt, wt), labelPos: {
|
|
220
|
+
x: 0 - k,
|
|
221
|
+
dx: 0,
|
|
222
|
+
dy: Ut < 0 ? "1em" : -5,
|
|
223
|
+
y: s(y < 0 ? 0 : y)
|
|
224
|
+
}, classNames: K, styles: Z }),
|
|
225
|
+
Ot ? /* @__PURE__ */ n.jsx(fe, { values: ut.filter(ze), y: ut.filter(Se).map((e) => s(e)), x1: 0 - k, x2: N + x.right, styles: {
|
|
226
|
+
gridLines: f?.yAxis?.gridLines,
|
|
227
|
+
labels: f?.yAxis?.labels
|
|
228
|
+
}, classNames: {
|
|
229
|
+
gridLines: l?.yAxis?.gridLines,
|
|
230
|
+
labels: l?.yAxis?.labels
|
|
231
|
+
}, suffix: wt, prefix: Mt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: Nt }) : null,
|
|
232
|
+
B,
|
|
233
|
+
zt,
|
|
234
|
+
Bt,
|
|
235
|
+
et
|
|
236
|
+
] }) }),
|
|
237
|
+
xt,
|
|
238
|
+
P
|
|
239
|
+
] });
|
|
240
|
+
}
|
|
241
|
+
function je(i) {
|
|
242
|
+
return i.layer;
|
|
243
|
+
}
|
|
244
|
+
function De(i) {
|
|
245
|
+
return i.position === "after";
|
|
246
|
+
}
|
|
247
|
+
function ke(i) {
|
|
248
|
+
return i.color;
|
|
249
|
+
}
|
|
250
|
+
function Le(i) {
|
|
251
|
+
return i.color;
|
|
252
|
+
}
|
|
253
|
+
function Ne(i) {
|
|
254
|
+
return i.color;
|
|
255
|
+
}
|
|
256
|
+
function Te(i) {
|
|
257
|
+
return i.color;
|
|
258
|
+
}
|
|
259
|
+
function Ve(i) {
|
|
260
|
+
return i.layer;
|
|
261
|
+
}
|
|
262
|
+
function Ie(i) {
|
|
263
|
+
return i.position === "before";
|
|
264
|
+
}
|
|
265
|
+
function Se(i) {
|
|
266
|
+
return i !== 0;
|
|
267
|
+
}
|
|
268
|
+
function ze(i) {
|
|
269
|
+
return i !== 0;
|
|
270
|
+
}
|
|
271
|
+
function Be(i) {
|
|
272
|
+
return `${i.id}`;
|
|
273
|
+
}
|
|
274
|
+
function Pe(i) {
|
|
275
|
+
return {
|
|
276
|
+
id: i,
|
|
277
|
+
label: i,
|
|
278
|
+
color: null,
|
|
279
|
+
size: null
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
function Ee(i) {
|
|
283
|
+
return i.size;
|
|
284
|
+
}
|
|
285
|
+
function bi(i) {
|
|
286
|
+
const t = ne.c(100), {
|
|
287
|
+
data: o,
|
|
288
|
+
graphTitle: O,
|
|
289
|
+
colors: d,
|
|
290
|
+
suffix: Yt,
|
|
291
|
+
sources: h,
|
|
292
|
+
prefix: yt,
|
|
293
|
+
graphDescription: W,
|
|
294
|
+
barPadding: p,
|
|
295
|
+
showValues: wt,
|
|
296
|
+
showTicks: Mt,
|
|
297
|
+
truncateBy: Qt,
|
|
298
|
+
height: Rt,
|
|
299
|
+
width: u,
|
|
300
|
+
footNote: Ot,
|
|
301
|
+
colorDomain: g,
|
|
302
|
+
colorLegendTitle: At,
|
|
303
|
+
highlightedDataPoints: V,
|
|
304
|
+
padding: Ct,
|
|
305
|
+
backgroundColor: Xt,
|
|
306
|
+
topMargin: G,
|
|
307
|
+
bottomMargin: $t,
|
|
308
|
+
leftMargin: jt,
|
|
309
|
+
rightMargin: H,
|
|
310
|
+
showLabels: Dt,
|
|
311
|
+
relativeHeight: b,
|
|
312
|
+
tooltip: kt,
|
|
313
|
+
onSeriesMouseOver: Lt,
|
|
314
|
+
refValues: I,
|
|
315
|
+
showColorScale: ot,
|
|
316
|
+
graphID: Ft,
|
|
317
|
+
maxValue: f,
|
|
318
|
+
minValue: l,
|
|
319
|
+
onSeriesMouseClick: j,
|
|
320
|
+
graphDownload: c,
|
|
321
|
+
dataDownload: Nt,
|
|
322
|
+
labelOrder: D,
|
|
323
|
+
language: qt,
|
|
324
|
+
showNAColor: k,
|
|
325
|
+
minHeight: Tt,
|
|
326
|
+
theme: Vt,
|
|
327
|
+
maxBarThickness: nt,
|
|
328
|
+
maxNumberOfBars: st,
|
|
329
|
+
minBarThickness: Y,
|
|
330
|
+
ariaLabel: S,
|
|
331
|
+
detailsOnClick: rt,
|
|
332
|
+
barAxisTitle: R,
|
|
333
|
+
noOfTicks: x,
|
|
334
|
+
styles: a,
|
|
335
|
+
classNames: r,
|
|
336
|
+
filterNA: Ut,
|
|
337
|
+
animate: y,
|
|
338
|
+
dimmedOpacity: at,
|
|
339
|
+
precision: It,
|
|
340
|
+
customLayers: L,
|
|
341
|
+
naLabel: X
|
|
342
|
+
} = i, F = Yt === void 0 ? "" : Yt, lt = yt === void 0 ? "" : yt, q = p === void 0 ? 0.25 : p, ct = wt === void 0 ? !0 : wt, N = Mt === void 0 ? !0 : Mt, St = Qt === void 0 ? 999 : Qt;
|
|
343
|
+
let z;
|
|
344
|
+
t[0] !== V ? (z = V === void 0 ? [] : V, t[0] = V, t[1] = z) : z = t[1];
|
|
345
|
+
const U = z, J = Xt === void 0 ? !1 : Xt, mt = Dt === void 0 ? !0 : Dt, s = ot === void 0 ? !0 : ot, m = c === void 0 ? !1 : c, ut = Nt === void 0 ? !1 : Nt, w = qt === void 0 ? "en" : qt, Jt = k === void 0 ? !0 : k, ft = Tt === void 0 ? 0 : Tt, v = Vt === void 0 ? "light" : Vt, K = x === void 0 ? 5 : x, A = Ut === void 0 ? !0 : Ut, Q = y === void 0 ? !1 : y, Z = at === void 0 ? 0.3 : at, dt = It === void 0 ? 2 : It;
|
|
346
|
+
let _;
|
|
347
|
+
t[2] !== L ? (_ = L === void 0 ? [] : L, t[2] = L, t[3] = _) : _ = t[3];
|
|
348
|
+
const ht = _, pt = X === void 0 ? "NA" : X, [B, zt] = vt(0), [tt, Kt] = vt(0), [gt, Bt] = vt(void 0), et = ee(null), xt = ee(null);
|
|
349
|
+
let P, e;
|
|
350
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = () => {
|
|
351
|
+
const M = new ResizeObserver((_t) => {
|
|
352
|
+
zt(_t[0].target.clientWidth || 620), Kt(_t[0].target.clientHeight || 480);
|
|
353
|
+
});
|
|
354
|
+
return et.current && M.observe(et.current), () => M.disconnect();
|
|
355
|
+
}, e = [], t[4] = P, t[5] = e) : (P = t[4], e = t[5]), re(P, e);
|
|
356
|
+
const T = r?.graphContainer, C = a?.graphContainer;
|
|
357
|
+
let $;
|
|
358
|
+
t[6] !== r?.description || t[7] !== r?.title || t[8] !== o || t[9] !== ut || t[10] !== W || t[11] !== m || t[12] !== O || t[13] !== a?.description || t[14] !== a?.title || t[15] !== u ? ($ = O || W || m || ut ? /* @__PURE__ */ n.jsx(Ae, { styles: {
|
|
359
|
+
title: a?.title,
|
|
360
|
+
description: a?.description
|
|
361
|
+
}, classNames: {
|
|
362
|
+
title: r?.title,
|
|
363
|
+
description: r?.description
|
|
364
|
+
}, graphTitle: O, graphDescription: W, width: u, graphDownload: m ? xt : void 0, dataDownload: ut ? o.map(qe).filter(Fe).length > 0 ? o.map(Xe).filter(Re) : o.filter(Ye) : null }) : null, t[6] = r?.description, t[7] = r?.title, t[8] = o, t[9] = ut, t[10] = W, t[11] = m, t[12] = O, t[13] = a?.description, t[14] = a?.title, t[15] = u, t[16] = $) : $ = t[16];
|
|
365
|
+
let it;
|
|
366
|
+
t[17] !== r?.colorLegend || t[18] !== g || t[19] !== At || t[20] !== d || t[21] !== o || t[22] !== s || t[23] !== Jt || t[24] !== v || t[25] !== u ? (it = s && o.filter(He).length !== 0 && o.length > 0 ? /* @__PURE__ */ n.jsx(be, { width: u, colorLegendTitle: At, colors: d || bt[v].categoricalColors.colors, colorDomain: g || oe(o, "color", !0), setSelectedColor: Bt, showNAColor: Jt, className: r?.colorLegend }) : null, t[17] = r?.colorLegend, t[18] = g, t[19] = At, t[20] = d, t[21] = o, t[22] = s, t[23] = Jt, t[24] = v, t[25] = u, t[26] = it) : it = t[26];
|
|
367
|
+
let E;
|
|
368
|
+
t[27] !== o || t[28] !== A ? (E = o.filter((M) => A ? !Ht(M.size) : M).length === 0 && /* @__PURE__ */ n.jsx(ye, {}), t[27] = o, t[28] = A, t[29] = E) : E = t[29];
|
|
369
|
+
let Pt;
|
|
370
|
+
t[30] !== Q || t[31] !== R || t[32] !== q || t[33] !== $t || t[34] !== r || t[35] !== g || t[36] !== d || t[37] !== ht || t[38] !== o || t[39] !== rt || t[40] !== Z || t[41] !== A || t[42] !== U || t[43] !== D || t[44] !== w || t[45] !== jt || t[46] !== nt || t[47] !== st || t[48] !== f || t[49] !== Y || t[50] !== l || t[51] !== pt || t[52] !== K || t[53] !== j || t[54] !== Lt || t[55] !== dt || t[56] !== lt || t[57] !== I || t[58] !== H || t[59] !== gt || t[60] !== mt || t[61] !== N || t[62] !== ct || t[63] !== a || t[64] !== F || t[65] !== tt || t[66] !== B || t[67] !== v || t[68] !== kt || t[69] !== G || t[70] !== St ? (Pt = B && tt && o.filter((M) => A ? !Ht(M.size) : M).length > 0 ? /* @__PURE__ */ n.jsx($e, { data: o.filter((M) => A ? !Ht(M.size) : M).filter((M, _t) => st ? _t < st : !0), barColor: o.filter(Ge).length === 0 ? d ? [d] : [bt.primaryColors["blue-600"]] : d || bt[v].categoricalColors.colors, colorDomain: o.filter(We).length === 0 ? [] : g || oe(o, "color", !0), selectedColor: gt, width: B, height: tt, suffix: F, prefix: lt, barPadding: q, showValues: ct, showTicks: N, leftMargin: jt, rightMargin: H, topMargin: G, bottomMargin: $t, truncateBy: St, showLabels: mt, tooltip: kt, onSeriesMouseOver: Lt, refValues: I, maxValue: f, minValue: l, highlightedDataPoints: U, onSeriesMouseClick: j, labelOrder: D, rtl: w === "he" || w === "ar", maxBarThickness: nt, minBarThickness: Y, detailsOnClick: rt, barAxisTitle: R, noOfTicks: K, classNames: r, styles: a, animate: Q === !0 ? {
|
|
371
|
+
duration: 0.5,
|
|
372
|
+
once: !0,
|
|
373
|
+
amount: 0.5
|
|
374
|
+
} : Q || {
|
|
375
|
+
duration: 0,
|
|
376
|
+
once: !0,
|
|
377
|
+
amount: 0
|
|
378
|
+
}, dimmedOpacity: Z, precision: dt, customLayers: ht, naLabel: pt }) : null, t[30] = Q, t[31] = R, t[32] = q, t[33] = $t, t[34] = r, t[35] = g, t[36] = d, t[37] = ht, t[38] = o, t[39] = rt, t[40] = Z, t[41] = A, t[42] = U, t[43] = D, t[44] = w, t[45] = jt, t[46] = nt, t[47] = st, t[48] = f, t[49] = Y, t[50] = l, t[51] = pt, t[52] = K, t[53] = j, t[54] = Lt, t[55] = dt, t[56] = lt, t[57] = I, t[58] = H, t[59] = gt, t[60] = mt, t[61] = N, t[62] = ct, t[63] = a, t[64] = F, t[65] = tt, t[66] = B, t[67] = v, t[68] = kt, t[69] = G, t[70] = St, t[71] = Pt) : Pt = t[71];
|
|
379
|
+
let Et;
|
|
380
|
+
t[72] !== E || t[73] !== Pt ? (Et = /* @__PURE__ */ n.jsxs(we, { ref: et, children: [
|
|
381
|
+
E,
|
|
382
|
+
Pt
|
|
383
|
+
] }), t[72] = E, t[73] = Pt, t[74] = Et) : Et = t[74];
|
|
384
|
+
let Wt;
|
|
385
|
+
t[75] !== r?.footnote || t[76] !== r?.source || t[77] !== Ot || t[78] !== h || t[79] !== a?.footnote || t[80] !== a?.source || t[81] !== u ? (Wt = h || Ot ? /* @__PURE__ */ n.jsx(Oe, { sources: h, footNote: Ot, width: u, styles: {
|
|
386
|
+
footnote: a?.footnote,
|
|
387
|
+
source: a?.source
|
|
388
|
+
}, classNames: {
|
|
389
|
+
footnote: r?.footnote,
|
|
390
|
+
source: r?.source
|
|
391
|
+
} }) : null, t[75] = r?.footnote, t[76] = r?.source, t[77] = Ot, t[78] = h, t[79] = a?.footnote, t[80] = a?.source, t[81] = u, t[82] = Wt) : Wt = t[82];
|
|
392
|
+
let Zt;
|
|
393
|
+
return t[83] !== S || t[84] !== J || t[85] !== Ft || t[86] !== Rt || t[87] !== w || t[88] !== ft || t[89] !== Ct || t[90] !== b || t[91] !== T || t[92] !== C || t[93] !== $ || t[94] !== it || t[95] !== Et || t[96] !== Wt || t[97] !== v || t[98] !== u ? (Zt = /* @__PURE__ */ n.jsxs(Me, { className: T, style: C, id: Ft, ref: xt, "aria-label": S, backgroundColor: J, theme: v, language: w, minHeight: ft, width: u, height: Rt, relativeHeight: b, padding: Ct, children: [
|
|
394
|
+
$,
|
|
395
|
+
it,
|
|
396
|
+
Et,
|
|
397
|
+
Wt
|
|
398
|
+
] }), t[83] = S, t[84] = J, t[85] = Ft, t[86] = Rt, t[87] = w, t[88] = ft, t[89] = Ct, t[90] = b, t[91] = T, t[92] = C, t[93] = $, t[94] = it, t[95] = Et, t[96] = Wt, t[97] = v, t[98] = u, t[99] = Zt) : Zt = t[99], Zt;
|
|
399
|
+
}
|
|
400
|
+
function We(i) {
|
|
401
|
+
return i.color;
|
|
402
|
+
}
|
|
403
|
+
function Ge(i) {
|
|
404
|
+
return i.color;
|
|
405
|
+
}
|
|
406
|
+
function He(i) {
|
|
407
|
+
return i.color;
|
|
408
|
+
}
|
|
409
|
+
function Ye(i) {
|
|
410
|
+
return i !== void 0;
|
|
411
|
+
}
|
|
412
|
+
function Re(i) {
|
|
413
|
+
return i !== void 0;
|
|
414
|
+
}
|
|
415
|
+
function Xe(i) {
|
|
416
|
+
return i.data;
|
|
417
|
+
}
|
|
418
|
+
function Fe(i) {
|
|
419
|
+
return i !== void 0;
|
|
420
|
+
}
|
|
421
|
+
function qe(i) {
|
|
422
|
+
return i.data;
|
|
423
|
+
}
|
|
424
|
+
export {
|
|
425
|
+
bi as WaterfallChart
|
|
426
|
+
};
|
|
427
|
+
//# sourceMappingURL=WaterfallChart.js.map
|