@undp/data-viz 2.0.0 → 2.0.2

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.
Files changed (140) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +959 -959
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BasicStatCard.cjs +1 -1
  6. package/dist/BasicStatCard.cjs.map +1 -1
  7. package/dist/BasicStatCard.js +45 -47
  8. package/dist/BasicStatCard.js.map +1 -1
  9. package/dist/BeeSwarmChart.cjs +1 -1
  10. package/dist/BeeSwarmChart.cjs.map +1 -1
  11. package/dist/BeeSwarmChart.js +76 -56
  12. package/dist/BeeSwarmChart.js.map +1 -1
  13. package/dist/BiVariateChoroplethMap.cjs +1 -1
  14. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  15. package/dist/BiVariateChoroplethMap.js +157 -157
  16. package/dist/BiVariateChoroplethMap.js.map +1 -1
  17. package/dist/BulletChart.cjs +1 -1
  18. package/dist/BulletChart.js +2 -2
  19. package/dist/ButterflyChart.cjs +1 -1
  20. package/dist/ButterflyChart.js +1 -1
  21. package/dist/ChoroplethMap.cjs +1 -1
  22. package/dist/ChoroplethMap.cjs.map +1 -1
  23. package/dist/ChoroplethMap.js +185 -185
  24. package/dist/ChoroplethMap.js.map +1 -1
  25. package/dist/CirclePackingGraph.cjs +1 -1
  26. package/dist/CirclePackingGraph.js +2 -4
  27. package/dist/CirclePackingGraph.js.map +1 -1
  28. package/dist/Data/barChart.json +70 -0
  29. package/dist/Data/basic.csv +20 -0
  30. package/dist/DifferenceLineChart.cjs +1 -1
  31. package/dist/DifferenceLineChart.cjs.map +1 -1
  32. package/dist/DifferenceLineChart.js +224 -223
  33. package/dist/DifferenceLineChart.js.map +1 -1
  34. package/dist/DonutChart.cjs +1 -1
  35. package/dist/DonutChart.cjs.map +1 -1
  36. package/dist/DonutChart.js +32 -24
  37. package/dist/DonutChart.js.map +1 -1
  38. package/dist/DotDensityMap.cjs +1 -1
  39. package/dist/DotDensityMap.cjs.map +1 -1
  40. package/dist/DotDensityMap.js +156 -156
  41. package/dist/DotDensityMap.js.map +1 -1
  42. package/dist/DualAxisLineChart.cjs +1 -1
  43. package/dist/DualAxisLineChart.cjs.map +1 -1
  44. package/dist/DualAxisLineChart.js +326 -325
  45. package/dist/DualAxisLineChart.js.map +1 -1
  46. package/dist/DumbbellChart.cjs +1 -1
  47. package/dist/DumbbellChart.js +2 -2
  48. package/dist/GeoHubCompareMaps.cjs +1 -1
  49. package/dist/GeoHubCompareMaps.cjs.map +1 -1
  50. package/dist/GeoHubCompareMaps.js +183 -183
  51. package/dist/GeoHubCompareMaps.js.map +1 -1
  52. package/dist/{GraphEl-DzRon4cb.js → GraphEl-BZne2JIx.js} +3 -3
  53. package/dist/{GraphEl-DzRon4cb.js.map → GraphEl-BZne2JIx.js.map} +1 -1
  54. package/dist/{GraphEl-BkyLYXG5.cjs → GraphEl-D5MUfp45.cjs} +2 -2
  55. package/dist/{GraphEl-BkyLYXG5.cjs.map → GraphEl-D5MUfp45.cjs.map} +1 -1
  56. package/dist/GriddedGraphs.cjs +1 -1
  57. package/dist/GriddedGraphs.js +1 -1
  58. package/dist/HeatMap.cjs +1 -1
  59. package/dist/HeatMap.js +2 -2
  60. package/dist/Histogram.cjs +1 -1
  61. package/dist/Histogram.js +1 -1
  62. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  63. package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
  64. package/dist/LineChartWithConfidenceInterval.js +133 -132
  65. package/dist/LineChartWithConfidenceInterval.js.map +1 -1
  66. package/dist/MultiGraphDashboard.cjs +1 -1
  67. package/dist/MultiGraphDashboard.cjs.map +1 -1
  68. package/dist/MultiGraphDashboard.js +52 -50
  69. package/dist/MultiGraphDashboard.js.map +1 -1
  70. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  71. package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
  72. package/dist/MultiGraphDashboardWideToLongFormat.js +11 -9
  73. package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
  74. package/dist/MultiLineAltChart.cjs +1 -1
  75. package/dist/MultiLineAltChart.cjs.map +1 -1
  76. package/dist/MultiLineAltChart.js +149 -148
  77. package/dist/MultiLineAltChart.js.map +1 -1
  78. package/dist/MultiLineChart.cjs +1 -1
  79. package/dist/MultiLineChart.cjs.map +1 -1
  80. package/dist/MultiLineChart.js +182 -181
  81. package/dist/MultiLineChart.js.map +1 -1
  82. package/dist/ParetoChart.cjs +1 -1
  83. package/dist/ParetoChart.js +1 -1
  84. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
  85. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
  86. package/dist/PerformanceIntensiveMultiGraphDashboard.js +14 -12
  87. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
  88. package/dist/SimpleLineChart.cjs +1 -1
  89. package/dist/SimpleLineChart.cjs.map +1 -1
  90. package/dist/SimpleLineChart.js +123 -122
  91. package/dist/SimpleLineChart.js.map +1 -1
  92. package/dist/SingleGraphDashboard.cjs +1 -1
  93. package/dist/SingleGraphDashboard.cjs.map +1 -1
  94. package/dist/SingleGraphDashboard.js +83 -79
  95. package/dist/SingleGraphDashboard.js.map +1 -1
  96. package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
  97. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
  98. package/dist/SingleGraphDashboardGeoHubMaps.js +49 -45
  99. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
  100. package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
  101. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
  102. package/dist/SingleGraphDashboardThreeDGraphs.js +56 -52
  103. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
  104. package/dist/StatCardFromData.cjs +1 -1
  105. package/dist/StatCardFromData.cjs.map +1 -1
  106. package/dist/StatCardFromData.js +44 -46
  107. package/dist/StatCardFromData.js.map +1 -1
  108. package/dist/ThreeDGlobe.cjs +1 -1
  109. package/dist/ThreeDGlobe.cjs.map +1 -1
  110. package/dist/ThreeDGlobe.js +134 -134
  111. package/dist/ThreeDGlobe.js.map +1 -1
  112. package/dist/{XAxesLabels-D5X8jngD.cjs → XAxesLabels-C1XSXoWG.cjs} +2 -2
  113. package/dist/XAxesLabels-C1XSXoWG.cjs.map +1 -0
  114. package/dist/{XAxesLabels-DNO0KmjL.js → XAxesLabels-Dmbk50u4.js} +18 -16
  115. package/dist/XAxesLabels-Dmbk50u4.js.map +1 -0
  116. package/dist/YAxesLabels-1XTb-D0_.js +72 -0
  117. package/dist/YAxesLabels-1XTb-D0_.js.map +1 -0
  118. package/dist/YAxesLabels-pjdsVwIM.cjs +2 -0
  119. package/dist/YAxesLabels-pjdsVwIM.cjs.map +1 -0
  120. package/dist/getNoOfTicks-C_1CFXv_.cjs +2 -0
  121. package/dist/getNoOfTicks-C_1CFXv_.cjs.map +1 -0
  122. package/dist/getNoOfTicks-CpmRjcRF.js +7 -0
  123. package/dist/getNoOfTicks-CpmRjcRF.js.map +1 -0
  124. package/dist/index-C6LorfZ-.cjs +2 -0
  125. package/dist/index-C6LorfZ-.cjs.map +1 -0
  126. package/dist/index-Ceppbd8C.js +342 -0
  127. package/dist/index-Ceppbd8C.js.map +1 -0
  128. package/dist/index.cjs +1 -1
  129. package/dist/index.js +1 -1
  130. package/package.json +1 -1
  131. package/dist/XAxesLabels-D5X8jngD.cjs.map +0 -1
  132. package/dist/XAxesLabels-DNO0KmjL.js.map +0 -1
  133. package/dist/YAxesLabels-DcS85Beo.cjs +0 -2
  134. package/dist/YAxesLabels-DcS85Beo.cjs.map +0 -1
  135. package/dist/YAxesLabels-Dnnng49-.js +0 -70
  136. package/dist/YAxesLabels-Dnnng49-.js.map +0 -1
  137. package/dist/index-DoY3Ga3W.cjs +0 -2
  138. package/dist/index-DoY3Ga3W.cjs.map +0 -1
  139. package/dist/index-leTnKT2q.js +0 -329
  140. package/dist/index-leTnKT2q.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./BarGraph.cjs"),i=require("./index-DoY3Ga3W.cjs"),h=require("./DonutChart.cjs"),s=require("./DumbbellChart.cjs"),l=require("./BeeSwarmChart.cjs"),c=require("./DualAxisLineChart.cjs"),u=require("./LineChartWithConfidenceInterval.cjs"),d=require("./SimpleLineChart.cjs"),g=require("./MultiLineChart.cjs"),p=require("./MultiLineAltChart.cjs"),C=require("./DifferenceLineChart.cjs"),m=require("./SparkLine.cjs"),S=require("./BiVariateChoroplethMap.cjs"),D=require("./ChoroplethMap.cjs"),G=require("./DotDensityMap.cjs"),q=require("./ThreeDGlobe.cjs"),f=require("./GeoHubMap.cjs"),b=require("./GeoHubCompareMaps.cjs"),F=require("./GeoHubMapWithLayerSelection.cjs"),M=require("./ScatterPlot.cjs"),L=require("./SlopeChart.cjs"),B=require("./BulletChart.cjs"),T=require("./AreaChart.cjs"),v=require("./BasicStatCard.cjs"),P=require("./StatCardFromData.cjs"),y=require("./TreeMapGraph.cjs"),A=require("./UnitChart.cjs"),H=require("./HeatMap.cjs"),O=require("./DataTable.cjs"),w=require("./DataCards.cjs"),I=require("./StripChart.cjs"),k=require("./ParetoChart.cjs"),W=require("./ButterflyChart.cjs"),x=require("./Histogram.cjs"),N=require("./SankeyChart.cjs"),V=require("./RadarChart.cjs"),J=require("./MultiGraphDashboard.cjs"),U=require("./PerformanceIntensiveMultiGraphDashboard.cjs"),E=require("./MultiGraphDashboardWideToLongFormat.cjs"),R=require("./SingleGraphDashboard.cjs"),Q=require("./SingleGraphDashboardGeoHubMaps.cjs"),j=require("./SingleGraphDashboardThreeDGraphs.cjs"),z=require("./GriddedGraphs.cjs"),K=require("./ScrollStory.cjs"),X=require("./PerformanceIntensiveScrollStory.cjs"),Y=require("./MultiGraphDashboardFromConfig.cjs"),Z=require("./PerformanceIntensiveMultiGraphDashboardFromConfig.cjs"),_=require("./MultiGraphDashboardWideToLongFormatFromConfig.cjs"),$=require("./SingleGraphDashboardFromConfig.cjs"),ee=require("./SingleGraphDashboardGeoHubMapsFromConfig.cjs"),re=require("./SingleGraphDashboardThreeDGraphsFromConfig.cjs"),ae=require("./GriddedGraphsFromConfig.cjs"),te=require("./ExcelDownloadButton.cjs"),oe=require("./ImageDownloadButton.cjs"),ne=require("./SVGDownloadButton.cjs"),ie=require("./CsvDownloadButton.cjs"),he=require("./CopyTextButton.cjs"),se=require("./Colors.cjs"),le=require("./ColorLegend.cjs"),ce=require("./ColorLegendWithMouseOver.cjs"),ue=require("./LinearColorLegend.cjs"),de=require("./ThresholdColorLegendWithMouseOver.cjs"),ge=require("./GraphFooter.cjs"),pe=require("./GraphHeader.cjs"),Ce=require("./FootNote.cjs"),me=require("./GraphDescription.cjs"),Se=require("./GraphTitle.cjs"),De=require("./Source-DYMJRrsq.cjs"),Ge=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),a=require("./removeOutliers-WELHHqiI.cjs"),qe=require("./numberFormattingFunction-02t-wJta.cjs"),fe=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),be=require("./getJenks-GYmdwBqm.cjs"),Fe=require("./imageDownload-CgDcm1Sj.cjs"),Me=require("./svgDownload-D9zEGjTF.cjs"),Le=require("./excelDownload-BQpsCa62.cjs"),Be=require("./getUniqValue-RViz8tTw.cjs"),Te=require("./getCentroidCoordinates-Dng1HVjO.cjs"),r=require("./fetchAndParseData-l5HGMAEs.cjs"),n=require("./transformDataForAggregation-KXGm6flX.cjs"),ve=require("./transformDataForGraphFromFile-DaJHQCsL.cjs"),o=require("./validateSchema.cjs"),e=require("./getSchema.cjs"),Pe=require("./getGraphList-gf02xgT2.cjs");exports.GroupedBarGraph=t.GroupedBarGraph;exports.SimpleBarGraph=t.SimpleBarGraph;exports.StackedBarGraph=t.StackedBarGraph;exports.CirclePackingGraph=i.CirclePackingGraph;exports.DonutChart=h.DonutChart;exports.DumbbellChart=s.DumbbellChart;exports.BeeSwarmChart=l.BeeSwarmChart;exports.DualAxisLineChart=c.DualAxisLineChart;exports.LineChartWithConfidenceInterval=u.LineChartWithConfidenceInterval;exports.SimpleLineChart=d.SimpleLineChart;exports.MultiLineChart=g.MultiLineChart;exports.MultiLineAltChart=p.MultiLineAltChart;exports.DifferenceLineChart=C.DifferenceLineChart;exports.SparkLine=m.SparkLine;exports.BiVariateChoroplethMap=S.BiVariateChoroplethMap;exports.ChoroplethMap=D.ChoroplethMap;exports.DotDensityMap=G.DotDensityMap;exports.ThreeDGlobe=q.ThreeDGlobe;exports.GeoHubMap=f.GeoHubMap;exports.GeoHubCompareMaps=b.GeoHubCompareMaps;exports.GeoHubMapWithLayerSelection=F.GeoHubMapWithLayerSelection;exports.ScatterPlot=M.ScatterPlot;exports.SlopeChart=L.SlopeChart;exports.BulletChart=B.BulletChart;exports.AreaChart=T.AreaChart;exports.BasicStatCard=v.BasicStatCard;exports.StatCardFromData=P.StatCardFromData;exports.TreeMapGraph=y.TreeMapGraph;exports.UnitChart=A.UnitChart;exports.HeatMap=H.HeatMap;exports.DataTable=O.DataTable;exports.DataCards=w.DataCards;exports.StripChart=I.StripChart;exports.ParetoChart=k.ParetoChart;exports.ButterflyChart=W.ButterflyChart;exports.Histogram=x.Histogram;exports.SankeyChart=N.SankeyChart;exports.RadarChart=V.RadarChart;exports.MultiGraphDashboard=J.MultiGraphDashboard;exports.PerformanceIntensiveMultiGraphDashboard=U.PerformanceIntensiveMultiGraphDashboard;exports.MultiGraphDashboardWideToLongFormat=E.MultiGraphDashboardWideToLongFormat;exports.SingleGraphDashboard=R.SingleGraphDashboard;exports.SingleGraphDashboardGeoHubMaps=Q.SingleGraphDashboardGeoHubMaps;exports.SingleGraphDashboardThreeDGraphs=j.SingleGraphDashboardThreeDGraphs;exports.GriddedGraphs=z.GriddedGraphs;exports.ScrollStory=K.ScrollStory;exports.PerformanceIntensiveScrollStory=X.PerformanceIntensiveScrollStory;exports.MultiGraphDashboardFromConfig=Y.MultiGraphDashboardFromConfig;exports.PerformanceIntensiveMultiGraphDashboardFromConfig=Z.PerformanceIntensiveMultiGraphDashboardFromConfig;exports.MultiGraphDashboardWideToLongFormatFromConfig=_.MultiGraphDashboardWideToLongFormatFromConfig;exports.SingleGraphDashboardFromConfig=$.SingleGraphDashboardFromConfig;exports.SingleGraphDashboardGeoHubMapsFromConfig=ee.SingleGraphDashboardGeoHubMapsFromConfig;exports.SingleGraphDashboardThreeDGraphsFromConfig=re.SingleGraphDashboardThreeDGraphsFromConfig;exports.GriddedGraphsFromConfig=ae.GriddedGraphsFromConfig;exports.ExcelDownloadButton=te.ExcelDownloadButton;exports.ImageDownloadButton=oe.ImageDownloadButton;exports.SVGDownloadButton=ne.SVGDownloadButton;exports.CsvDownloadButton=ie.CsvDownloadButton;exports.CopyTextButton=he.CopyTextButton;exports.Colors=se.Colors;exports.ColorLegend=le.ColorLegend;exports.ColorLegendWithMouseOver=ce.ColorLegendWithMouseOver;exports.LinearColorLegend=ue.LinearColorLegend;exports.ThresholdColorLegendWithMouseOver=de.ThresholdColorLegendWithMouseOver;exports.GraphFooter=ge.GraphFooter;exports.GraphHeader=pe.GraphHeader;exports.FootNote=Ce.FootNote;exports.GraphDescription=me.GraphDescription;exports.GraphTitle=Se.GraphTitle;exports.Source=De.Source;exports.checkIfNullOrUndefined=Ge.checkIfNullOrUndefined;exports.generateEmbedLink=a.generateEmbedLink;exports.generateIframeCode=a.generateIframeCode;exports.getPercentileValue=a.getPercentileValue;exports.getQueryParamsFromLink=a.getQueryParamsFromLink;exports.removeOutliers=a.removeOutliers;exports.numberFormattingFunction=qe.numberFormattingFunction;exports.getTextColorBasedOnBgColor=fe.getTextColorBasedOnBgColor;exports.getJenks=be.getJenks;exports.imageDownload=Fe.imageDownload;exports.svgDownload=Me.svgDownload;exports.excelDownload=Le.excelDownload;exports.getUniqValue=Be.getUniqValue;exports.getCentroidCoordinates=Te.getCentroidCoordinates;exports.fetchAndParseCSV=r.fetchAndParseCSV;exports.fetchAndParseCSVFromTextBlob=r.fetchAndParseCSVFromTextBlob;exports.fetchAndParseJSON=r.fetchAndParseJSON;exports.fetchAndParseMultipleDataSources=r.fetchAndParseMultipleDataSources;exports.fetchAndTransformDataFromAPI=r.fetchAndTransformDataFromAPI;exports.transformColumnsToArray=r.transformColumnsToArray;exports.transformDataForAggregation=n.transformDataForAggregation;exports.transformDataForGraph=n.transformDataForGraph;exports.transformDataForGraphFromFile=ve.transformDataForGraphFromFile;exports.validateConfigSchema=o.validateConfigSchema;exports.validateDataSchema=o.validateDataSchema;exports.validateSettingsSchema=o.validateSettingsSchema;exports.getDashboardJSONSchema=e.getDashboardJSONSchema;exports.getDashboardWideToLongFormatJSONSchema=e.getDashboardWideToLongFormatJSONSchema;exports.getDataFiltersSchema=e.getDataFiltersSchema;exports.getDataSchema=e.getDataSchema;exports.getDataSelectionSchema=e.getDataSelectionSchema;exports.getDataSettingsSchema=e.getDataSettingsSchema;exports.getDataTransformSchema=e.getDataTransformSchema;exports.getFiltersSchema=e.getFiltersSchema;exports.getGraphDataConfigurationSchema=e.getGraphDataConfigurationSchema;exports.getGriddedGraphJSONSchema=e.getGriddedGraphJSONSchema;exports.getReadableHeaderSchema=e.getReadableHeaderSchema;exports.getSettingsSchema=e.getSettingsSchema;exports.getSingleGraphJSONSchema=e.getSingleGraphJSONSchema;exports.graphList=Pe.graphList;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./BarGraph.cjs"),i=require("./index-C6LorfZ-.cjs"),h=require("./DonutChart.cjs"),s=require("./DumbbellChart.cjs"),l=require("./BeeSwarmChart.cjs"),c=require("./DualAxisLineChart.cjs"),u=require("./LineChartWithConfidenceInterval.cjs"),d=require("./SimpleLineChart.cjs"),g=require("./MultiLineChart.cjs"),p=require("./MultiLineAltChart.cjs"),C=require("./DifferenceLineChart.cjs"),m=require("./SparkLine.cjs"),S=require("./BiVariateChoroplethMap.cjs"),D=require("./ChoroplethMap.cjs"),G=require("./DotDensityMap.cjs"),q=require("./ThreeDGlobe.cjs"),f=require("./GeoHubMap.cjs"),b=require("./GeoHubCompareMaps.cjs"),F=require("./GeoHubMapWithLayerSelection.cjs"),M=require("./ScatterPlot.cjs"),L=require("./SlopeChart.cjs"),B=require("./BulletChart.cjs"),T=require("./AreaChart.cjs"),v=require("./BasicStatCard.cjs"),P=require("./StatCardFromData.cjs"),y=require("./TreeMapGraph.cjs"),A=require("./UnitChart.cjs"),H=require("./HeatMap.cjs"),O=require("./DataTable.cjs"),w=require("./DataCards.cjs"),I=require("./StripChart.cjs"),k=require("./ParetoChart.cjs"),W=require("./ButterflyChart.cjs"),x=require("./Histogram.cjs"),N=require("./SankeyChart.cjs"),V=require("./RadarChart.cjs"),J=require("./MultiGraphDashboard.cjs"),U=require("./PerformanceIntensiveMultiGraphDashboard.cjs"),E=require("./MultiGraphDashboardWideToLongFormat.cjs"),R=require("./SingleGraphDashboard.cjs"),Q=require("./SingleGraphDashboardGeoHubMaps.cjs"),j=require("./SingleGraphDashboardThreeDGraphs.cjs"),z=require("./GriddedGraphs.cjs"),K=require("./ScrollStory.cjs"),X=require("./PerformanceIntensiveScrollStory.cjs"),Y=require("./MultiGraphDashboardFromConfig.cjs"),Z=require("./PerformanceIntensiveMultiGraphDashboardFromConfig.cjs"),_=require("./MultiGraphDashboardWideToLongFormatFromConfig.cjs"),$=require("./SingleGraphDashboardFromConfig.cjs"),ee=require("./SingleGraphDashboardGeoHubMapsFromConfig.cjs"),re=require("./SingleGraphDashboardThreeDGraphsFromConfig.cjs"),ae=require("./GriddedGraphsFromConfig.cjs"),te=require("./ExcelDownloadButton.cjs"),oe=require("./ImageDownloadButton.cjs"),ne=require("./SVGDownloadButton.cjs"),ie=require("./CsvDownloadButton.cjs"),he=require("./CopyTextButton.cjs"),se=require("./Colors.cjs"),le=require("./ColorLegend.cjs"),ce=require("./ColorLegendWithMouseOver.cjs"),ue=require("./LinearColorLegend.cjs"),de=require("./ThresholdColorLegendWithMouseOver.cjs"),ge=require("./GraphFooter.cjs"),pe=require("./GraphHeader.cjs"),Ce=require("./FootNote.cjs"),me=require("./GraphDescription.cjs"),Se=require("./GraphTitle.cjs"),De=require("./Source-DYMJRrsq.cjs"),Ge=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),a=require("./removeOutliers-WELHHqiI.cjs"),qe=require("./numberFormattingFunction-02t-wJta.cjs"),fe=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),be=require("./getJenks-GYmdwBqm.cjs"),Fe=require("./imageDownload-CgDcm1Sj.cjs"),Me=require("./svgDownload-D9zEGjTF.cjs"),Le=require("./excelDownload-BQpsCa62.cjs"),Be=require("./getUniqValue-RViz8tTw.cjs"),Te=require("./getCentroidCoordinates-Dng1HVjO.cjs"),r=require("./fetchAndParseData-l5HGMAEs.cjs"),n=require("./transformDataForAggregation-KXGm6flX.cjs"),ve=require("./transformDataForGraphFromFile-DaJHQCsL.cjs"),o=require("./validateSchema.cjs"),e=require("./getSchema.cjs"),Pe=require("./getGraphList-gf02xgT2.cjs");exports.GroupedBarGraph=t.GroupedBarGraph;exports.SimpleBarGraph=t.SimpleBarGraph;exports.StackedBarGraph=t.StackedBarGraph;exports.CirclePackingGraph=i.CirclePackingGraph;exports.DonutChart=h.DonutChart;exports.DumbbellChart=s.DumbbellChart;exports.BeeSwarmChart=l.BeeSwarmChart;exports.DualAxisLineChart=c.DualAxisLineChart;exports.LineChartWithConfidenceInterval=u.LineChartWithConfidenceInterval;exports.SimpleLineChart=d.SimpleLineChart;exports.MultiLineChart=g.MultiLineChart;exports.MultiLineAltChart=p.MultiLineAltChart;exports.DifferenceLineChart=C.DifferenceLineChart;exports.SparkLine=m.SparkLine;exports.BiVariateChoroplethMap=S.BiVariateChoroplethMap;exports.ChoroplethMap=D.ChoroplethMap;exports.DotDensityMap=G.DotDensityMap;exports.ThreeDGlobe=q.ThreeDGlobe;exports.GeoHubMap=f.GeoHubMap;exports.GeoHubCompareMaps=b.GeoHubCompareMaps;exports.GeoHubMapWithLayerSelection=F.GeoHubMapWithLayerSelection;exports.ScatterPlot=M.ScatterPlot;exports.SlopeChart=L.SlopeChart;exports.BulletChart=B.BulletChart;exports.AreaChart=T.AreaChart;exports.BasicStatCard=v.BasicStatCard;exports.StatCardFromData=P.StatCardFromData;exports.TreeMapGraph=y.TreeMapGraph;exports.UnitChart=A.UnitChart;exports.HeatMap=H.HeatMap;exports.DataTable=O.DataTable;exports.DataCards=w.DataCards;exports.StripChart=I.StripChart;exports.ParetoChart=k.ParetoChart;exports.ButterflyChart=W.ButterflyChart;exports.Histogram=x.Histogram;exports.SankeyChart=N.SankeyChart;exports.RadarChart=V.RadarChart;exports.MultiGraphDashboard=J.MultiGraphDashboard;exports.PerformanceIntensiveMultiGraphDashboard=U.PerformanceIntensiveMultiGraphDashboard;exports.MultiGraphDashboardWideToLongFormat=E.MultiGraphDashboardWideToLongFormat;exports.SingleGraphDashboard=R.SingleGraphDashboard;exports.SingleGraphDashboardGeoHubMaps=Q.SingleGraphDashboardGeoHubMaps;exports.SingleGraphDashboardThreeDGraphs=j.SingleGraphDashboardThreeDGraphs;exports.GriddedGraphs=z.GriddedGraphs;exports.ScrollStory=K.ScrollStory;exports.PerformanceIntensiveScrollStory=X.PerformanceIntensiveScrollStory;exports.MultiGraphDashboardFromConfig=Y.MultiGraphDashboardFromConfig;exports.PerformanceIntensiveMultiGraphDashboardFromConfig=Z.PerformanceIntensiveMultiGraphDashboardFromConfig;exports.MultiGraphDashboardWideToLongFormatFromConfig=_.MultiGraphDashboardWideToLongFormatFromConfig;exports.SingleGraphDashboardFromConfig=$.SingleGraphDashboardFromConfig;exports.SingleGraphDashboardGeoHubMapsFromConfig=ee.SingleGraphDashboardGeoHubMapsFromConfig;exports.SingleGraphDashboardThreeDGraphsFromConfig=re.SingleGraphDashboardThreeDGraphsFromConfig;exports.GriddedGraphsFromConfig=ae.GriddedGraphsFromConfig;exports.ExcelDownloadButton=te.ExcelDownloadButton;exports.ImageDownloadButton=oe.ImageDownloadButton;exports.SVGDownloadButton=ne.SVGDownloadButton;exports.CsvDownloadButton=ie.CsvDownloadButton;exports.CopyTextButton=he.CopyTextButton;exports.Colors=se.Colors;exports.ColorLegend=le.ColorLegend;exports.ColorLegendWithMouseOver=ce.ColorLegendWithMouseOver;exports.LinearColorLegend=ue.LinearColorLegend;exports.ThresholdColorLegendWithMouseOver=de.ThresholdColorLegendWithMouseOver;exports.GraphFooter=ge.GraphFooter;exports.GraphHeader=pe.GraphHeader;exports.FootNote=Ce.FootNote;exports.GraphDescription=me.GraphDescription;exports.GraphTitle=Se.GraphTitle;exports.Source=De.Source;exports.checkIfNullOrUndefined=Ge.checkIfNullOrUndefined;exports.generateEmbedLink=a.generateEmbedLink;exports.generateIframeCode=a.generateIframeCode;exports.getPercentileValue=a.getPercentileValue;exports.getQueryParamsFromLink=a.getQueryParamsFromLink;exports.removeOutliers=a.removeOutliers;exports.numberFormattingFunction=qe.numberFormattingFunction;exports.getTextColorBasedOnBgColor=fe.getTextColorBasedOnBgColor;exports.getJenks=be.getJenks;exports.imageDownload=Fe.imageDownload;exports.svgDownload=Me.svgDownload;exports.excelDownload=Le.excelDownload;exports.getUniqValue=Be.getUniqValue;exports.getCentroidCoordinates=Te.getCentroidCoordinates;exports.fetchAndParseCSV=r.fetchAndParseCSV;exports.fetchAndParseCSVFromTextBlob=r.fetchAndParseCSVFromTextBlob;exports.fetchAndParseJSON=r.fetchAndParseJSON;exports.fetchAndParseMultipleDataSources=r.fetchAndParseMultipleDataSources;exports.fetchAndTransformDataFromAPI=r.fetchAndTransformDataFromAPI;exports.transformColumnsToArray=r.transformColumnsToArray;exports.transformDataForAggregation=n.transformDataForAggregation;exports.transformDataForGraph=n.transformDataForGraph;exports.transformDataForGraphFromFile=ve.transformDataForGraphFromFile;exports.validateConfigSchema=o.validateConfigSchema;exports.validateDataSchema=o.validateDataSchema;exports.validateSettingsSchema=o.validateSettingsSchema;exports.getDashboardJSONSchema=e.getDashboardJSONSchema;exports.getDashboardWideToLongFormatJSONSchema=e.getDashboardWideToLongFormatJSONSchema;exports.getDataFiltersSchema=e.getDataFiltersSchema;exports.getDataSchema=e.getDataSchema;exports.getDataSelectionSchema=e.getDataSelectionSchema;exports.getDataSettingsSchema=e.getDataSettingsSchema;exports.getDataTransformSchema=e.getDataTransformSchema;exports.getFiltersSchema=e.getFiltersSchema;exports.getGraphDataConfigurationSchema=e.getGraphDataConfigurationSchema;exports.getGriddedGraphJSONSchema=e.getGriddedGraphJSONSchema;exports.getReadableHeaderSchema=e.getReadableHeaderSchema;exports.getSettingsSchema=e.getSettingsSchema;exports.getSingleGraphJSONSchema=e.getSingleGraphJSONSchema;exports.graphList=Pe.graphList;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { GroupedBarGraph as e, SimpleBarGraph as a, StackedBarGraph as t } from "./BarGraph.js";
2
- import { C as p } from "./index-leTnKT2q.js";
2
+ import { C as p } from "./index-Ceppbd8C.js";
3
3
  import { DonutChart as h } from "./DonutChart.js";
4
4
  import { DumbbellChart as x } from "./DumbbellChart.js";
5
5
  import { BeeSwarmChart as s } from "./BeeSwarmChart.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/data-viz",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "browser": "./dist/index.umd.js",
@@ -1 +0,0 @@
1
- {"version":3,"file":"XAxesLabels-D5X8jngD.cjs","sources":["../src/Components/Elements/Axes/XAxesLabels.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface Props {\r\n value: number | string;\r\n y: number;\r\n x: number;\r\n width: number;\r\n height: number;\r\n style?: React.CSSProperties;\r\n className?: string;\r\n alignment?: 'top' | 'bottom';\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function XAxesLabels(props: Props) {\r\n const {\r\n value,\r\n y,\r\n x,\r\n style,\r\n className,\r\n width,\r\n height,\r\n alignment = 'top',\r\n animate,\r\n isInView,\r\n } = props;\r\n return (\r\n <motion.g\r\n key={y}\r\n variants={{\r\n initial: {\r\n x,\r\n y,\r\n },\r\n whileInView: {\r\n x,\r\n y,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n <foreignObject width={width} height={height} y={0} x={0}>\r\n <div\r\n className={`flex flex-col items-center h-full ${\r\n alignment === 'top' ? 'justify-start' : 'justify-end'\r\n }`}\r\n style={{\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n justifyContent: alignment === 'top' ? 'flex-start' : 'flex-end',\r\n height: '100%',\r\n }}\r\n >\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs m-0 py-0 px-1.5 text-center leading-none',\r\n className,\r\n )}\r\n style={{ textAlign: 'center', padding: '0 6px', ...style }}\r\n >\r\n {value}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </motion.g>\r\n );\r\n}\r\n"],"names":["XAxesLabels","props","$","_c","value","y","x","style","className","width","height","alignment","t0","animate","isInView","undefined","t1","t2","duration","t3","transition","t4","initial","whileInView","t5","t6","opacity","t7","t8","t9","display","flexDirection","alignItems","justifyContent","t10","cn","t11","textAlign","padding","t12","t13","t14","jsx","t15","motion"],"mappings":"gGAkBO,SAAAA,EAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,MAAAA,EAAAC,EAAAA,EAAAC,EA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A,EAAA,IAAAyC,EAAA,OAAAzC,EAAA,EAAA,IAAAuC,GAAAvC,EAAA,EAAA,IAAAmB,GAAAnB,EAAA,EAAA,IAAAsB,GAAAtB,EAAA,EAAA,IAAAuB,GAAAvB,QAAAG,GAxClBsC,EAAAD,EAAAA,kBAAAA,IAAAE,EAAAA,OAAA,EAAA,CAEY,SAAAvB,EAWF,QAAA,UACC,QAAAG,EACH,KAAAC,EAENgB,YAhBKpC,CAwCP,EAAWH,MAAAuC,EAAAvC,MAAAmB,EAAAnB,MAAAsB,EAAAtB,MAAAuB,EAAAvB,MAAAG,EAAAH,MAAAyC,GAAAA,EAAAzC,EAAA,EAAA,EAzCXyC,CAyCW"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"XAxesLabels-DNO0KmjL.js","sources":["../src/Components/Elements/Axes/XAxesLabels.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface Props {\r\n value: number | string;\r\n y: number;\r\n x: number;\r\n width: number;\r\n height: number;\r\n style?: React.CSSProperties;\r\n className?: string;\r\n alignment?: 'top' | 'bottom';\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function XAxesLabels(props: Props) {\r\n const {\r\n value,\r\n y,\r\n x,\r\n style,\r\n className,\r\n width,\r\n height,\r\n alignment = 'top',\r\n animate,\r\n isInView,\r\n } = props;\r\n return (\r\n <motion.g\r\n key={y}\r\n variants={{\r\n initial: {\r\n x,\r\n y,\r\n },\r\n whileInView: {\r\n x,\r\n y,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n <foreignObject width={width} height={height} y={0} x={0}>\r\n <div\r\n className={`flex flex-col items-center h-full ${\r\n alignment === 'top' ? 'justify-start' : 'justify-end'\r\n }`}\r\n style={{\r\n display: 'flex',\r\n flexDirection: 'column',\r\n alignItems: 'center',\r\n justifyContent: alignment === 'top' ? 'flex-start' : 'flex-end',\r\n height: '100%',\r\n }}\r\n >\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs m-0 py-0 px-1.5 text-center leading-none',\r\n className,\r\n )}\r\n style={{ textAlign: 'center', padding: '0 6px', ...style }}\r\n >\r\n {value}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </motion.g>\r\n );\r\n}\r\n"],"names":["XAxesLabels","props","$","_c","value","y","x","style","className","width","height","alignment","t0","animate","isInView","undefined","t1","t2","duration","t3","transition","t4","initial","whileInView","t5","t6","opacity","t7","t8","t9","display","flexDirection","alignItems","justifyContent","t10","cn","t11","textAlign","padding","t12","t13","t14","jsx","t15","motion"],"mappings":";;AAkBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,OAAAA;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,WAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,WAAAC;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAWIb,GAHFU,IAAAC,MAAAG,SAAA,QAAAH;AAAiB,MAAAI;AAAA,EAAAd,EAAA,CAAA,MAAAI,KAAAJ,SAAAG,KAQJW,IAAA;AAAA,IAAAV,GAAAA;AAAAA,IAAAD,GAAAA;AAAAA,EAAAA,GAGRH,OAAAI,GAAAJ,OAAAG,GAAAH,OAAAc,KAAAA,IAAAd,EAAA,CAAA;AAAA,MAAAe;AAAA,EAAAf,EAAA,CAAA,MAAAW,EAAAK,YAIaD,IAAA;AAAA,IAAAC,UAAYL,EAAOK;AAAAA,EAAAA,GAAWhB,EAAA,CAAA,IAAAW,EAAAK,UAAAhB,OAAAe,KAAAA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H,QAAAuC,GAAAvC,QAAAmB,GAAAnB,QAAAsB,GAAAtB,QAAAuB,GAAAvB,QAAAG,GAAAH,QAAAyC,KAAAA,IAAAzC,EAAA,EAAA,GAzCXyC;AAyCW;"}
@@ -1,2 +0,0 @@
1
- "use strict";const m=require("./index-CHPV5EwG-CTPQjnHt.cjs"),I=require("./proxy-BxvUI_9l.cjs");function N(V){const e=m.compilerRuntimeExports.c(35),{value:h,y:i,x:t,style:g,className:j,width:w,height:E,alignment:v,animate:l,isInView:A}=V,d=v===void 0?"right":v;let n;e[0]!==t||e[1]!==i?(n={y:i,x:t},e[0]=t,e[1]=i,e[2]=n):n=e[2];let s;e[3]!==l.duration?(s={duration:l.duration},e[3]=l.duration,e[4]=s):s=e[4];let r;e[5]!==s||e[6]!==t||e[7]!==i?(r={y:i,x:t,transition:s},e[5]=s,e[6]=t,e[7]=i,e[8]=r):r=e[8];let a;e[9]!==n||e[10]!==r?(a={initial:n,whileInView:r},e[9]=n,e[10]=r,e[11]=a):a=e[11];const R=A?"whileInView":"initial";let o;e[12]!==l.duration?(o={opacity:0,transition:{duration:l.duration}},e[12]=l.duration,e[13]=o):o=e[13];let p;e[14]===Symbol.for("react.memo_cache_sentinel")?(p={display:"flex",flexDirection:"column",justifyContent:"center",height:"100%"},e[14]=p):p=e[14];const b=`text-${d}`;let x;e[15]!==j||e[16]!==b?(x=m.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs m-0 py-0 px-1.5 leading-none",b,j),e[15]=j,e[16]=b,e[17]=x):x=e[17];let c;e[18]!==d||e[19]!==g?(c={textAlign:d,padding:"0 6px",...g},e[18]=d,e[19]=g,e[20]=c):c=e[20];let f;e[21]!==c||e[22]!==x||e[23]!==h?(f=m.jsxRuntimeExports.jsx("div",{className:"flex flex-col justify-center h-full",style:p,children:m.jsxRuntimeExports.jsx("p",{className:x,style:c,children:h})}),e[21]=c,e[22]=x,e[23]=h,e[24]=f):f=e[24];let u;e[25]!==E||e[26]!==f||e[27]!==w?(u=m.jsxRuntimeExports.jsx("foreignObject",{y:0,x:0,width:w,height:E,children:f}),e[25]=E,e[26]=f,e[27]=w,e[28]=u):u=e[28];let y;return e[29]!==u||e[30]!==a||e[31]!==R||e[32]!==o||e[33]!==t?(y=m.jsxRuntimeExports.jsx(I.motion.g,{variants:a,initial:"initial",animate:R,exit:o,children:u},t),e[29]=u,e[30]=a,e[31]=R,e[32]=o,e[33]=t,e[34]=y):y=e[34],y}exports.YAxesLabels=N;
2
- //# sourceMappingURL=YAxesLabels-DcS85Beo.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YAxesLabels-DcS85Beo.cjs","sources":["../src/Components/Elements/Axes/YAxesLabels.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface Props {\r\n value: number | string;\r\n y: number;\r\n x: number;\r\n width: number;\r\n height: number;\r\n style?: React.CSSProperties;\r\n className?: string;\r\n alignment?: 'left' | 'right' | 'center';\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function YAxesLabels(props: Props) {\r\n const {\r\n value,\r\n y,\r\n x,\r\n style,\r\n className,\r\n width,\r\n height,\r\n alignment = 'right',\r\n animate,\r\n isInView,\r\n } = props;\r\n return (\r\n <motion.g\r\n key={x}\r\n variants={{\r\n initial: {\r\n y,\r\n x,\r\n },\r\n whileInView: {\r\n y,\r\n x,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n <foreignObject y={0} x={0} width={width} height={height}>\r\n <div\r\n className='flex flex-col justify-center h-full'\r\n style={{\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n height: '100%',\r\n }}\r\n >\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs m-0 py-0 px-1.5 leading-none',\r\n `text-${alignment}`,\r\n className,\r\n )}\r\n style={{ textAlign: alignment, padding: '0 6px', ...style }}\r\n >\r\n {value}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </motion.g>\r\n );\r\n}\r\n"],"names":["YAxesLabels","props","$","_c","value","y","x","style","className","width","height","alignment","t0","animate","isInView","undefined","t1","t2","duration","t3","transition","t4","initial","whileInView","t5","t6","opacity","t7","Symbol","for","display","flexDirection","justifyContent","t8","t9","cn","t10","textAlign","padding","t11","jsx","t12","t13","motion"],"mappings":"gGAkBO,SAAAA,EAAAC,EAAA,CAAA,MAAAC,EAAAC,EAAAA,uBAAAA,EAAA,EAAA,EACL,CAAAC,MAAAA,EAAAC,EAAAA,EAAAC,EAAAA,EAAAC,MAAAA,EAAAC,UAAAA,EAAAC,MAAAA,EAAAC,OAAAA,EAAAC,UAAAC,EAAAC,QAAAA,EAAAC,SAAAA,CAAAA,EAWIb,EAHFU,EAAAC,IAAAG,OAAA,QAAAH,EAAmB,IAAAI,EAAAd,EAAA,CAAA,IAAAI,GAAAJ,OAAAG,GAQNW,EAAA,CAAAX,EAAAA,EAAAC,EAAAA,CAAAA,EAGRJ,KAAAI,EAAAJ,KAAAG,EAAAH,KAAAc,GAAAA,EAAAd,EAAA,CAAA,EAAA,IAAAe,EAAAf,EAAA,CAAA,IAAAW,EAAAK,UAIaD,EAAA,CAAAC,SAAYL,EAAOK,QAAAA,EAAWhB,EAAA,CAAA,EAAAW,EAAAK,SAAAhB,KAAAe,GAAAA,EAAAf,EAAA,CAAA,EAAA,IAAAiB,EAAAjB,EAAA,CAAA,IAAAe,GAAAf,OAAAI,GAAAJ,EAAA,CAAA,IAAAG,GAH/Bc,EAAA,CAAAd,EAAAA,EAAAC,EAAAA,EAAAc,WAGCH,CAAAA,EACbf,KAAAe,EAAAf,KAAAI,EAAAJ,KAAAG,EAAAH,KAAAiB,GAAAA,EAAAjB,EAAA,CAAA,EAAA,IAAAmB,EAA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AkC,EAAAlC,MAAAgC,EAAAhC,MAAAE,EAAAF,MAAAqC,GAAAA,EAAArC,EAAA,EAAA,EAAA,IAAAuC,EAAAvC,EAAA,EAAA,IAAAQ,GAAAR,QAAAqC,GAAArC,EAAA,EAAA,IAAAO,GApBRgC,EAAAD,EAAAA,kBAAAA,IAAA,iBAAkB,EAAA,EAAM,EAAA,EAAU/B,MAAAA,EAAeC,OAAAA,EAC/C6B,SAAAA,CAAAA,CAoBF,EAAgBrC,MAAAQ,EAAAR,MAAAqC,EAAArC,MAAAO,EAAAP,MAAAuC,GAAAA,EAAAvC,EAAA,EAAA,EAAA,IAAAwC,EAAA,OAAAxC,EAAA,EAAA,IAAAuC,GAAAvC,EAAA,EAAA,IAAAmB,GAAAnB,EAAA,EAAA,IAAAsB,GAAAtB,EAAA,EAAA,IAAAuB,GAAAvB,QAAAI,GAtClBoC,EAAAF,EAAAA,kBAAAA,IAAAG,EAAAA,OAAA,EAAA,CAEY,SAAAtB,EAWF,QAAA,UACC,QAAAG,EACH,KAAAC,EAENgB,YAhBKnC,CAsCP,EAAWJ,MAAAuC,EAAAvC,MAAAmB,EAAAnB,MAAAsB,EAAAtB,MAAAuB,EAAAvB,MAAAI,EAAAJ,MAAAwC,GAAAA,EAAAxC,EAAA,EAAA,EAvCXwC,CAuCW"}
@@ -1,70 +0,0 @@
1
- import { c as E, m as R, j as y } from "./index-CHPV5EwG-Curnpaqc.js";
2
- import { m as Y } from "./proxy-BxkFHwUw.js";
3
- function k(V) {
4
- const t = E.c(35), {
5
- value: h,
6
- y: i,
7
- x: e,
8
- style: g,
9
- className: j,
10
- width: w,
11
- height: v,
12
- alignment: N,
13
- animate: l,
14
- isInView: A
15
- } = V, d = N === void 0 ? "right" : N;
16
- let n;
17
- t[0] !== e || t[1] !== i ? (n = {
18
- y: i,
19
- x: e
20
- }, t[0] = e, t[1] = i, t[2] = n) : n = t[2];
21
- let s;
22
- t[3] !== l.duration ? (s = {
23
- duration: l.duration
24
- }, t[3] = l.duration, t[4] = s) : s = t[4];
25
- let a;
26
- t[5] !== s || t[6] !== e || t[7] !== i ? (a = {
27
- y: i,
28
- x: e,
29
- transition: s
30
- }, t[5] = s, t[6] = e, t[7] = i, t[8] = a) : a = t[8];
31
- let r;
32
- t[9] !== n || t[10] !== a ? (r = {
33
- initial: n,
34
- whileInView: a
35
- }, t[9] = n, t[10] = a, t[11] = r) : r = t[11];
36
- const b = A ? "whileInView" : "initial";
37
- let o;
38
- t[12] !== l.duration ? (o = {
39
- opacity: 0,
40
- transition: {
41
- duration: l.duration
42
- }
43
- }, t[12] = l.duration, t[13] = o) : o = t[13];
44
- let u;
45
- t[14] === Symbol.for("react.memo_cache_sentinel") ? (u = {
46
- display: "flex",
47
- flexDirection: "column",
48
- justifyContent: "center",
49
- height: "100%"
50
- }, t[14] = u) : u = t[14];
51
- const I = `text-${d}`;
52
- let c;
53
- t[15] !== j || t[16] !== I ? (c = R("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs m-0 py-0 px-1.5 leading-none", I, j), t[15] = j, t[16] = I, t[17] = c) : c = t[17];
54
- let f;
55
- t[18] !== d || t[19] !== g ? (f = {
56
- textAlign: d,
57
- padding: "0 6px",
58
- ...g
59
- }, t[18] = d, t[19] = g, t[20] = f) : f = t[20];
60
- let m;
61
- t[21] !== f || t[22] !== c || t[23] !== h ? (m = /* @__PURE__ */ y.jsx("div", { className: "flex flex-col justify-center h-full", style: u, children: /* @__PURE__ */ y.jsx("p", { className: c, style: f, children: h }) }), t[21] = f, t[22] = c, t[23] = h, t[24] = m) : m = t[24];
62
- let x;
63
- t[25] !== v || t[26] !== m || t[27] !== w ? (x = /* @__PURE__ */ y.jsx("foreignObject", { y: 0, x: 0, width: w, height: v, children: m }), t[25] = v, t[26] = m, t[27] = w, t[28] = x) : x = t[28];
64
- let p;
65
- return t[29] !== x || t[30] !== r || t[31] !== b || t[32] !== o || t[33] !== e ? (p = /* @__PURE__ */ y.jsx(Y.g, { variants: r, initial: "initial", animate: b, exit: o, children: x }, e), t[29] = x, t[30] = r, t[31] = b, t[32] = o, t[33] = e, t[34] = p) : p = t[34], p;
66
- }
67
- export {
68
- k as Y
69
- };
70
- //# sourceMappingURL=YAxesLabels-Dnnng49-.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"YAxesLabels-Dnnng49-.js","sources":["../src/Components/Elements/Axes/YAxesLabels.tsx"],"sourcesContent":["import { cn } from '@undp/design-system-react/cn';\r\nimport { motion } from 'motion/react';\r\n\r\nimport { AnimateDataType } from '@/Types';\r\n\r\ninterface Props {\r\n value: number | string;\r\n y: number;\r\n x: number;\r\n width: number;\r\n height: number;\r\n style?: React.CSSProperties;\r\n className?: string;\r\n alignment?: 'left' | 'right' | 'center';\r\n animate: AnimateDataType;\r\n isInView: boolean;\r\n}\r\n\r\nexport function YAxesLabels(props: Props) {\r\n const {\r\n value,\r\n y,\r\n x,\r\n style,\r\n className,\r\n width,\r\n height,\r\n alignment = 'right',\r\n animate,\r\n isInView,\r\n } = props;\r\n return (\r\n <motion.g\r\n key={x}\r\n variants={{\r\n initial: {\r\n y,\r\n x,\r\n },\r\n whileInView: {\r\n y,\r\n x,\r\n transition: { duration: animate.duration },\r\n },\r\n }}\r\n initial='initial'\r\n animate={isInView ? 'whileInView' : 'initial'}\r\n exit={{ opacity: 0, transition: { duration: animate.duration } }}\r\n >\r\n <foreignObject y={0} x={0} width={width} height={height}>\r\n <div\r\n className='flex flex-col justify-center h-full'\r\n style={{\r\n display: 'flex',\r\n flexDirection: 'column',\r\n justifyContent: 'center',\r\n height: '100%',\r\n }}\r\n >\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs m-0 py-0 px-1.5 leading-none',\r\n `text-${alignment}`,\r\n className,\r\n )}\r\n style={{ textAlign: alignment, padding: '0 6px', ...style }}\r\n >\r\n {value}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </motion.g>\r\n );\r\n}\r\n"],"names":["YAxesLabels","props","$","_c","value","y","x","style","className","width","height","alignment","t0","animate","isInView","undefined","t1","t2","duration","t3","transition","t4","initial","whileInView","t5","t6","opacity","t7","Symbol","for","display","flexDirection","justifyContent","t8","t9","cn","t10","textAlign","padding","t11","jsx","t12","t13","motion"],"mappings":";;AAkBO,SAAAA,EAAAC,GAAA;AAAA,QAAAC,IAAAC,EAAAA,EAAA,EAAA,GACL;AAAA,IAAAC,OAAAA;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,GAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,WAAAA;AAAAA,IAAAC,OAAAA;AAAAA,IAAAC,QAAAA;AAAAA,IAAAC,WAAAC;AAAAA,IAAAC,SAAAA;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAWIb,GAHFU,IAAAC,MAAAG,SAAA,UAAAH;AAAmB,MAAAI;AAAA,EAAAd,EAAA,CAAA,MAAAI,KAAAJ,SAAAG,KAQNW,IAAA;AAAA,IAAAX,GAAAA;AAAAA,IAAAC,GAAAA;AAAAA,EAAAA,GAGRJ,OAAAI,GAAAJ,OAAAG,GAAAH,OAAAc,KAAAA,IAAAd,EAAA,CAAA;AAAA,MAAAe;AAAA,EAAAf,EAAA,CAAA,MAAAW,EAAAK,YAIaD,IAAA;AAAA,IAAAC,UAAYL,EAAOK;AAAAA,EAAAA,GAAWhB,EAAA,CAAA,IAAAW,EAAAK,UAAAhB,OAAAe,KAAAA,IAAAf,EAAA,CAAA;AAAA,MAAAiB;AAAA,EAAAjB,EAAA,CAAA,MAAAe,KAAAf,SAAAI,KAAAJ,EAAA,CAAA,MAAAG,KAH/Bc,IAAA;AAAA,IAAAd,GAAAA;AAAAA,IAAAC,GAAAA;AAAAA,IAAAc,YAGCH;AAAAA,EAAAA,GACbf,OAAAe,GAAAf,OAAAI,GAAAJ,OAAAG,GAAAH,OAAAiB,KAAAA,IAAAjB,EAAA,CAAA;AAAA,MAAAmB;AAAA,EAAAnB,EAAA,CAAA,MAAAc,KAAAd,UAAAiB,KATO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P,UAAAa,gBAAAA,EAAAA,IAAA,KAAA,EACa,WAAAN,GAKJ,OAAAE,GAENhC,aACH,GACF,GAAMF,QAAAkC,GAAAlC,QAAAgC,GAAAhC,QAAAE,GAAAF,QAAAqC,KAAAA,IAAArC,EAAA,EAAA;AAAA,MAAAuC;AAAA,EAAAvC,EAAA,EAAA,MAAAQ,KAAAR,UAAAqC,KAAArC,EAAA,EAAA,MAAAO,KApBRgC,IAAAD,gBAAAA,EAAAA,IAAA,mBAAkB,GAAA,GAAM,GAAA,GAAU/B,OAAAA,GAAeC,QAAAA,GAC/C6B,UAAAA,EAAAA,CAoBF,GAAgBrC,QAAAQ,GAAAR,QAAAqC,GAAArC,QAAAO,GAAAP,QAAAuC,KAAAA,IAAAvC,EAAA,EAAA;AAAA,MAAAwC;AAAA,SAAAxC,EAAA,EAAA,MAAAuC,KAAAvC,EAAA,EAAA,MAAAmB,KAAAnB,EAAA,EAAA,MAAAsB,KAAAtB,EAAA,EAAA,MAAAuB,KAAAvB,UAAAI,KAtClBoC,IAAAF,gBAAAA,EAAAA,IAAAG,EAAA,GAAA,EAEY,UAAAtB,GAWF,SAAA,WACC,SAAAG,GACH,MAAAC,GAENgB,eAhBKnC,CAsCP,GAAWJ,QAAAuC,GAAAvC,QAAAmB,GAAAnB,QAAAsB,GAAAtB,QAAAuB,GAAAvB,QAAAI,GAAAJ,QAAAwC,KAAAA,IAAAxC,EAAA,EAAA,GAvCXwC;AAuCW;"}
@@ -1,2 +0,0 @@
1
- "use strict";const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),M=require("react"),Le=require("./index-CSNtgibC.cjs"),Be=require("./index-Cno4Q0YE.cjs"),He=require("./Modal-JW_IExO3.cjs"),Ge=require("./Spinner-DRMBUsX7.cjs"),Pe=require("./Tooltip-4dJo4_AF.cjs"),Te=require("./numberFormattingFunction-02t-wJta.cjs"),$e=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs"),ze=require("./Colors.cjs"),ke=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Fe=require("./string2HTML-CPGr_I5E.cjs"),Ie=require("./pow-DgrUorRi.cjs"),Se=require("./y-QcCbqrzx.cjs"),We=require("./GraphFooter.cjs"),Ue=require("./GraphHeader.cjs"),Xe=require("./ColorLegendWithMouseOver.cjs"),Ye=require("./EmptyState-sAEZ_5rU.cjs"),Ne=require("./uniqBy-O05lp2S5.cjs"),Ve=require("./GraphContainer-d8A46BK2.cjs");function we(t,e){let o,d;if(e===void 0)for(const u of t)u!=null&&(o===void 0?u>=u&&(o=d=u):(o>u&&(o=u),d<u&&(d=u)));else{let u=-1;for(let x of t)(x=e(x,++u,t))!=null&&(o===void 0?x>=x&&(o=d=x):(o>x&&(o=x),d<x&&(d=x)))}return[o,d]}const _e=t=>{const e=n.compilerRuntimeExports.c(104),{data:o,colors:d,leftMargin:u,width:x,height:$,colorDomain:T,selectedColor:F,rightMargin:je,topMargin:be,bottomMargin:N,showLabels:l,tooltip:I,onSeriesMouseOver:w,showValues:k,suffix:W,prefix:te,highlightedDataPoints:xe,onSeriesMouseClick:oe,maxRadiusValue:V,radius:s,resetSelectionOnDoubleClick:ge,detailsOnClick:b,styles:D,classNames:y,dimmedOpacity:U,precision:L}=t,Ee=M.useRef(null),[ve,Ce]=M.useState(void 0),[R,X]=M.useState(void 0),[S,De]=M.useState(void 0),[ie,ne]=M.useState(void 0),[se,Me]=M.useState(void 0),[re,h]=M.useState(null);let c;e[0]!==N||e[1]!==u||e[2]!==je||e[3]!==be?(c={top:be,bottom:N,left:u,right:je},e[0]=N,e[1]=u,e[2]=je,e[3]=be,e[4]=c):c=e[4];const Y=c,_=x-Y.left-Y.right,B=$-Y.top-Y.bottom;let le;e[5]!==o?(le=o.filter(Ae).length===0?o:Be.orderBy(o.filter(Je),"radius","asc"),e[5]=o,e[6]=le):le=e[6];const H=le;let ce;e[7]!==o||e[8]!==V||e[9]!==s?(ce=o.filter(Ke).length!==o.length?Ie.sqrt().domain([0,ke.checkIfNullOrUndefined(V)?Math.max(...o.map(Qe).filter(Ze)):V]).range([.25,s]).nice():void 0,e[7]=o,e[8]=V,e[9]=s,e[10]=ce):ce=e[10];const r=ce;let ae;e[11]!==H||e[12]!==B||e[13]!==_||e[14]!==s||e[15]!==r?(ae=()=>{(()=>{const a=[...H];Se.forceSimulation(a).force("y",Se.forceY(g=>B/2).strength(1)).force("x",Se.forceX(g=>_/2).strength(1)).force("collide",Se.forceCollide(g=>r?r(g.size||0)+1:s+1)).force("charge",Se.forceManyBody().strength(-15)).alphaDecay(.05).tick(1e4).on("tick",()=>{h(a)}).on("end",()=>{h(a);const g=we(a,f=>f.x-(r?r(f.size||0)+1:s+1))[0]||0,p=we(a,f=>f.y-(r?r(f.size||0)+1:s+1))[0]||0,z=we(a,f=>f.x+(r?r(f.size||0)+1:s+1))[1]||0,E=we(a,f=>f.y+(r?r(f.size||0)+1:s+1))[1]||0;De([g,p,g<0?z-g:z,p<0?E-p:E])})})()},e[11]=H,e[12]=B,e[13]=_,e[14]=s,e[15]=r,e[16]=ae):ae=e[16];let ue;e[17]!==o||e[18]!==H||e[19]!==B||e[20]!==_||e[21]!==V||e[22]!==s||e[23]!==r?(ue=[o,s,B,_,V,H,r],e[17]=o,e[18]=H,e[19]=B,e[20]=_,e[21]=V,e[22]=s,e[23]=r,e[24]=ue):ue=e[24],M.useEffect(ae,ue);let fe;e[25]!==w?(fe=(i,a)=>{Ce(a),Me(i.clientY),ne(i.clientX),w?.(a)},e[25]=w,e[26]=fe):fe=e[26];const A=fe;let J;e[27]===Symbol.for("react.memo_cache_sentinel")?(J=(i,a)=>{Ce(a),Me(i.clientY),ne(i.clientX)},e[27]=J):J=e[27];const Re=J;let K;e[28]!==b||e[29]!==R||e[30]!==oe||e[31]!==ge?(K=i=>{(oe||b)&&(R===i.label&&ge?(X(void 0),oe?.(void 0)):(X(i.label),oe?.(i)))},e[28]=b,e[29]=R,e[30]=oe,e[31]=ge,e[32]=K):K=e[32];const G=K;let de;e[33]!==w?(de=()=>{Ce(void 0),ne(void 0),Me(void 0),w?.(void 0)},e[33]=w,e[34]=de):de=e[34];const C=de;let O;e[35]!==T||e[36]!==d||e[37]!==o?(O=i=>o.filter(et).length===0?d[0]:i.color?d[T.indexOf(i.color)]:ze.Colors.gray,e[35]=T,e[36]=d,e[37]=o,e[38]=O):O=e[38];const Q=O;let he;e[39]!==T||e[40]!==d||e[41]!==U||e[42]!==xe||e[43]!==F?(he=i=>F?i.color&&d[T.indexOf(i.color)]===F?1:U:xe.length!==0?xe.indexOf(i.label)!==-1?.85:U:.85,e[39]=T,e[40]=d,e[41]=U,e[42]=xe,e[43]=F,e[44]=he):he=e[44];const Z=he;if(!re){const i=`${x}px`,a=`${$}px`;let j;e[45]!==i||e[46]!==a?(j={width:i,height:a},e[45]=i,e[46]=a,e[47]=j):j=e[47];let g;e[48]===Symbol.for("react.memo_cache_sentinel")?(g=n.jsxRuntimeExports.jsx("div",{className:"flex m-auto items-center justify-center p-0 leading-none text-base h-40",children:n.jsxRuntimeExports.jsx(Ge.w,{})}),e[48]=g):g=e[48];let p;return e[49]!==j?(p=n.jsxRuntimeExports.jsx("div",{style:j,children:g}),e[49]=j,e[50]=p):p=e[50],p}if(S){const i=`${x}px`,a=`${$}px`,j=`${S[0]>0?0:S[0]} ${S[1]>0?0:S[1]} ${x<S[2]?S[2]:x} ${$<S[3]?S[3]:$}`,g=`translate(${Y.left},${Y.top})`;let p;if(e[51]!==y?.graphObjectValues||e[52]!==re||e[53]!==Q||e[54]!==Z||e[55]!==G||e[56]!==A||e[57]!==C||e[58]!==L||e[59]!==te||e[60]!==s||e[61]!==r||e[62]!==l||e[63]!==k||e[64]!==D?.graphObjectValues||e[65]!==W){let pe;e[67]!==y?.graphObjectValues||e[68]!==Q||e[69]!==Z||e[70]!==G||e[71]!==A||e[72]!==C||e[73]!==L||e[74]!==te||e[75]!==s||e[76]!==r||e[77]!==l||e[78]!==k||e[79]!==D?.graphObjectValues||e[80]!==W?(pe=v=>{const P=Q(v),me=Z(v),m=r?r(v.size||0):s,ye=m>20&&(l||k);return n.jsxRuntimeExports.jsxs("g",{className:"undp-viz-g-with-hover",opacity:me,transform:`translate(${v.x},${v.y})`,onMouseEnter:Oe=>A(Oe,v),onMouseMove:Oe=>Re(Oe,v),onClick:()=>G(v),onMouseLeave:C,children:[n.jsxRuntimeExports.jsx("circle",{cx:0,cy:0,r:m,fill:P}),(ye||k)&&v.size!==void 0&&v.size!==null&&n.jsxRuntimeExports.jsx("g",{children:n.jsxRuntimeExports.jsx("foreignObject",{y:0-m,x:0-m,width:2*m,height:2*m,children:n.jsxRuntimeExports.jsxs("div",{className:"flex flex-col justify-center items-center h-full py-0 px-3",children:[l&&n.jsxRuntimeExports.jsx("p",{className:n.mo("text-center leading-[1.25] overflow-hidden m-0 circle-packing-label",y?.graphObjectValues),style:{fontSize:`${Math.min(Math.max(Math.round(m/4),12),Math.max(Math.round(m*12/`${v.label}`.length),12),14)}px`,WebkitLineClamp:m*2<60?1:m*2<75?2:m*2<100?3:void 0,display:"-webkit-box",WebkitBoxOrient:"vertical",color:$e.getTextColorBasedOnBgColor(P),hyphens:"auto",...D?.graphObjectValues||{}},children:v.label}),k&&n.jsxRuntimeExports.jsx("p",{className:"text-center font-bold leading-[1.25] w-full m-0 circle-packing-value",style:{fontSize:`${Math.min(Math.max(Math.round(m/4),14),14)}px`,color:$e.getTextColorBasedOnBgColor(P)},children:Te.numberFormattingFunction(v.size,"NA",L,te,W)})]})})})]},v.label)},e[67]=y?.graphObjectValues,e[68]=Q,e[69]=Z,e[70]=G,e[71]=A,e[72]=C,e[73]=L,e[74]=te,e[75]=s,e[76]=r,e[77]=l,e[78]=k,e[79]=D?.graphObjectValues,e[80]=W,e[81]=pe):pe=e[81],p=re.map(pe),e[51]=y?.graphObjectValues,e[52]=re,e[53]=Q,e[54]=Z,e[55]=G,e[56]=A,e[57]=C,e[58]=L,e[59]=te,e[60]=s,e[61]=r,e[62]=l,e[63]=k,e[64]=D?.graphObjectValues,e[65]=W,e[66]=p}else p=e[66];let z;e[82]!==g||e[83]!==p?(z=n.jsxRuntimeExports.jsx("g",{transform:g,children:p}),e[82]=g,e[83]=p,e[84]=z):z=e[84];let E;e[85]!==i||e[86]!==a||e[87]!==j||e[88]!==z?(E=n.jsxRuntimeExports.jsx("svg",{width:i,height:a,viewBox:j,direction:"ltr",ref:Ee,children:z}),e[85]=i,e[86]=a,e[87]=j,e[88]=z,e[89]=E):E=e[89];let f;e[90]!==y?.tooltip||e[91]!==ie||e[92]!==se||e[93]!==ve||e[94]!==D?.tooltip||e[95]!==I?(f=ve&&I&&ie&&se&&n.jsxRuntimeExports.jsx(Pe.Tooltip,{data:ve,body:I,xPos:ie,yPos:se,backgroundStyle:D?.tooltip,className:y?.tooltip}),e[90]=y?.tooltip,e[91]=ie,e[92]=se,e[93]=ve,e[94]=D?.tooltip,e[95]=I,e[96]=f):f=e[96];let q;e[97]!==b||e[98]!==R?(q=b&&R!==void 0?n.jsxRuntimeExports.jsx(He.le,{open:R!==void 0,onClose:()=>{X(void 0)},children:n.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof b=="string"?{__html:Fe.string2HTML(b,R)}:void 0,children:typeof b=="function"?b(R):null})}):null,e[97]=b,e[98]=R,e[99]=q):q=e[99];let ee;return e[100]!==E||e[101]!==f||e[102]!==q?(ee=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[E,f,q]}),e[100]=E,e[101]=f,e[102]=q,e[103]=ee):ee=e[103],ee}return null};function Ae(t){return!ke.checkIfNullOrUndefined(t.size)}function Je(t){return!ke.checkIfNullOrUndefined(t.size)}function Ke(t){return t.size===void 0||t.size===null}function Qe(t){return t.size}function Ze(t){return t!=null}function et(t){return t.color}function tt(t){const e=n.compilerRuntimeExports.c(74),{data:o,graphTitle:d,colors:u,suffix:x,sources:$,prefix:T,graphDescription:F,leftMargin:je,rightMargin:be,height:N,width:l,footNote:I,colorDomain:w,colorLegendTitle:k,padding:W,backgroundColor:te,topMargin:xe,bottomMargin:oe,showLabels:V,relativeHeight:s,tooltip:ge,onSeriesMouseOver:b,showColorScale:D,showValues:y,graphID:U,highlightedDataPoints:L,onSeriesMouseClick:Ee,graphDownload:ve,dataDownload:Ce,language:R,showNAColor:X,minHeight:S,theme:De,ariaLabel:ie,radius:ne,maxRadiusValue:se,resetSelectionOnDoubleClick:Me,detailsOnClick:re,styles:h,classNames:c,dimmedOpacity:Y,precision:_}=t,B=x===void 0?"":x,le=T===void 0?"":T,H=je===void 0?0:je,ce=be===void 0?0:be,r=te===void 0?!1:te,ae=xe===void 0?0:xe,ue=oe===void 0?0:oe,fe=V===void 0?!0:V,A=D===void 0?!0:D;let J;e[0]!==L?(J=L===void 0?[]:L,e[0]=L,e[1]=J):J=e[1];const Re=J,K=ve===void 0?!1:ve,G=Ce===void 0?!1:Ce,de=R===void 0?"en":R,C=S===void 0?0:S,O=De===void 0?"light":De,Q=Me===void 0?!0:Me,he=Y===void 0?.3:Y,Z=_===void 0?2:_,[i,a]=M.useState(0),[j,g]=M.useState(0),[p,z]=M.useState(void 0),E=M.useRef(null),f=M.useRef(null);let q,ee;e[2]===Symbol.for("react.memo_cache_sentinel")?(q=()=>{const Oe=new ResizeObserver(qe=>{a(qe[0].target.clientWidth||620),g(qe[0].target.clientHeight||480)});return E.current&&Oe.observe(E.current),()=>Oe.disconnect()},ee=[],e[2]=q,e[3]=ee):(q=e[2],ee=e[3]),M.useEffect(q,ee);const pe=c?.graphContainer,v=h?.graphContainer;let P;e[4]!==c?.description||e[5]!==c?.title||e[6]!==o||e[7]!==G||e[8]!==F||e[9]!==K||e[10]!==d||e[11]!==h?.description||e[12]!==h?.title||e[13]!==l?(P=d||F||K||G?n.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:h?.title,description:h?.description},classNames:{title:c?.title,description:c?.description},graphTitle:d,graphDescription:F,width:l,graphDownload:K?f:void 0,dataDownload:G?o.map(xt).filter(mt).length>0?o.map(pt).filter(ht):o.filter(dt):null}):null,e[4]=c?.description,e[5]=c?.title,e[6]=o,e[7]=G,e[8]=F,e[9]=K,e[10]=d,e[11]=h?.description,e[12]=h?.title,e[13]=l,e[14]=P):P=e[14];let me;e[15]!==ue||e[16]!==c||e[17]!==w||e[18]!==k||e[19]!==u||e[20]!==o||e[21]!==re||e[22]!==he||e[23]!==N||e[24]!==Re||e[25]!==H||e[26]!==se||e[27]!==C||e[28]!==Ee||e[29]!==b||e[30]!==Z||e[31]!==le||e[32]!==ne||e[33]!==s||e[34]!==Q||e[35]!==ce||e[36]!==p||e[37]!==A||e[38]!==fe||e[39]!==X||e[40]!==y||e[41]!==h||e[42]!==B||e[43]!==j||e[44]!==i||e[45]!==O||e[46]!==ge||e[47]!==ae||e[48]!==l?(me=o.length===0?n.jsxRuntimeExports.jsx(Ye.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[A&&o.filter(ft).length!==0?n.jsxRuntimeExports.jsx(Xe.ColorLegendWithMouseOver,{width:l,colorLegendTitle:k,colors:u||ze.Colors[O].categoricalColors.colors,colorDomain:w||Ne.uniqBy(o,"color",!0),setSelectedColor:z,showNAColor:X??!0,isCenter:!0,className:c?.colorLegend}):null,n.jsxRuntimeExports.jsx(Ve.GraphArea,{ref:E,children:i&&j?n.jsxRuntimeExports.jsx(_e,{data:o,colors:o.filter(ut).length===0?u?[u]:[ze.Colors.primaryColors["blue-600"]]:u||ze.Colors[O].categoricalColors.colors,colorDomain:o.filter(at).length===0?[]:w||Ne.uniqBy(o,"color",!0),width:i,height:j,leftMargin:H,rightMargin:ce,topMargin:ae,bottomMargin:ue,showLabels:fe,showValues:y!==!1?o.filter(ct).length!==0:y,selectedColor:p,suffix:B,prefix:le,tooltip:ge,onSeriesMouseOver:b,highlightedDataPoints:Re,onSeriesMouseClick:Ee,theme:O,radius:ne||Math.min(l||i,N||(s?C?(l||i)*s>C?(l||i)*s:C:(l||i)*s:j))*(o.filter(lt).length===0?1:Math.max(...o.map(rt).filter(st)))/(o.filter(nt).length===0?o.length:Le.sum(o.filter(it).map(ot))*1.25),maxRadiusValue:se,resetSelectionOnDoubleClick:Q,detailsOnClick:re,styles:h,classNames:c,dimmedOpacity:he,precision:Z}):null})]}),e[15]=ue,e[16]=c,e[17]=w,e[18]=k,e[19]=u,e[20]=o,e[21]=re,e[22]=he,e[23]=N,e[24]=Re,e[25]=H,e[26]=se,e[27]=C,e[28]=Ee,e[29]=b,e[30]=Z,e[31]=le,e[32]=ne,e[33]=s,e[34]=Q,e[35]=ce,e[36]=p,e[37]=A,e[38]=fe,e[39]=X,e[40]=y,e[41]=h,e[42]=B,e[43]=j,e[44]=i,e[45]=O,e[46]=ge,e[47]=ae,e[48]=l,e[49]=me):me=e[49];let m;e[50]!==c?.footnote||e[51]!==c?.source||e[52]!==I||e[53]!==$||e[54]!==h?.footnote||e[55]!==h?.source||e[56]!==l?(m=$||I?n.jsxRuntimeExports.jsx(We.GraphFooter,{styles:{footnote:h?.footnote,source:h?.source},classNames:{footnote:c?.footnote,source:c?.source},sources:$,footNote:I,width:l}):null,e[50]=c?.footnote,e[51]=c?.source,e[52]=I,e[53]=$,e[54]=h?.footnote,e[55]=h?.source,e[56]=l,e[57]=m):m=e[57];let ye;return e[58]!==ie||e[59]!==r||e[60]!==U||e[61]!==N||e[62]!==de||e[63]!==C||e[64]!==W||e[65]!==s||e[66]!==pe||e[67]!==v||e[68]!==P||e[69]!==me||e[70]!==m||e[71]!==O||e[72]!==l?(ye=n.jsxRuntimeExports.jsxs(Ve.GraphContainer,{className:pe,style:v,id:U,ref:f,"aria-label":ie,backgroundColor:r,theme:O,language:de,minHeight:C,width:l,height:N,relativeHeight:s,padding:W,children:[P,me,m]}),e[58]=ie,e[59]=r,e[60]=U,e[61]=N,e[62]=de,e[63]=C,e[64]=W,e[65]=s,e[66]=pe,e[67]=v,e[68]=P,e[69]=me,e[70]=m,e[71]=O,e[72]=l,e[73]=ye):ye=e[73],ye}function ot(t){return t.size}function it(t){return t.size}function nt(t){return!ke.checkIfNullOrUndefined(t.size)}function st(t){return t!=null}function rt(t){return t.size}function lt(t){return!ke.checkIfNullOrUndefined(t.size)}function ct(t){return t.size}function at(t){return t.color}function ut(t){return t.color}function ft(t){return t.color}function dt(t){return t!==void 0}function ht(t){return t!==void 0}function pt(t){return t.data}function mt(t){return t!==void 0}function xt(t){return t.data}exports.CirclePackingGraph=tt;exports.extent=we;
2
- //# sourceMappingURL=index-DoY3Ga3W.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-DoY3Ga3W.cjs","sources":["../node_modules/d3-array/src/extent.js","../src/Components/Graphs/CirclePackingGraph/Graph.tsx","../src/Components/Graphs/CirclePackingGraph/index.tsx"],"sourcesContent":["export default function extent(values, valueof) {\n let min;\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null) {\n if (min === undefined) {\n if (value >= value) min = max = value;\n } else {\n if (min > value) min = value;\n if (max < value) max = value;\n }\n }\n }\n }\n return [min, max];\n}\n","import { useEffect, useState, useRef } from 'react';\r\nimport { forceCollide, forceManyBody, forceSimulation, forceX, forceY } from 'd3-force';\r\nimport orderBy from 'lodash.orderby';\r\nimport { scaleSqrt } from 'd3-scale';\r\nimport { extent } from 'd3-array';\r\nimport { Modal } from '@undp/design-system-react/Modal';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { Spinner } from '@undp/design-system-react/Spinner';\r\n\r\nimport { ClassNameObject, StyleObject, TreeMapDataType } from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { getTextColorBasedOnBgColor } from '@/Utils/getTextColorBasedOnBgColor';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { string2HTML } from '@/Utils/string2HTML';\r\n\r\ninterface Props {\r\n data: TreeMapDataType[];\r\n colors: string[];\r\n colorDomain: string[];\r\n leftMargin: number;\r\n rightMargin: number;\r\n topMargin: number;\r\n bottomMargin: number;\r\n showLabels: boolean;\r\n showValues: boolean;\r\n width: number;\r\n height: number;\r\n suffix: string;\r\n prefix: string;\r\n selectedColor?: string;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n highlightedDataPoints: (string | number)[];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n theme: 'light' | 'dark';\r\n maxRadiusValue?: number;\r\n radius: number;\r\n resetSelectionOnDoubleClick: boolean;\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n dimmedOpacity: number;\r\n precision: number;\r\n}\r\n\r\ninterface TreeMapDataTypeForBubbleChart extends TreeMapDataType {\r\n x: number;\r\n y: number;\r\n vx: number;\r\n vy: number;\r\n}\r\n\r\nexport const Graph = (props: Props) => {\r\n const {\r\n data,\r\n colors,\r\n leftMargin,\r\n width,\r\n height,\r\n colorDomain,\r\n selectedColor,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n showLabels,\r\n tooltip,\r\n onSeriesMouseOver,\r\n showValues,\r\n suffix,\r\n prefix,\r\n highlightedDataPoints,\r\n onSeriesMouseClick,\r\n maxRadiusValue,\r\n radius,\r\n resetSelectionOnDoubleClick,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n dimmedOpacity,\r\n precision,\r\n } = props;\r\n const svgRef = useRef(null);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [viewPortDimensions, setViewPortDimensions] = useState<\r\n [number, number, number, number] | undefined\r\n >(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const [finalData, setFinalData] = useState<TreeMapDataTypeForBubbleChart[] | null>(null);\r\n\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n\r\n const graphWidth = width - margin.left - margin.right;\r\n const graphHeight = height - margin.top - margin.bottom;\r\n\r\n // Memoize data ordering and radius scale\r\n const dataOrdered =\r\n data.filter(d => !checkIfNullOrUndefined(d.size)).length === 0\r\n ? data\r\n : orderBy(\r\n data.filter(d => !checkIfNullOrUndefined(d.size)),\r\n 'radius',\r\n 'asc',\r\n );\r\n\r\n const radiusScale =\r\n data.filter(d => d.size === undefined || d.size === null).length !== data.length\r\n ? scaleSqrt()\r\n .domain([\r\n 0,\r\n checkIfNullOrUndefined(maxRadiusValue)\r\n ? Math.max(...data.map(d => d.size).filter(d => d !== undefined && d !== null))\r\n : (maxRadiusValue as number),\r\n ])\r\n .range([0.25, radius])\r\n .nice()\r\n : undefined;\r\n\r\n // Memoize simulation setup\r\n useEffect(() => {\r\n const setupSimulation = () => {\r\n const dataTemp = [...dataOrdered];\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const simulation = forceSimulation(dataTemp as any)\r\n .force('y', forceY(_d => graphHeight / 2).strength(1))\r\n .force('x', forceX(_d => graphWidth / 2).strength(1))\r\n .force(\r\n 'collide',\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n forceCollide((d: any) => (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1)),\r\n )\r\n .force('charge', forceManyBody().strength(-15))\r\n .alphaDecay(0.05)\r\n .tick(10000);\r\n\r\n simulation\r\n .on('tick', () => {\r\n setFinalData(dataTemp as TreeMapDataTypeForBubbleChart[]);\r\n })\r\n .on('end', () => {\r\n setFinalData(dataTemp as TreeMapDataTypeForBubbleChart[]);\r\n const xMinExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.x - (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[0] || 0;\r\n const yMinExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.y - (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[0] || 0;\r\n const xMaxExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.x + (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[1] || 0;\r\n const yMaxExtent =\r\n extent(\r\n dataTemp as TreeMapDataTypeForBubbleChart[],\r\n d => d.y + (radiusScale ? radiusScale(d.size || 0) + 1 : radius + 1),\r\n )[1] || 0;\r\n setViewPortDimensions([\r\n xMinExtent,\r\n yMinExtent,\r\n xMinExtent < 0 ? xMaxExtent - xMinExtent : xMaxExtent,\r\n yMinExtent < 0 ? yMaxExtent - yMinExtent : yMaxExtent,\r\n ]);\r\n });\r\n };\r\n\r\n setupSimulation();\r\n }, [data, radius, graphHeight, graphWidth, maxRadiusValue, dataOrdered, radiusScale]);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const handleMouseEnter = (event: any, d: any) => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n };\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const handleMouseMove = (event: any, d: any) => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n };\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const handleClick = (d: any) => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (mouseClickData === d.label && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d.label);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n };\r\n\r\n const handleMouseLeave = () => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n };\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const getCircleColor = (d: any) =>\r\n data.filter(el => el.color).length === 0\r\n ? colors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : colors[colorDomain.indexOf(d.color)];\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n const getOpacity = (d: any) =>\r\n selectedColor\r\n ? d.color\r\n ? colors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedDataPoints.length !== 0\r\n ? highlightedDataPoints.indexOf(d.label) !== -1\r\n ? 0.85\r\n : dimmedOpacity\r\n : 0.85;\r\n\r\n // Render loading state\r\n if (!finalData) {\r\n return (\r\n <div style={{ width: `${width}px`, height: `${height}px` }}>\r\n <div className='flex m-auto items-center justify-center p-0 leading-none text-base h-40'>\r\n <Spinner />\r\n </div>\r\n </div>\r\n );\r\n }\r\n if (viewPortDimensions) {\r\n return (\r\n <>\r\n <svg\r\n width={`${width}px`}\r\n height={`${height}px`}\r\n viewBox={`${viewPortDimensions[0] > 0 ? 0 : viewPortDimensions[0]} ${\r\n viewPortDimensions[1] > 0 ? 0 : viewPortDimensions[1]\r\n } ${width < viewPortDimensions[2] ? viewPortDimensions[2] : width} ${\r\n height < viewPortDimensions[3] ? viewPortDimensions[3] : height\r\n }`}\r\n direction='ltr'\r\n ref={svgRef}\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {finalData.map(d => {\r\n const circleColor = getCircleColor(d);\r\n const opacity = getOpacity(d);\r\n const bubbleRadius = radiusScale ? radiusScale(d.size || 0) : radius;\r\n const showLabel = bubbleRadius > 20 && (showLabels || showValues);\r\n return (\r\n <g\r\n className='undp-viz-g-with-hover'\r\n key={d.label}\r\n opacity={opacity}\r\n transform={`translate(${d.x},${d.y})`}\r\n onMouseEnter={event => handleMouseEnter(event, d)}\r\n onMouseMove={event => handleMouseMove(event, d)}\r\n onClick={() => handleClick(d)}\r\n onMouseLeave={handleMouseLeave}\r\n >\r\n <circle cx={0} cy={0} r={bubbleRadius} fill={circleColor} />\r\n {(showLabel || showValues) && d.size !== undefined && d.size !== null && (\r\n <g>\r\n <foreignObject\r\n y={0 - bubbleRadius}\r\n x={0 - bubbleRadius}\r\n width={2 * bubbleRadius}\r\n height={2 * bubbleRadius}\r\n >\r\n <div className='flex flex-col justify-center items-center h-full py-0 px-3'>\r\n {showLabels && (\r\n <p\r\n className={cn(\r\n 'text-center leading-[1.25] overflow-hidden m-0 circle-packing-label',\r\n classNames?.graphObjectValues,\r\n )}\r\n style={{\r\n fontSize: `${Math.min(\r\n Math.max(Math.round(bubbleRadius / 4), 12),\r\n Math.max(\r\n Math.round((bubbleRadius * 12) / `${d.label}`.length),\r\n 12,\r\n ),\r\n 14,\r\n )}px`,\r\n WebkitLineClamp:\r\n bubbleRadius * 2 < 60\r\n ? 1\r\n : bubbleRadius * 2 < 75\r\n ? 2\r\n : bubbleRadius * 2 < 100\r\n ? 3\r\n : undefined,\r\n display: '-webkit-box',\r\n WebkitBoxOrient: 'vertical',\r\n color: getTextColorBasedOnBgColor(circleColor),\r\n hyphens: 'auto',\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n >\r\n {d.label}\r\n </p>\r\n )}\r\n {showValues && (\r\n <p\r\n className='text-center font-bold leading-[1.25] w-full m-0 circle-packing-value'\r\n style={{\r\n fontSize: `${Math.min(\r\n Math.max(Math.round(bubbleRadius / 4), 14),\r\n 14,\r\n )}px`,\r\n color: getTextColorBasedOnBgColor(circleColor),\r\n }}\r\n >\r\n {numberFormattingFunction(d.size, 'NA', precision, prefix, suffix)}\r\n </p>\r\n )}\r\n </div>\r\n </foreignObject>\r\n </g>\r\n )}\r\n </g>\r\n );\r\n })}\r\n </g>\r\n </svg>\r\n {mouseOverData && tooltip && eventX && eventY && (\r\n <Tooltip\r\n data={mouseOverData}\r\n body={tooltip}\r\n xPos={eventX}\r\n yPos={eventY}\r\n backgroundStyle={styles?.tooltip}\r\n className={classNames?.tooltip}\r\n />\r\n )}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <Modal\r\n open={mouseClickData !== undefined}\r\n onClose={() => {\r\n setMouseClickData(undefined);\r\n }}\r\n >\r\n <div\r\n className='graph-modal-content m-0'\r\n dangerouslySetInnerHTML={\r\n typeof detailsOnClick === 'string'\r\n ? { __html: string2HTML(detailsOnClick, mouseClickData) }\r\n : undefined\r\n }\r\n >\r\n {typeof detailsOnClick === 'function' ? detailsOnClick(mouseClickData) : null}\r\n </div>\r\n </Modal>\r\n ) : null}\r\n </>\r\n );\r\n }\r\n return null;\r\n};\r\n","import { useState, useRef, useEffect } from 'react';\r\nimport sum from 'lodash.sum';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport { Languages, SourcesDataType, StyleObject, ClassNameObject, TreeMapDataType } from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { uniqBy } from '@/Utils/uniqBy';\r\nimport { GraphArea, GraphContainer } from '@/Components/Elements/GraphContainer';\r\n\r\ninterface Props {\r\n // Data\r\n /** Array of data objects */\r\n data: TreeMapDataType[];\r\n\r\n // Titles, Labels, and Sources\r\n /** Title of the graph */\r\n graphTitle?: string | React.ReactNode;\r\n /** Description of the graph */\r\n graphDescription?: string | React.ReactNode;\r\n /** Footnote for the graph */\r\n footNote?: string | React.ReactNode;\r\n /** Source data for the graph */\r\n sources?: SourcesDataType[];\r\n /** Accessibility label */\r\n ariaLabel?: string;\r\n\r\n // Colors and Styling\r\n /** Color or array of colors for circle */\r\n colors?: string | string[];\r\n /** Domain of colors for the graph */\r\n colorDomain?: string[];\r\n /** Title for the color legend */\r\n colorLegendTitle?: string;\r\n /** Background color of the graph */\r\n backgroundColor?: string | boolean;\r\n /** Custom styles for the graph. Each object should be a valid React CSS style object. */\r\n styles?: StyleObject;\r\n /** Custom class names */\r\n classNames?: ClassNameObject;\r\n\r\n // Size and Spacing\r\n /** Width of the graph */\r\n width?: number;\r\n /** Height of the graph */\r\n height?: number;\r\n /** Minimum height of the graph */\r\n minHeight?: number;\r\n /** Relative height scaling factor. This overwrites the height props */\r\n relativeHeight?: number;\r\n /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */\r\n padding?: string;\r\n /** Left margin of the graph */\r\n leftMargin?: number;\r\n /** Right margin of the graph */\r\n rightMargin?: number;\r\n /** Top margin of the graph */\r\n topMargin?: number;\r\n /** Bottom margin of the graph */\r\n bottomMargin?: number;\r\n\r\n // Values and Ticks\r\n /** Prefix for values */\r\n prefix?: string;\r\n /** Suffix for values */\r\n suffix?: string;\r\n /** Maximum value mapped to the radius chart */\r\n maxRadiusValue?: number;\r\n\r\n // Graph Parameters\r\n /** Maximum radius of the circle */\r\n radius?: number;\r\n /** Toggle visibility of labels */\r\n showLabels?: boolean;\r\n /** Toggle visibility of values */\r\n showValues?: boolean;\r\n /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */\r\n showColorScale?: boolean;\r\n /** 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 */\r\n showNAColor?: boolean;\r\n /** Data points to highlight. Use the label value from data to highlight the data point */\r\n highlightedDataPoints?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Enable graph download option as png */\r\n graphDownload?: boolean;\r\n /** Enable data download option as a csv */\r\n dataDownload?: boolean;\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n\r\n // Interactions and Callbacks\r\n /** 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 */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n /** 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 */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n /** Callback for mouse over event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseOver?: (_d: any) => void;\r\n /** Callback for mouse click event */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n onSeriesMouseClick?: (_d: any) => void;\r\n\r\n // Configuration and Options\r\n /** Language setting */\r\n language?: Languages;\r\n /** Color theme */\r\n theme?: 'light' | 'dark';\r\n /** Unique ID for the graph */\r\n graphID?: string;\r\n}\r\n\r\nexport function CirclePackingGraph(props: Props) {\r\n const {\r\n data,\r\n graphTitle,\r\n colors,\r\n suffix = '',\r\n sources,\r\n prefix = '',\r\n graphDescription,\r\n leftMargin = 0,\r\n rightMargin = 0,\r\n height,\r\n width,\r\n footNote,\r\n colorDomain,\r\n colorLegendTitle,\r\n padding,\r\n backgroundColor = false,\r\n topMargin = 0,\r\n bottomMargin = 0,\r\n showLabels = true,\r\n relativeHeight,\r\n tooltip,\r\n onSeriesMouseOver,\r\n showColorScale = true,\r\n showValues,\r\n graphID,\r\n highlightedDataPoints = [],\r\n onSeriesMouseClick,\r\n graphDownload = false,\r\n dataDownload = false,\r\n language = 'en',\r\n showNAColor,\r\n minHeight = 0,\r\n theme = 'light',\r\n ariaLabel,\r\n radius,\r\n maxRadiusValue,\r\n resetSelectionOnDoubleClick = true,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n } = props;\r\n const [svgWidth, setSvgWidth] = useState(0);\r\n const [svgHeight, setSvgHeight] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setSvgWidth(entries[0].target.clientWidth || 620);\r\n setSvgHeight(entries[0].target.clientHeight || 480);\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, []);\r\n return (\r\n <GraphContainer\r\n className={classNames?.graphContainer}\r\n style={styles?.graphContainer}\r\n id={graphID}\r\n ref={graphParentDiv}\r\n aria-label={ariaLabel}\r\n backgroundColor={backgroundColor}\r\n theme={theme}\r\n language={language}\r\n minHeight={minHeight}\r\n width={width}\r\n height={height}\r\n relativeHeight={relativeHeight}\r\n padding={padding}\r\n >\r\n {graphTitle || graphDescription || graphDownload || dataDownload ? (\r\n <GraphHeader\r\n styles={{\r\n title: styles?.title,\r\n description: styles?.description,\r\n }}\r\n classNames={{\r\n title: classNames?.title,\r\n description: classNames?.description,\r\n }}\r\n graphTitle={graphTitle}\r\n graphDescription={graphDescription}\r\n width={width}\r\n graphDownload={graphDownload ? graphParentDiv : undefined}\r\n dataDownload={\r\n dataDownload\r\n ? data.map(d => d.data).filter(d => d !== undefined).length > 0\r\n ? data.map(d => d.data).filter(d => d !== undefined)\r\n : data.filter(d => d !== undefined)\r\n : null\r\n }\r\n />\r\n ) : null}\r\n {data.length === 0 ? (\r\n <EmptyState />\r\n ) : (\r\n <>\r\n {showColorScale && data.filter(el => el.color).length !== 0 ? (\r\n <ColorLegendWithMouseOver\r\n width={width}\r\n colorLegendTitle={colorLegendTitle}\r\n colors={(colors as string[] | undefined) || Colors[theme].categoricalColors.colors}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n setSelectedColor={setSelectedColor}\r\n showNAColor={showNAColor === undefined || showNAColor === null ? true : showNAColor}\r\n isCenter\r\n className={classNames?.colorLegend}\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {svgWidth && svgHeight ? (\r\n <Graph\r\n data={data}\r\n colors={\r\n data.filter(el => el.color).length === 0\r\n ? colors\r\n ? [colors as string]\r\n : [Colors.primaryColors['blue-600']]\r\n : (colors as string[] | undefined) || Colors[theme].categoricalColors.colors\r\n }\r\n colorDomain={\r\n data.filter(el => el.color).length === 0\r\n ? []\r\n : colorDomain || (uniqBy(data, 'color', true) as string[])\r\n }\r\n width={svgWidth}\r\n height={svgHeight}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n showLabels={showLabels}\r\n showValues={\r\n showValues !== false\r\n ? data.filter(el => el.size).length !== 0\r\n : (showValues as boolean)\r\n }\r\n selectedColor={selectedColor}\r\n suffix={suffix}\r\n prefix={prefix}\r\n tooltip={tooltip}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n highlightedDataPoints={highlightedDataPoints}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n theme={theme}\r\n radius={\r\n !radius\r\n ? (Math.min(\r\n width || svgWidth,\r\n height ||\r\n (relativeHeight\r\n ? minHeight\r\n ? (width || svgWidth) * relativeHeight > minHeight\r\n ? (width || svgWidth) * relativeHeight\r\n : minHeight\r\n : (width || svgWidth) * relativeHeight\r\n : svgHeight),\r\n ) *\r\n (data.filter(d => !checkIfNullOrUndefined(d.size)).length === 0\r\n ? 1\r\n : Math.max(\r\n ...data.map(d => d.size).filter(d => d !== undefined && d !== null),\r\n ))) /\r\n (data.filter(d => !checkIfNullOrUndefined(d.size)).length === 0\r\n ? data.length\r\n : sum(data.filter(d => d.size).map(d => d.size)) * 1.25)\r\n : radius\r\n }\r\n maxRadiusValue={maxRadiusValue}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n detailsOnClick={detailsOnClick}\r\n styles={styles}\r\n classNames={classNames}\r\n dimmedOpacity={dimmedOpacity}\r\n precision={precision}\r\n />\r\n ) : null}\r\n </GraphArea>\r\n </>\r\n )}\r\n {sources || footNote ? (\r\n <GraphFooter\r\n styles={{ footnote: styles?.footnote, source: styles?.source }}\r\n classNames={{\r\n footnote: classNames?.footnote,\r\n source: classNames?.source,\r\n }}\r\n sources={sources}\r\n footNote={footNote}\r\n width={width}\r\n />\r\n ) : null}\r\n </GraphContainer>\r\n );\r\n}\r\n"],"names":["extent","values","valueof","min","max","value","index","Graph","props","$","_c","data","colors","leftMargin","width","height","colorDomain","selectedColor","rightMargin","topMargin","bottomMargin","showLabels","tooltip","onSeriesMouseOver","showValues","suffix","prefix","highlightedDataPoints","onSeriesMouseClick","maxRadiusValue","radius","resetSelectionOnDoubleClick","detailsOnClick","styles","classNames","dimmedOpacity","precision","svgRef","useRef","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","viewPortDimensions","setViewPortDimensions","eventX","setEventX","eventY","setEventY","finalData","setFinalData","t0","top","bottom","left","right","margin","graphWidth","graphHeight","t1","filter","_temp","length","orderBy","_temp2","dataOrdered","t2","_temp3","scaleSqrt","domain","checkIfNullOrUndefined","Math","map","_temp4","_temp5","range","nice","radiusScale","t3","setupSimulation","dataTemp","forceSimulation","force","forceY","_d","strength","forceX","_d_0","forceCollide","d_4","d","size","forceManyBody","alphaDecay","tick","on","xMinExtent","d_5","x","yMinExtent","d_6","y","xMaxExtent","d_7","yMaxExtent","d_8","t4","useEffect","t5","event","d_9","clientY","clientX","handleMouseEnter","t6","Symbol","for","event_0","d_10","handleMouseMove","t7","d_11","label","handleClick","t8","handleMouseLeave","t9","d_12","_temp6","color","indexOf","Colors","gray","getCircleColor","t10","d_13","getOpacity","t11","t12","t13","t14","jsx","Spinner","t15","graphObjectValues","t16","d_14","circleColor","opacity","bubbleRadius","showLabel","jsxs","event_1","event_2","cn","fontSize","round","WebkitLineClamp","display","WebkitBoxOrient","getTextColorBasedOnBgColor","hyphens","numberFormattingFunction","t17","t18","Tooltip","t19","Modal","__html","string2HTML","t20","Fragment","d_0","d_3","d_1","d_2","el","CirclePackingGraph","graphTitle","sources","graphDescription","footNote","colorLegendTitle","padding","backgroundColor","relativeHeight","showColorScale","graphID","graphDownload","dataDownload","language","showNAColor","minHeight","theme","ariaLabel","svgWidth","setSvgWidth","svgHeight","setSvgHeight","setSelectedColor","graphDiv","graphParentDiv","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","current","observe","disconnect","t21","graphContainer","t22","t23","description","title","GraphHeader","t24","EmptyState","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","_temp7","primaryColors","_temp8","_temp9","_temp0","_temp1","_temp10","_temp11","sum","_temp12","_temp13","t25","footnote","source","GraphFooter","t26","GraphContainer","el_2","el_1","el_0"],"mappings":"+wBAAe,SAASA,GAAOC,EAAQC,EAAS,CAC9C,IAAIC,EACAC,EACJ,GAAIF,IAAY,OACd,UAAWG,KAASJ,EACdI,GAAS,OACPF,IAAQ,OACNE,GAASA,IAAOF,EAAMC,EAAMC,IAE5BF,EAAME,IAAOF,EAAME,GACnBD,EAAMC,IAAOD,EAAMC,SAIxB,CACL,IAAIC,EAAQ,GACZ,QAASD,KAASJ,GACXI,EAAQH,EAAQG,EAAO,EAAEC,EAAOL,CAAM,IAAM,OAC3CE,IAAQ,OACNE,GAASA,IAAOF,EAAMC,EAAMC,IAE5BF,EAAME,IAAOF,EAAME,GACnBD,EAAMC,IAAOD,EAAMC,IAI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