@undp/data-viz 1.5.9 → 2.0.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.cjs.map +1 -1
- package/dist/AreaChart.d.ts +1 -0
- package/dist/AreaChart.js +420 -520
- package/dist/AreaChart.js.map +1 -1
- package/dist/Axis-CRyfcLjc.js +32 -0
- package/dist/Axis-CRyfcLjc.js.map +1 -0
- package/dist/Axis-DxRV2yMi.cjs +2 -0
- package/dist/Axis-DxRV2yMi.cjs.map +1 -0
- package/dist/AxisTitle-jeI7am8o.js +29 -0
- package/dist/AxisTitle-jeI7am8o.js.map +1 -0
- package/dist/AxisTitle-sS5bLLR7.cjs +2 -0
- package/dist/AxisTitle-sS5bLLR7.cjs.map +1 -0
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +1 -0
- package/dist/BarGraph.js +2188 -4045
- package/dist/BarGraph.js.map +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.cjs.map +1 -1
- package/dist/BasicStatCard.d.ts +1 -0
- package/dist/BasicStatCard.js +120 -186
- package/dist/BasicStatCard.js.map +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.cjs.map +1 -1
- package/dist/BeeSwarmChart.d.ts +5 -0
- package/dist/BeeSwarmChart.js +500 -1018
- package/dist/BeeSwarmChart.js.map +1 -1
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.cjs.map +1 -1
- package/dist/BiVariateChoroplethMap.d.ts +1 -0
- package/dist/BiVariateChoroplethMap.js +458 -699
- package/dist/BiVariateChoroplethMap.js.map +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.cjs.map +1 -1
- package/dist/BulletChart.d.ts +1 -0
- package/dist/BulletChart.js +863 -1414
- package/dist/BulletChart.js.map +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.cjs.map +1 -1
- package/dist/ButterflyChart.d.ts +1 -0
- package/dist/ButterflyChart.js +474 -684
- package/dist/ButterflyChart.js.map +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.cjs.map +1 -1
- package/dist/ChoroplethMap.d.ts +1 -0
- package/dist/ChoroplethMap.js +466 -720
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +1 -0
- package/dist/CirclePackingGraph.js +5 -4
- package/dist/CirclePackingGraph.js.map +1 -1
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.cjs.map +1 -1
- package/dist/ColorLegend.js +57 -44
- package/dist/ColorLegend.js.map +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.cjs.map +1 -1
- package/dist/ColorLegendWithMouseOver.js +60 -65
- package/dist/ColorLegendWithMouseOver.js.map +1 -1
- package/dist/Colors.cjs.map +1 -1
- package/dist/Colors.js +44 -430
- package/dist/Colors.js.map +1 -1
- package/dist/CopyTextButton.cjs +3 -3
- package/dist/CopyTextButton.cjs.map +1 -1
- package/dist/CopyTextButton.js +537 -455
- package/dist/CopyTextButton.js.map +1 -1
- package/dist/CsvDownloadButton.cjs +7 -7
- package/dist/CsvDownloadButton.cjs.map +1 -1
- package/dist/CsvDownloadButton.js +442 -447
- package/dist/CsvDownloadButton.js.map +1 -1
- package/dist/DataCards.cjs +5 -5
- package/dist/DataCards.cjs.map +1 -1
- package/dist/DataCards.d.ts +1 -0
- package/dist/DataCards.js +488 -581
- package/dist/DataCards.js.map +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +1 -0
- package/dist/DataTable.js +183 -326
- package/dist/DataTable.js.map +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.d.ts +1 -0
- package/dist/DifferenceLineChart.js +729 -794
- package/dist/DifferenceLineChart.js.map +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.cjs.map +1 -1
- package/dist/DonutChart.d.ts +1 -4
- package/dist/DonutChart.js +260 -444
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.cjs.map +1 -1
- package/dist/DotDensityMap.d.ts +1 -0
- package/dist/DotDensityMap.js +387 -574
- package/dist/DotDensityMap.js.map +1 -1
- package/dist/{DropdownSelect-6kjXM6oW.js → DropdownSelect-BbdPQa2k.js} +1401 -1374
- package/dist/DropdownSelect-BbdPQa2k.js.map +1 -0
- package/dist/DropdownSelect-Doz3mCrM.cjs +29 -0
- package/dist/DropdownSelect-Doz3mCrM.cjs.map +1 -0
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +1 -0
- package/dist/DualAxisLineChart.js +617 -712
- package/dist/DualAxisLineChart.js.map +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.cjs.map +1 -1
- package/dist/DumbbellChart.d.ts +1 -0
- package/dist/DumbbellChart.js +789 -1499
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/EmptyState-BZo1BbAn.js +15 -0
- package/dist/{EmptyState-36lXXyui.js.map → EmptyState-BZo1BbAn.js.map} +1 -1
- package/dist/EmptyState-sAEZ_5rU.cjs +2 -0
- package/dist/{EmptyState-B8IpKGcL.cjs.map → EmptyState-sAEZ_5rU.cjs.map} +1 -1
- package/dist/ExcelDownloadButton.cjs +1 -1
- package/dist/ExcelDownloadButton.cjs.map +1 -1
- package/dist/ExcelDownloadButton.js +20 -24
- package/dist/ExcelDownloadButton.js.map +1 -1
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.cjs.map +1 -1
- package/dist/FootNote.js +26 -17
- package/dist/FootNote.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.cjs.map +1 -1
- package/dist/GeoHubCompareMaps.d.ts +1 -0
- package/dist/GeoHubCompareMaps.js +265 -340
- package/dist/GeoHubCompareMaps.js.map +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.cjs.map +1 -1
- package/dist/GeoHubMap.d.ts +1 -0
- package/dist/GeoHubMap.js +214 -379
- package/dist/GeoHubMap.js.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs.map +1 -1
- package/dist/GeoHubMapWithLayerSelection.d.ts +1 -0
- package/dist/GeoHubMapWithLayerSelection.js +192 -278
- package/dist/GeoHubMapWithLayerSelection.js.map +1 -1
- package/dist/GraphContainer-CRqzdKu2.js +78 -0
- package/dist/GraphContainer-CRqzdKu2.js.map +1 -0
- package/dist/GraphContainer-d8A46BK2.cjs +2 -0
- package/dist/GraphContainer-d8A46BK2.cjs.map +1 -0
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.cjs.map +1 -1
- package/dist/GraphDescription.js +23 -17
- package/dist/GraphDescription.js.map +1 -1
- package/dist/GraphEl-BkyLYXG5.cjs +2 -0
- package/dist/GraphEl-BkyLYXG5.cjs.map +1 -0
- package/dist/{GraphEl-2IiUDxjR.js → GraphEl-DzRon4cb.js} +181 -202
- package/dist/GraphEl-DzRon4cb.js.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.cjs.map +1 -1
- package/dist/GraphFooter.js +28 -18
- package/dist/GraphFooter.js.map +1 -1
- package/dist/GraphHeader.cjs +1 -1
- package/dist/GraphHeader.cjs.map +1 -1
- package/dist/GraphHeader.d.ts +2 -1
- package/dist/GraphHeader.js +45 -59
- package/dist/GraphHeader.js.map +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.cjs.map +1 -1
- package/dist/GraphTitle.js +29 -24
- package/dist/GraphTitle.js.map +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.cjs.map +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +216 -450
- package/dist/GriddedGraphs.js.map +1 -1
- package/dist/GriddedGraphsFromConfig.cjs +1 -1
- package/dist/GriddedGraphsFromConfig.cjs.map +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/GriddedGraphsFromConfig.js +22 -36
- package/dist/GriddedGraphsFromConfig.js.map +1 -1
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +1 -0
- package/dist/HeatMap.js +278 -446
- package/dist/HeatMap.js.map +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.cjs.map +1 -1
- package/dist/Histogram.d.ts +1 -0
- package/dist/Histogram.js +154 -264
- package/dist/Histogram.js.map +1 -1
- package/dist/ImageDownloadButton.cjs +1 -1
- package/dist/ImageDownloadButton.cjs.map +1 -1
- package/dist/ImageDownloadButton.d.ts +2 -1
- package/dist/ImageDownloadButton.js +21 -25
- package/dist/ImageDownloadButton.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +1 -0
- package/dist/LineChartWithConfidenceInterval.js +674 -825
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.cjs.map +1 -1
- package/dist/LinearColorLegend.js +49 -30
- package/dist/LinearColorLegend.js.map +1 -1
- package/dist/Modal-DGcuAHyK.js +1047 -0
- package/dist/Modal-DGcuAHyK.js.map +1 -0
- package/dist/Modal-JW_IExO3.cjs +46 -0
- package/dist/Modal-JW_IExO3.cjs.map +1 -0
- package/dist/MultiGraphDashboard.cjs +1 -1
- package/dist/MultiGraphDashboard.cjs.map +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboard.js +122 -290
- package/dist/MultiGraphDashboard.js.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardFromConfig.cjs.map +1 -1
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.js +22 -31
- package/dist/MultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.cjs.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -0
- package/dist/MultiGraphDashboardWideToLongFormat.js +137 -223
- package/dist/MultiGraphDashboardWideToLongFormat.js.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.cjs.map +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -0
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js +25 -27
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.js.map +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +1 -0
- package/dist/MultiLineAltChart.js +581 -659
- package/dist/MultiLineAltChart.js.map +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.cjs.map +1 -1
- package/dist/MultiLineChart.d.ts +1 -0
- package/dist/MultiLineChart.js +617 -725
- package/dist/MultiLineChart.js.map +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.cjs.map +1 -1
- package/dist/ParetoChart.d.ts +1 -0
- package/dist/ParetoChart.js +531 -635
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboard.js +147 -338
- package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +22 -31
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -1
- package/dist/PerformanceIntensiveScrollStory.cjs +1 -1
- package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -1
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.js +93 -114
- package/dist/PerformanceIntensiveScrollStory.js.map +1 -1
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +1 -0
- package/dist/RadarChart.js +426 -575
- package/dist/RadarChart.js.map +1 -1
- package/dist/ReferenceLine-2XCwHXQ4.js +162 -0
- package/dist/ReferenceLine-2XCwHXQ4.js.map +1 -0
- package/dist/ReferenceLine-BH0qdf4R.cjs +2 -0
- package/dist/ReferenceLine-BH0qdf4R.cjs.map +1 -0
- package/dist/RegressionLine-BOTTNSrr.cjs +2 -0
- package/dist/RegressionLine-BOTTNSrr.cjs.map +1 -0
- package/dist/RegressionLine-DAcY2DjT.js +87 -0
- package/dist/RegressionLine-DAcY2DjT.js.map +1 -0
- package/dist/SVGDownloadButton.cjs +1 -1
- package/dist/SVGDownloadButton.cjs.map +1 -1
- package/dist/SVGDownloadButton.js +21 -25
- package/dist/SVGDownloadButton.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +1 -0
- package/dist/SankeyChart.js +665 -854
- package/dist/SankeyChart.js.map +1 -1
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.cjs.map +1 -1
- package/dist/ScatterPlot.d.ts +1 -0
- package/dist/ScatterPlot.js +675 -815
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.cjs +1 -1
- package/dist/ScrollStory.cjs.map +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/ScrollStory.js +85 -97
- package/dist/ScrollStory.js.map +1 -1
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.d.ts +1 -0
- package/dist/SimpleLineChart.js +504 -613
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.cjs.map +1 -1
- package/dist/SingleGraphDashboard.d.ts +2 -1
- package/dist/SingleGraphDashboard.js +279 -507
- package/dist/SingleGraphDashboard.js.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardFromConfig.cjs.map +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +2 -1
- package/dist/SingleGraphDashboardFromConfig.js +25 -31
- package/dist/SingleGraphDashboardFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +146 -168
- package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -21
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +357 -591
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +25 -31
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -1
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.cjs.map +1 -1
- package/dist/SlopeChart.d.ts +1 -0
- package/dist/SlopeChart.js +539 -573
- package/dist/SlopeChart.js.map +1 -1
- package/dist/Source-DYMJRrsq.cjs +2 -0
- package/dist/Source-DYMJRrsq.cjs.map +1 -0
- package/dist/Source-DwTHB8fn.js +78 -0
- package/dist/Source-DwTHB8fn.js.map +1 -0
- package/dist/Source.cjs +1 -1
- package/dist/Source.cjs.map +1 -1
- package/dist/Source.js +4 -38
- package/dist/Source.js.map +1 -1
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.cjs.map +1 -1
- package/dist/SparkLine.d.ts +1 -0
- package/dist/SparkLine.js +286 -314
- package/dist/SparkLine.js.map +1 -1
- package/dist/Spinner-D7rnnwnA.js +47 -0
- package/dist/Spinner-D7rnnwnA.js.map +1 -0
- package/dist/Spinner-DRMBUsX7.cjs +2 -0
- package/dist/Spinner-DRMBUsX7.cjs.map +1 -0
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +1 -0
- package/dist/StatCardFromData.js +163 -243
- package/dist/StatCardFromData.js.map +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.cjs.map +1 -1
- package/dist/StripChart.d.ts +1 -0
- package/dist/StripChart.js +665 -983
- package/dist/StripChart.js.map +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.cjs.map +1 -1
- package/dist/ThreeDGlobe.d.ts +1 -0
- package/dist/ThreeDGlobe.js +356 -519
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +96 -126
- package/dist/ThresholdColorLegendWithMouseOver.js.map +1 -1
- package/dist/Tooltip-4dJo4_AF.cjs +2 -0
- package/dist/Tooltip-4dJo4_AF.cjs.map +1 -0
- package/dist/Tooltip-CwWUegPB.js +43 -0
- package/dist/Tooltip-CwWUegPB.js.map +1 -0
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +1 -0
- package/dist/TreeMapGraph.js +479 -617
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +1 -0
- package/dist/Typography-DX7PlgQU.cjs +2 -0
- package/dist/Typography-DX7PlgQU.cjs.map +1 -0
- package/dist/Typography-PxtFcnJb.js +142 -0
- package/dist/Typography-PxtFcnJb.js.map +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +1 -0
- package/dist/UnitChart.js +160 -212
- package/dist/UnitChart.js.map +1 -1
- package/dist/XAxesLabels-D5X8jngD.cjs +2 -0
- package/dist/XAxesLabels-D5X8jngD.cjs.map +1 -0
- package/dist/XAxesLabels-DNO0KmjL.js +73 -0
- package/dist/XAxesLabels-DNO0KmjL.js.map +1 -0
- package/dist/XTicksAndGridLines-B6CELS7q.cjs +2 -0
- package/dist/XTicksAndGridLines-B6CELS7q.cjs.map +1 -0
- package/dist/XTicksAndGridLines-CObVFSm4.js +38 -0
- package/dist/XTicksAndGridLines-CObVFSm4.js.map +1 -0
- package/dist/YAxesLabels-DcS85Beo.cjs +2 -0
- package/dist/YAxesLabels-DcS85Beo.cjs.map +1 -0
- package/dist/YAxesLabels-Dnnng49-.js +70 -0
- package/dist/YAxesLabels-Dnnng49-.js.map +1 -0
- package/dist/YTicksAndGridLines-4pxTRlRK.cjs +2 -0
- package/dist/YTicksAndGridLines-4pxTRlRK.cjs.map +1 -0
- package/dist/YTicksAndGridLines-Blepl7XF.js +38 -0
- package/dist/YTicksAndGridLines-Blepl7XF.js.map +1 -0
- package/dist/{band-BEjh2CHI.js → band-CyHaVft5.js} +3 -3
- package/dist/{band-BEjh2CHI.js.map → band-CyHaVft5.js.map} +1 -1
- package/dist/{band-CAApY4Pd.cjs → band-VYfcZeJ2.cjs} +2 -2
- package/dist/{band-CAApY4Pd.cjs.map → band-VYfcZeJ2.cjs.map} +1 -1
- package/dist/checkIfMultiple-Y9iKaV_u.js +950 -0
- package/dist/checkIfMultiple-Y9iKaV_u.js.map +1 -0
- package/dist/checkIfMultiple-wg6hJLXy.cjs +12 -0
- package/dist/checkIfMultiple-wg6hJLXy.cjs.map +1 -0
- package/dist/customArea-BUhPiPT6.js +163 -0
- package/dist/{customArea-x4L4xwLl.js.map → customArea-BUhPiPT6.js.map} +1 -1
- package/dist/customArea-CMF5g-C3.cjs +2 -0
- package/dist/{customArea-1G1S78s_.cjs.map → customArea-CMF5g-C3.cjs.map} +1 -1
- package/dist/delaunay-C1uAf38t.js.map +1 -1
- package/dist/delaunay-rcy0HhZi.cjs.map +1 -1
- package/dist/{ensureCompleteData-DlmibgaI.js → ensureCompleteData-DNKEGRiP.js} +12 -32
- package/dist/{ensureCompleteData-DlmibgaI.js.map → ensureCompleteData-DNKEGRiP.js.map} +1 -1
- package/dist/{ensureCompleteData-DkQYPeDa.cjs → ensureCompleteData-I6nYmT8E.cjs} +2 -2
- package/dist/{ensureCompleteData-DkQYPeDa.cjs.map → ensureCompleteData-I6nYmT8E.cjs.map} +1 -1
- package/dist/{excelDownload-BOA-lskf.js → excelDownload-BEC1AyQW.js} +12 -2
- package/dist/{excelDownload-BOA-lskf.js.map → excelDownload-BEC1AyQW.js.map} +1 -1
- package/dist/excelDownload-BQpsCa62.cjs.map +1 -1
- package/dist/{fetchAndParseData-sapWbnYk.js → fetchAndParseData-BpqkBPQL.js} +15 -28
- package/dist/{fetchAndParseData-sapWbnYk.js.map → fetchAndParseData-BpqkBPQL.js.map} +1 -1
- package/dist/fetchAndParseData-l5HGMAEs.cjs +16 -0
- package/dist/{fetchAndParseData-Ba-_CgxS.cjs.map → fetchAndParseData-l5HGMAEs.cjs.map} +1 -1
- package/dist/fetchAndParseData.cjs +1 -1
- package/dist/fetchAndParseData.js +1 -1
- package/dist/{filterData-9nEcQ-Jp.js → filterData-DsAiFzKY.js} +3 -5
- package/dist/{filterData-9nEcQ-Jp.js.map → filterData-DsAiFzKY.js.map} +1 -1
- package/dist/{filterData-BoYadk0l.cjs → filterData-T5DQBE9b.cjs} +2 -2
- package/dist/{filterData-BoYadk0l.cjs.map → filterData-T5DQBE9b.cjs.map} +1 -1
- package/dist/generateRandomString-B5zBiJzS.cjs.map +1 -1
- package/dist/generateRandomString-za3IQGfQ.js.map +1 -1
- package/dist/{getCentroidCoordinates-Dfk6IqEG.js → getCentroidCoordinates-D7r34N4w.js} +2 -2
- package/dist/{getCentroidCoordinates-Dfk6IqEG.js.map → getCentroidCoordinates-D7r34N4w.js.map} +1 -1
- package/dist/{getCentroidCoordinates-DxTBqzp2.cjs → getCentroidCoordinates-Dng1HVjO.cjs} +2 -2
- package/dist/{getCentroidCoordinates-DxTBqzp2.cjs.map → getCentroidCoordinates-Dng1HVjO.cjs.map} +1 -1
- package/dist/getGraphList-BpEWn1Tk.js +227 -0
- package/dist/{getGraphList-DuColTJM.js.map → getGraphList-BpEWn1Tk.js.map} +1 -1
- package/dist/getGraphList-gf02xgT2.cjs.map +1 -1
- package/dist/getJenks-BbngDoBQ.js.map +1 -1
- package/dist/getJenks-GYmdwBqm.cjs.map +1 -1
- package/dist/getSchema.cjs.map +1 -1
- package/dist/getSchema.js +445 -231
- package/dist/getSchema.js.map +1 -1
- package/dist/getSliderMarks-BmADcPQt.cjs +6 -0
- package/dist/getSliderMarks-BmADcPQt.cjs.map +1 -0
- package/dist/getSliderMarks-HIDJ0_Cd.js +1033 -0
- package/dist/getSliderMarks-HIDJ0_Cd.js.map +1 -0
- package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js → getTextColorBasedOnBgColor-CDY808zi.js} +11 -3
- package/dist/{getTextColorBasedOnBgColor-B6Nk2WBf.js.map → getTextColorBasedOnBgColor-CDY808zi.js.map} +1 -1
- package/dist/getTextColorBasedOnBgColor-nqY-bsM_.cjs.map +1 -1
- package/dist/{getUniqValue-DiCh_MOD.js → getUniqValue-BKHCm3zE.js} +2 -4
- package/dist/{getUniqValue-DiCh_MOD.js.map → getUniqValue-BKHCm3zE.js.map} +1 -1
- package/dist/getUniqValue-RViz8tTw.cjs.map +1 -1
- package/dist/{imageDownload-Dcci2LEy.js → imageDownload-BX6SILNZ.js} +4 -2
- package/dist/{imageDownload-Dcci2LEy.js.map → imageDownload-BX6SILNZ.js.map} +1 -1
- package/dist/imageDownload-CgDcm1Sj.cjs.map +1 -1
- package/dist/{index-DvVprvy6.js → index-BZQYSqar.js} +7 -7
- package/dist/{index-DvVprvy6.js.map → index-BZQYSqar.js.map} +1 -1
- package/dist/index-B_sAFsEV.cjs +2 -0
- package/dist/{index-BHe3wsWF.cjs.map → index-B_sAFsEV.cjs.map} +1 -1
- package/dist/index-BqfRwk1n.js +146 -0
- package/dist/index-BqfRwk1n.js.map +1 -0
- package/dist/{index-V_JXij1_.js → index-BuwmuDFJ.js} +3 -3
- package/dist/{index-V_JXij1_.js.map → index-BuwmuDFJ.js.map} +1 -1
- package/dist/index-CHPV5EwG-CTPQjnHt.cjs +84 -0
- package/dist/index-CHPV5EwG-CTPQjnHt.cjs.map +1 -0
- package/dist/{index-CHPV5EwG-DBWUSD9b.js → index-CHPV5EwG-Curnpaqc.js} +724 -625
- package/dist/index-CHPV5EwG-Curnpaqc.js.map +1 -0
- package/dist/index-Cno4Q0YE.cjs +2 -0
- package/dist/{index-CQ3e6Ewi.cjs.map → index-Cno4Q0YE.cjs.map} +1 -1
- package/dist/{index-Cw8sCyo_-BuI_jX5Z.js → index-Cw8sCyo_-B2hEKjzG.js} +16 -16
- package/dist/{index-Cw8sCyo_-BuI_jX5Z.js.map → index-Cw8sCyo_-B2hEKjzG.js.map} +1 -1
- package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs → index-Cw8sCyo_-BrHiWiRF.cjs} +2 -2
- package/dist/{index-Cw8sCyo_-gxT8ADyn.cjs.map → index-Cw8sCyo_-BrHiWiRF.cjs.map} +1 -1
- package/dist/index-CyZ1lmi_.cjs +2 -0
- package/dist/{index-D72cOtq7.cjs.map → index-CyZ1lmi_.cjs.map} +1 -1
- package/dist/index-D491FEn1.js +184 -0
- package/dist/index-D491FEn1.js.map +1 -0
- package/dist/index-DG2bgAva.cjs +10 -0
- package/dist/index-DG2bgAva.cjs.map +1 -0
- package/dist/index-DRXx7m-C.cjs +2 -0
- package/dist/index-DRXx7m-C.cjs.map +1 -0
- package/dist/index-DoY3Ga3W.cjs +2 -0
- package/dist/index-DoY3Ga3W.cjs.map +1 -0
- package/dist/index-DxXnJ8Ti.cjs +2 -0
- package/dist/index-DxXnJ8Ti.cjs.map +1 -0
- package/dist/{index-Dzc_aaI9-BKklH89r.js → index-Dzc_aaI9-Bb7gobH_.js} +2 -2
- package/dist/{index-Dzc_aaI9-BKklH89r.js.map → index-Dzc_aaI9-Bb7gobH_.js.map} +1 -1
- package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs → index-Dzc_aaI9-BmkfPMyc.cjs} +2 -2
- package/dist/{index-Dzc_aaI9-RIk2GRHD.cjs.map → index-Dzc_aaI9-BmkfPMyc.cjs.map} +1 -1
- package/dist/{index-9tDEUqOZ.js → index-GEsywGxz.js} +9 -9
- package/dist/index-GEsywGxz.js.map +1 -0
- package/dist/index-SKgJALZg.js +99 -0
- package/dist/{index-Bw_eHBVN.js.map → index-SKgJALZg.js.map} +1 -1
- package/dist/index-leTnKT2q.js +329 -0
- package/dist/index-leTnKT2q.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +10 -8
- package/dist/index.js +13 -13
- package/dist/{init-BhZylTFx.js → init-BJFW6EwE.js} +3 -3
- package/dist/{init-BhZylTFx.js.map → init-BJFW6EwE.js.map} +1 -1
- package/dist/{linear-BVckp9RD.cjs → linear-BwPAspcq.cjs} +2 -2
- package/dist/{linear-BVckp9RD.cjs.map → linear-BwPAspcq.cjs.map} +1 -1
- package/dist/{linear-DUdu7l2G.js → linear-BwnDd9KF.js} +3 -3
- package/dist/{linear-DUdu7l2G.js.map → linear-BwnDd9KF.js.map} +1 -1
- package/dist/numberFormattingFunction-02t-wJta.cjs.map +1 -1
- package/dist/numberFormattingFunction-14YCbkN2.js.map +1 -1
- package/dist/{ordinal-BOeNbyae.cjs → ordinal-CrsysVE-.cjs} +2 -2
- package/dist/ordinal-CrsysVE-.cjs.map +1 -0
- package/dist/{ordinal-w9Lu4Stb.js → ordinal-P77xw8aL.js} +24 -24
- package/dist/ordinal-P77xw8aL.js.map +1 -0
- package/dist/{pow-e8zx3AQJ.js → pow-DE4c7dbW.js} +3 -3
- package/dist/{pow-e8zx3AQJ.js.map → pow-DE4c7dbW.js.map} +1 -1
- package/dist/{pow-B5-jkdHU.cjs → pow-DgrUorRi.cjs} +2 -2
- package/dist/{pow-B5-jkdHU.cjs.map → pow-DgrUorRi.cjs.map} +1 -1
- package/dist/{proxy-BYIC9BuT.js → proxy-BxkFHwUw.js} +144 -134
- package/dist/proxy-BxkFHwUw.js.map +1 -0
- package/dist/proxy-BxvUI_9l.cjs +2 -0
- package/dist/proxy-BxvUI_9l.cjs.map +1 -0
- package/dist/{removeOutliers-DR48e-18.js → removeOutliers-BqW0sPqj.js} +2 -5
- package/dist/{removeOutliers-DR48e-18.js.map → removeOutliers-BqW0sPqj.js.map} +1 -1
- package/dist/removeOutliers-WELHHqiI.cjs.map +1 -1
- package/dist/{sort-DfK1b0F5.js → sort-BIvMlUH1.js} +5 -5
- package/dist/{sort-DfK1b0F5.js.map → sort-BIvMlUH1.js.map} +1 -1
- package/dist/{string-CRoCZCYa.cjs → string-C-kRh1bQ.cjs} +2 -2
- package/dist/{string-CRoCZCYa.cjs.map → string-C-kRh1bQ.cjs.map} +1 -1
- package/dist/{string-B8KlVSPX.js → string-C_xJ4Wg4.js} +3 -3
- package/dist/{string-B8KlVSPX.js.map → string-C_xJ4Wg4.js.map} +1 -1
- package/dist/string2HTML-CPGr_I5E.cjs +3 -0
- package/dist/{string2HTML-z7CwHXcx.cjs.map → string2HTML-CPGr_I5E.cjs.map} +1 -1
- package/dist/{string2HTML-oFCROsus.js → string2HTML-DhG75NqA.js} +15 -9
- package/dist/{string2HTML-oFCROsus.js.map → string2HTML-DhG75NqA.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{svgDownload-C2-E3yf2.js → svgDownload-BAoarWNt.js} +4 -2
- package/dist/{svgDownload-C2-E3yf2.js.map → svgDownload-BAoarWNt.js.map} +1 -1
- package/dist/svgDownload-D9zEGjTF.cjs.map +1 -1
- package/dist/{threshold-DFfqcDMa.js → threshold-Bgr20hik.js} +2 -2
- package/dist/{threshold-DFfqcDMa.js.map → threshold-Bgr20hik.js.map} +1 -1
- package/dist/{time-Byw_jYQ7.cjs → time-CZd5YLSP.cjs} +2 -2
- package/dist/{time-Byw_jYQ7.cjs.map → time-CZd5YLSP.cjs.map} +1 -1
- package/dist/{time-BzJP5SPC.js → time-DCCfQk3V.js} +3 -3
- package/dist/{time-BzJP5SPC.js.map → time-DCCfQk3V.js.map} +1 -1
- package/dist/transformData.cjs +1 -1
- package/dist/transformData.js +3 -3
- package/dist/transformDataForAggregation-CE3bAlHU.js +585 -0
- package/dist/{transformDataForAggregation-sBpdlX8n.js.map → transformDataForAggregation-CE3bAlHU.js.map} +1 -1
- package/dist/transformDataForAggregation-KXGm6flX.cjs.map +1 -1
- package/dist/transformDataForGraphFromFile-BExxcITV.js +14 -0
- package/dist/{transformDataForGraphFromFile-ComYvzuz.js.map → transformDataForGraphFromFile-BExxcITV.js.map} +1 -1
- package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs → transformDataForGraphFromFile-DaJHQCsL.cjs} +2 -2
- package/dist/{transformDataForGraphFromFile-DVZodTHd.cjs.map → transformDataForGraphFromFile-DaJHQCsL.cjs.map} +1 -1
- package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -1
- package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -1
- package/dist/uniqBy-BHy4I8PK.js.map +1 -1
- package/dist/uniqBy-O05lp2S5.cjs.map +1 -1
- package/dist/{use-in-view-DR-UTB96.js → use-in-view-Cxa7y1TH.js} +2 -2
- package/dist/use-in-view-Cxa7y1TH.js.map +1 -0
- package/dist/use-in-view-QcfiW0w3.cjs +2 -0
- package/dist/use-in-view-QcfiW0w3.cjs.map +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.js +8 -8
- package/dist/validateSchema.cjs.map +1 -1
- package/dist/validateSchema.js +33 -29
- package/dist/validateSchema.js.map +1 -1
- package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs → x-BBpi7a_7-mTo40uId.cjs} +2 -2
- package/dist/{x-BBpi7a_7-Dz2vKSfu.cjs.map → x-BBpi7a_7-mTo40uId.cjs.map} +1 -1
- package/dist/{y-D0sAaVii.js → y-BqfogMAB.js} +3 -3
- package/dist/{y-D0sAaVii.js.map → y-BqfogMAB.js.map} +1 -1
- package/dist/{zoom-QipiAl5W.js → zoom-C9MFjAaV.js} +5 -5
- package/dist/{zoom-QipiAl5W.js.map → zoom-C9MFjAaV.js.map} +1 -1
- package/dist/zoom-DPw8bba-.cjs +2 -0
- package/dist/{zoom-BiMNsz72.cjs.map → zoom-DPw8bba-.cjs.map} +1 -1
- package/package.json +7 -6
- package/dist/Axis-4gUOL8B7.js +0 -43
- package/dist/Axis-4gUOL8B7.js.map +0 -1
- package/dist/Axis-CkNn1wit.cjs +0 -2
- package/dist/Axis-CkNn1wit.cjs.map +0 -1
- package/dist/AxisTitle-Wkz-xeQL.cjs +0 -2
- package/dist/AxisTitle-Wkz-xeQL.cjs.map +0 -1
- package/dist/AxisTitle-v6_xcXZ-.js +0 -20
- package/dist/AxisTitle-v6_xcXZ-.js.map +0 -1
- package/dist/DropdownSelect-6kjXM6oW.js.map +0 -1
- package/dist/DropdownSelect-vt8yiB-g.cjs +0 -29
- package/dist/DropdownSelect-vt8yiB-g.cjs.map +0 -1
- package/dist/EmptyState-36lXXyui.js +0 -22
- package/dist/EmptyState-B8IpKGcL.cjs +0 -2
- package/dist/GraphEl-2IiUDxjR.js.map +0 -1
- package/dist/GraphEl-qrlfGPe3.cjs +0 -2
- package/dist/GraphEl-qrlfGPe3.cjs.map +0 -1
- package/dist/Modal-Cg8daIlV.js +0 -1030
- package/dist/Modal-Cg8daIlV.js.map +0 -1
- package/dist/Modal-CuuJdWkD.cjs +0 -46
- package/dist/Modal-CuuJdWkD.cjs.map +0 -1
- package/dist/ReferenceLine-CPMaAX0r.js +0 -128
- package/dist/ReferenceLine-CPMaAX0r.js.map +0 -1
- package/dist/ReferenceLine-D04j-zeV.cjs +0 -2
- package/dist/ReferenceLine-D04j-zeV.cjs.map +0 -1
- package/dist/RegressionLine-CW7iViH2.js +0 -49
- package/dist/RegressionLine-CW7iViH2.js.map +0 -1
- package/dist/RegressionLine-D-49RaHa.cjs +0 -2
- package/dist/RegressionLine-D-49RaHa.cjs.map +0 -1
- package/dist/Spinner-Bpz70q_g.js +0 -30
- package/dist/Spinner-Bpz70q_g.js.map +0 -1
- package/dist/Spinner-C6wLp85s.cjs +0 -2
- package/dist/Spinner-C6wLp85s.cjs.map +0 -1
- package/dist/Tooltip-6LIdPQGC.js +0 -46
- package/dist/Tooltip-6LIdPQGC.js.map +0 -1
- package/dist/Tooltip-Cpv0QohJ.cjs +0 -2
- package/dist/Tooltip-Cpv0QohJ.cjs.map +0 -1
- package/dist/Typography-BDULiwlF.cjs +0 -2
- package/dist/Typography-BDULiwlF.cjs.map +0 -1
- package/dist/Typography-LmZ9LEpe.js +0 -140
- package/dist/Typography-LmZ9LEpe.js.map +0 -1
- package/dist/XAxesLabels-CLZnBgSr.cjs +0 -2
- package/dist/XAxesLabels-CLZnBgSr.cjs.map +0 -1
- package/dist/XAxesLabels-SOSmso5J.js +0 -57
- package/dist/XAxesLabels-SOSmso5J.js.map +0 -1
- package/dist/XTicksAndGridLines-DuydSnZ_.js +0 -56
- package/dist/XTicksAndGridLines-DuydSnZ_.js.map +0 -1
- package/dist/XTicksAndGridLines-RKy7BVCO.cjs +0 -2
- package/dist/XTicksAndGridLines-RKy7BVCO.cjs.map +0 -1
- package/dist/YAxesLabels-DlDyLvhi.js +0 -52
- package/dist/YAxesLabels-DlDyLvhi.js.map +0 -1
- package/dist/YAxesLabels-Dqd259-t.cjs +0 -2
- package/dist/YAxesLabels-Dqd259-t.cjs.map +0 -1
- package/dist/YTicksAndGridLines-7t4MKtGw.js +0 -56
- package/dist/YTicksAndGridLines-7t4MKtGw.js.map +0 -1
- package/dist/YTicksAndGridLines-qGpRo_t1.cjs +0 -2
- package/dist/YTicksAndGridLines-qGpRo_t1.cjs.map +0 -1
- package/dist/checkIfMultiple-Dko_cBvE.cjs +0 -12
- package/dist/checkIfMultiple-Dko_cBvE.cjs.map +0 -1
- package/dist/checkIfMultiple-u2SmbiCf.js +0 -912
- package/dist/checkIfMultiple-u2SmbiCf.js.map +0 -1
- package/dist/customArea-1G1S78s_.cjs +0 -2
- package/dist/customArea-x4L4xwLl.js +0 -175
- package/dist/fetchAndParseData-Ba-_CgxS.cjs +0 -16
- package/dist/getGraphList-DuColTJM.js +0 -265
- package/dist/getSliderMarks-CUxPy36E.cjs +0 -6
- package/dist/getSliderMarks-CUxPy36E.cjs.map +0 -1
- package/dist/getSliderMarks-_pYOWEtO.js +0 -1023
- package/dist/getSliderMarks-_pYOWEtO.js.map +0 -1
- package/dist/index-9tDEUqOZ.js.map +0 -1
- package/dist/index-BHe3wsWF.cjs +0 -2
- package/dist/index-Bw_eHBVN.js +0 -77
- package/dist/index-C0bpbS4F.cjs +0 -2
- package/dist/index-C0bpbS4F.cjs.map +0 -1
- package/dist/index-CE9pmfxt.js +0 -430
- package/dist/index-CE9pmfxt.js.map +0 -1
- package/dist/index-CEJwW3lL.cjs +0 -2
- package/dist/index-CEJwW3lL.cjs.map +0 -1
- package/dist/index-CHPV5EwG-DBWUSD9b.js.map +0 -1
- package/dist/index-CHPV5EwG-DjM48pIC.cjs +0 -44
- package/dist/index-CHPV5EwG-DjM48pIC.cjs.map +0 -1
- package/dist/index-CQ3e6Ewi.cjs +0 -2
- package/dist/index-Cm8NIdOO.cjs +0 -10
- package/dist/index-Cm8NIdOO.cjs.map +0 -1
- package/dist/index-CoZbeNM9.cjs +0 -2
- package/dist/index-CoZbeNM9.cjs.map +0 -1
- package/dist/index-Cwgh7i7X.js +0 -122
- package/dist/index-Cwgh7i7X.js.map +0 -1
- package/dist/index-D72cOtq7.cjs +0 -2
- package/dist/index-zZjQEHlm.js +0 -342
- package/dist/index-zZjQEHlm.js.map +0 -1
- package/dist/ordinal-BOeNbyae.cjs.map +0 -1
- package/dist/ordinal-w9Lu4Stb.js.map +0 -1
- package/dist/proxy-BYIC9BuT.js.map +0 -1
- package/dist/proxy-CKadx4lC.cjs +0 -2
- package/dist/proxy-CKadx4lC.cjs.map +0 -1
- package/dist/string2HTML-z7CwHXcx.cjs +0 -3
- package/dist/transformDataForAggregation-sBpdlX8n.js +0 -755
- package/dist/transformDataForGraphFromFile-ComYvzuz.js +0 -24
- package/dist/use-in-view-CEwlc_dd.cjs +0 -2
- package/dist/use-in-view-CEwlc_dd.cjs.map +0 -1
- package/dist/use-in-view-DR-UTB96.js.map +0 -1
- package/dist/zoom-BiMNsz72.cjs +0 -2
package/dist/ScrollStory.js
CHANGED
|
@@ -1,106 +1,94 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { SingleGraphDashboard as
|
|
4
|
-
import { m as
|
|
5
|
-
import { u as
|
|
6
|
-
function
|
|
7
|
-
const {
|
|
8
|
-
chapters:
|
|
9
|
-
visibilityThreshold:
|
|
10
|
-
mode:
|
|
11
|
-
infoWidth:
|
|
12
|
-
infoPosition:
|
|
13
|
-
infoBackgroundColor: p
|
|
14
|
-
} =
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { c as V, j as h } from "./index-CHPV5EwG-Curnpaqc.js";
|
|
2
|
+
import { useState as W, useRef as _ } from "react";
|
|
3
|
+
import { SingleGraphDashboard as z } from "./SingleGraphDashboard.js";
|
|
4
|
+
import { m as G } from "./proxy-BxkFHwUw.js";
|
|
5
|
+
import { u as q } from "./use-in-view-Cxa7y1TH.js";
|
|
6
|
+
function O(B) {
|
|
7
|
+
const t = V.c(27), {
|
|
8
|
+
chapters: e,
|
|
9
|
+
visibilityThreshold: v,
|
|
10
|
+
mode: S,
|
|
11
|
+
infoWidth: x,
|
|
12
|
+
infoPosition: j,
|
|
13
|
+
infoBackgroundColor: p
|
|
14
|
+
} = B, f = v === void 0 ? 0.5 : v, n = S === void 0 ? "overlay" : S, c = x === void 0 ? "320px" : x, s = j === void 0 ? "left" : j, C = p === void 0 ? "rgba(255,255,255,0.8)" : p, [a, y] = W(0);
|
|
15
|
+
let i;
|
|
16
|
+
t[0] !== e ? (i = [], e.forEach((l, A) => {
|
|
17
|
+
l.sections.forEach((R, P) => {
|
|
17
18
|
i.push({
|
|
18
|
-
chapter:
|
|
19
|
-
dataSettings:
|
|
20
|
-
section:
|
|
21
|
-
graphType:
|
|
22
|
-
infoBox:
|
|
23
|
-
graphSettings: {
|
|
24
|
-
|
|
19
|
+
chapter: A,
|
|
20
|
+
dataSettings: l.dataSettings,
|
|
21
|
+
section: P,
|
|
22
|
+
graphType: l.graphType,
|
|
23
|
+
infoBox: R.infoBox,
|
|
24
|
+
graphSettings: {
|
|
25
|
+
...l.graphSettings,
|
|
26
|
+
...R.graphSettings || {},
|
|
27
|
+
animate: !0
|
|
28
|
+
},
|
|
29
|
+
graphDataConfiguration: R.graphDataConfiguration || l.graphDataConfiguration || []
|
|
25
30
|
});
|
|
26
31
|
});
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
index: f,
|
|
56
|
-
infoBox: t.infoBox,
|
|
57
|
-
setActiveIndex: c,
|
|
58
|
-
position: s,
|
|
59
|
-
mode: r,
|
|
60
|
-
visibilityThreshold: h,
|
|
61
|
-
backgroundColor: p
|
|
62
|
-
},
|
|
63
|
-
`${t.chapter}-${t.section}`
|
|
64
|
-
)) })
|
|
65
|
-
] });
|
|
32
|
+
}), t[0] = e, t[1] = i) : i = t[1];
|
|
33
|
+
const o = i[a];
|
|
34
|
+
let r, b, D;
|
|
35
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
36
|
+
opacity: 0
|
|
37
|
+
}, b = {
|
|
38
|
+
opacity: 1
|
|
39
|
+
}, D = {
|
|
40
|
+
duration: 0.5
|
|
41
|
+
}, t[2] = r, t[3] = b, t[4] = D) : (r = t[2], b = t[3], D = t[4]);
|
|
42
|
+
const T = n === "overlay" || s === "right" ? 0 : c, $ = n === "overlay" ? "100%" : `calc(100% - ${c})`;
|
|
43
|
+
let g;
|
|
44
|
+
t[5] !== $ || t[6] !== T ? (g = {
|
|
45
|
+
left: T,
|
|
46
|
+
width: $
|
|
47
|
+
}, t[5] = $, t[6] = T, t[7] = g) : g = t[7];
|
|
48
|
+
const I = i[a].graphType, k = i[a], E = i[a], N = i[a];
|
|
49
|
+
let d;
|
|
50
|
+
t[8] !== I || t[9] !== k.dataSettings || t[10] !== E.graphSettings || t[11] !== N.graphDataConfiguration ? (d = /* @__PURE__ */ h.jsx(z, { graphType: I, dataSettings: k.dataSettings, graphSettings: E.graphSettings, graphDataConfiguration: N.graphDataConfiguration }), t[8] = I, t[9] = k.dataSettings, t[10] = E.graphSettings, t[11] = N.graphDataConfiguration, t[12] = d) : d = t[12];
|
|
51
|
+
let u;
|
|
52
|
+
t[13] !== g || t[14] !== d || t[15] !== o.chapter ? (u = /* @__PURE__ */ h.jsx(G.div, { className: "fixed top-0 h-full -z-10", initial: r, animate: b, transition: D, style: g, children: d }, o.chapter), t[13] = g, t[14] = d, t[15] = o.chapter, t[16] = u) : u = t[16];
|
|
53
|
+
let m;
|
|
54
|
+
t[17] !== C || t[18] !== s || t[19] !== c || t[20] !== n || t[21] !== i || t[22] !== f ? (m = /* @__PURE__ */ h.jsx("div", { children: i.map((l, A) => /* @__PURE__ */ h.jsx(F, { width: c, index: A, infoBox: l.infoBox, setActiveIndex: y, position: s, mode: n, visibilityThreshold: f, backgroundColor: C }, `${l.chapter}-${l.section}`)) }), t[17] = C, t[18] = s, t[19] = c, t[20] = n, t[21] = i, t[22] = f, t[23] = m) : m = t[23];
|
|
55
|
+
let w;
|
|
56
|
+
return t[24] !== u || t[25] !== m ? (w = /* @__PURE__ */ h.jsxs("div", { className: "relative w-full h-full", children: [
|
|
57
|
+
u,
|
|
58
|
+
m
|
|
59
|
+
] }), t[24] = u, t[25] = m, t[26] = w) : w = t[26], w;
|
|
66
60
|
}
|
|
67
|
-
function
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
61
|
+
function F(B) {
|
|
62
|
+
const t = V.c(13), {
|
|
63
|
+
infoBox: e,
|
|
64
|
+
index: v,
|
|
65
|
+
setActiveIndex: S,
|
|
66
|
+
position: x,
|
|
67
|
+
mode: j,
|
|
68
|
+
visibilityThreshold: p,
|
|
69
|
+
backgroundColor: f,
|
|
70
|
+
width: n
|
|
71
|
+
} = B, c = _(null);
|
|
72
|
+
let s;
|
|
73
|
+
t[0] !== p ? (s = {
|
|
79
74
|
once: !1,
|
|
80
|
-
amount:
|
|
81
|
-
})
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
o.title,
|
|
96
|
-
o.description
|
|
97
|
-
]
|
|
98
|
-
}
|
|
99
|
-
)
|
|
100
|
-
}
|
|
101
|
-
);
|
|
75
|
+
amount: p
|
|
76
|
+
}, t[0] = p, t[1] = s) : s = t[1], q(c, s) && S(v);
|
|
77
|
+
const a = `min-h-screen flex ${x === "center" ? "justify-center" : x === "right" ? "justify-end" : "justify-start"}`, y = `p-8 ${j === "overlay" ? "h-fit mx-10 " : ""}`;
|
|
78
|
+
let i;
|
|
79
|
+
t[2] !== f || t[3] !== n ? (i = {
|
|
80
|
+
backgroundColor: f,
|
|
81
|
+
width: n
|
|
82
|
+
}, t[2] = f, t[3] = n, t[4] = i) : i = t[4];
|
|
83
|
+
let o;
|
|
84
|
+
t[5] !== e.description || t[6] !== e.title || t[7] !== y || t[8] !== i ? (o = /* @__PURE__ */ h.jsxs("div", { className: y, style: i, children: [
|
|
85
|
+
e.title,
|
|
86
|
+
e.description
|
|
87
|
+
] }), t[5] = e.description, t[6] = e.title, t[7] = y, t[8] = i, t[9] = o) : o = t[9];
|
|
88
|
+
let r;
|
|
89
|
+
return t[10] !== a || t[11] !== o ? (r = /* @__PURE__ */ h.jsx("section", { ref: c, className: a, children: o }), t[10] = a, t[11] = o, t[12] = r) : r = t[12], r;
|
|
102
90
|
}
|
|
103
91
|
export {
|
|
104
|
-
|
|
92
|
+
O as ScrollStory
|
|
105
93
|
};
|
|
106
94
|
//# sourceMappingURL=ScrollStory.js.map
|
package/dist/ScrollStory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollStory.js","sources":["../src/Components/Dashboard/ScrollStory.tsx"],"sourcesContent":["// Scrollytelling.tsx\r\nimport { motion, useInView } from 'motion/react';\r\nimport { useRef, useState } from 'react';\r\n\r\nimport { SingleGraphDashboard } from './SingleGraphDashboard';\r\n\r\nimport {\r\n ChaptersDataType,\r\n GraphTypeForGriddedGraph,\r\n InfoBoxDataType,\r\n SectionsArrDataType,\r\n} from '@/Types';\r\n\r\ninterface Props {\r\n /** Defines if the information is shown as overlay or on the side */\r\n mode?: 'overlay' | 'side';\r\n /** Defines the width of the info section */\r\n infoWidth?: string;\r\n /** Defined the different chapters for the story and different sections within the story */\r\n chapters: ChaptersDataType[];\r\n /** Position of info on the page */\r\n infoPosition?: 'left' | 'right' | 'center';\r\n /** Sets how much of the element (from 0 to 1) must be visible before it's considered in view and it trigger the animation in the scrollytelling */\r\n visibilityThreshold?: number;\r\n /** Sets background color of the info box. */\r\n infoBackgroundColor?: string;\r\n}\r\n\r\n/** ScrollStory is a scrollytelling container component that reveals content step-by-step as the user scrolls through the page. This does not include GeoHub maps and 3-D graph; for those please use `PerformanceIntensiveScrollStory`. */\r\nexport function ScrollStory(props: Props) {\r\n const {\r\n chapters,\r\n visibilityThreshold = 0.5,\r\n mode = 'overlay',\r\n infoWidth = '320px',\r\n infoPosition = 'left',\r\n infoBackgroundColor = 'rgba(255,255,255,0.8)',\r\n } = props;\r\n const [activeIndex, setActiveIndex] = useState(0);\r\n const sectionsArr: SectionsArrDataType[] = [];\r\n chapters.forEach((d, i) => {\r\n d.sections.forEach((s, j) => {\r\n sectionsArr.push({\r\n chapter: i,\r\n dataSettings: d.dataSettings,\r\n section: j,\r\n graphType: d.graphType,\r\n infoBox: s.infoBox,\r\n graphSettings: { ...d.graphSettings, ...(s.graphSettings || {}), animate: true },\r\n graphDataConfiguration: s.graphDataConfiguration || d.graphDataConfiguration || [],\r\n });\r\n });\r\n });\r\n return (\r\n <div className='relative w-full h-full'>\r\n {/* Background Layer */}\r\n <motion.div\r\n key={sectionsArr[activeIndex].chapter}\r\n className='fixed top-0 h-full -z-10'\r\n initial={{ opacity: 0 }}\r\n animate={{ opacity: 1 }}\r\n transition={{ duration: 0.5 }}\r\n style={{\r\n left: mode === 'overlay' ? 0 : infoPosition === 'right' ? 0 : infoWidth,\r\n width: mode === 'overlay' ? '100%' : `calc(100% - ${infoWidth})`,\r\n }}\r\n >\r\n <SingleGraphDashboard\r\n graphType={sectionsArr[activeIndex].graphType as GraphTypeForGriddedGraph}\r\n dataSettings={sectionsArr[activeIndex].dataSettings}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n graphDataConfiguration={sectionsArr[activeIndex].graphDataConfiguration}\r\n />\r\n </motion.div>\r\n <div>\r\n {sectionsArr.map((section, idx) => (\r\n <ScrollySection\r\n width={infoWidth}\r\n key={`${section.chapter}-${section.section}`}\r\n index={idx}\r\n infoBox={section.infoBox}\r\n setActiveIndex={setActiveIndex}\r\n position={infoPosition}\r\n mode={mode}\r\n visibilityThreshold={visibilityThreshold}\r\n backgroundColor={infoBackgroundColor}\r\n />\r\n ))}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nfunction ScrollySection({\r\n infoBox,\r\n index,\r\n setActiveIndex,\r\n position,\r\n mode,\r\n visibilityThreshold,\r\n backgroundColor,\r\n width,\r\n}: {\r\n infoBox: InfoBoxDataType;\r\n index: number;\r\n setActiveIndex: (idx: number) => void;\r\n position: 'left' | 'right' | 'center';\r\n mode: 'overlay' | 'side';\r\n visibilityThreshold: number;\r\n backgroundColor: string;\r\n width: string;\r\n}) {\r\n const ref = useRef(null);\r\n const isInView = useInView(ref, {\r\n once: false,\r\n amount: visibilityThreshold,\r\n });\r\n if (isInView) setActiveIndex(index);\r\n return (\r\n <section\r\n ref={ref}\r\n className={`min-h-screen flex ${position === 'center' ? 'justify-center' : position === 'right' ? 'justify-end' : 'justify-start'}`}\r\n >\r\n <div\r\n className={`p-8 ${mode === 'overlay' ? 'h-fit mx-10 ' : ''}`}\r\n style={{\r\n backgroundColor,\r\n width,\r\n }}\r\n >\r\n {infoBox.title}\r\n {infoBox.description}\r\n </div>\r\n </section>\r\n );\r\n}\r\n"],"names":["ScrollStory","props","chapters","visibilityThreshold","mode","infoWidth","infoPosition","infoBackgroundColor","activeIndex","setActiveIndex","useState","sectionsArr","d","i","s","j","
|
|
1
|
+
{"version":3,"file":"ScrollStory.js","sources":["../src/Components/Dashboard/ScrollStory.tsx"],"sourcesContent":["// Scrollytelling.tsx\r\nimport { motion, useInView } from 'motion/react';\r\nimport { useRef, useState } from 'react';\r\n\r\nimport { SingleGraphDashboard } from './SingleGraphDashboard';\r\n\r\nimport {\r\n ChaptersDataType,\r\n GraphTypeForGriddedGraph,\r\n InfoBoxDataType,\r\n SectionsArrDataType,\r\n} from '@/Types';\r\n\r\ninterface Props {\r\n /** Defines if the information is shown as overlay or on the side */\r\n mode?: 'overlay' | 'side';\r\n /** Defines the width of the info section */\r\n infoWidth?: string;\r\n /** Defined the different chapters for the story and different sections within the story */\r\n chapters: ChaptersDataType[];\r\n /** Position of info on the page */\r\n infoPosition?: 'left' | 'right' | 'center';\r\n /** Sets how much of the element (from 0 to 1) must be visible before it's considered in view and it trigger the animation in the scrollytelling */\r\n visibilityThreshold?: number;\r\n /** Sets background color of the info box. */\r\n infoBackgroundColor?: string;\r\n}\r\n\r\n/** ScrollStory is a scrollytelling container component that reveals content step-by-step as the user scrolls through the page. This does not include GeoHub maps and 3-D graph; for those please use `PerformanceIntensiveScrollStory`. */\r\nexport function ScrollStory(props: Props) {\r\n const {\r\n chapters,\r\n visibilityThreshold = 0.5,\r\n mode = 'overlay',\r\n infoWidth = '320px',\r\n infoPosition = 'left',\r\n infoBackgroundColor = 'rgba(255,255,255,0.8)',\r\n } = props;\r\n const [activeIndex, setActiveIndex] = useState(0);\r\n const sectionsArr: SectionsArrDataType[] = [];\r\n chapters.forEach((d, i) => {\r\n d.sections.forEach((s, j) => {\r\n sectionsArr.push({\r\n chapter: i,\r\n dataSettings: d.dataSettings,\r\n section: j,\r\n graphType: d.graphType,\r\n infoBox: s.infoBox,\r\n graphSettings: { ...d.graphSettings, ...(s.graphSettings || {}), animate: true },\r\n graphDataConfiguration: s.graphDataConfiguration || d.graphDataConfiguration || [],\r\n });\r\n });\r\n });\r\n return (\r\n <div className='relative w-full h-full'>\r\n {/* Background Layer */}\r\n <motion.div\r\n key={sectionsArr[activeIndex].chapter}\r\n className='fixed top-0 h-full -z-10'\r\n initial={{ opacity: 0 }}\r\n animate={{ opacity: 1 }}\r\n transition={{ duration: 0.5 }}\r\n style={{\r\n left: mode === 'overlay' ? 0 : infoPosition === 'right' ? 0 : infoWidth,\r\n width: mode === 'overlay' ? '100%' : `calc(100% - ${infoWidth})`,\r\n }}\r\n >\r\n <SingleGraphDashboard\r\n graphType={sectionsArr[activeIndex].graphType as GraphTypeForGriddedGraph}\r\n dataSettings={sectionsArr[activeIndex].dataSettings}\r\n graphSettings={sectionsArr[activeIndex].graphSettings}\r\n graphDataConfiguration={sectionsArr[activeIndex].graphDataConfiguration}\r\n />\r\n </motion.div>\r\n <div>\r\n {sectionsArr.map((section, idx) => (\r\n <ScrollySection\r\n width={infoWidth}\r\n key={`${section.chapter}-${section.section}`}\r\n index={idx}\r\n infoBox={section.infoBox}\r\n setActiveIndex={setActiveIndex}\r\n position={infoPosition}\r\n mode={mode}\r\n visibilityThreshold={visibilityThreshold}\r\n backgroundColor={infoBackgroundColor}\r\n />\r\n ))}\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nfunction ScrollySection({\r\n infoBox,\r\n index,\r\n setActiveIndex,\r\n position,\r\n mode,\r\n visibilityThreshold,\r\n backgroundColor,\r\n width,\r\n}: {\r\n infoBox: InfoBoxDataType;\r\n index: number;\r\n setActiveIndex: (idx: number) => void;\r\n position: 'left' | 'right' | 'center';\r\n mode: 'overlay' | 'side';\r\n visibilityThreshold: number;\r\n backgroundColor: string;\r\n width: string;\r\n}) {\r\n const ref = useRef(null);\r\n const isInView = useInView(ref, {\r\n once: false,\r\n amount: visibilityThreshold,\r\n });\r\n if (isInView) setActiveIndex(index);\r\n return (\r\n <section\r\n ref={ref}\r\n className={`min-h-screen flex ${position === 'center' ? 'justify-center' : position === 'right' ? 'justify-end' : 'justify-start'}`}\r\n >\r\n <div\r\n className={`p-8 ${mode === 'overlay' ? 'h-fit mx-10 ' : ''}`}\r\n style={{\r\n backgroundColor,\r\n width,\r\n }}\r\n >\r\n {infoBox.title}\r\n {infoBox.description}\r\n </div>\r\n </section>\r\n );\r\n}\r\n"],"names":["ScrollStory","props","$","_c","chapters","visibilityThreshold","t0","mode","t1","infoWidth","t2","infoPosition","t3","infoBackgroundColor","t4","undefined","activeIndex","setActiveIndex","useState","sectionsArr","forEach","d","i","sections","s","j","push","chapter","dataSettings","section","graphType","infoBox","graphSettings","animate","graphDataConfiguration","t5","t6","t7","t8","Symbol","for","opacity","duration","t9","t10","t11","left","width","t12","t13","t14","t15","t16","jsx","SingleGraphDashboard","t17","t18","map","idx","ScrollySection","t19","jsxs","index","position","backgroundColor","ref","useRef","once","amount","useInView","description","title"],"mappings":"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"}
|
package/dist/SimpleLineChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CHPV5EwG-DjM48pIC.cjs"),h=require("react"),u=require("./parse-hMnG_lRV.cjs"),Re=require("./simple-statistics-xm8c0LQQ.cjs"),Ce=require("./index-CQ3e6Ewi.cjs"),Ee=require("./numberFormattingFunction-02t-wJta.cjs"),Oe=require("./Tooltip-Cpv0QohJ.cjs"),S=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),fe=require("./customArea-1G1S78s_.cjs"),Le=require("./Axis-CkNn1wit.cjs"),Ne=require("./AxisTitle-Wkz-xeQL.cjs"),ke=require("./XTicksAndGridLines-RKy7BVCO.cjs"),Se=require("./ReferenceLine-D04j-zeV.cjs"),De=require("./RegressionLine-D-49RaHa.cjs"),qe=require("./YTicksAndGridLines-qGpRo_t1.cjs"),$e=require("./index-BHe3wsWF.cjs"),Te=require("./time-Byw_jYQ7.cjs"),Ie=require("./linear-BVckp9RD.cjs"),be=require("./line-DHV4JwCR.cjs"),ne=require("./step-BZ3C8QFW.cjs"),Me=require("./select-Bnfk0lJx.cjs"),Ve=require("./init-DU0ybBc_.cjs"),Fe=require("./pointer-Dkq5NV1q.cjs"),He=require("./use-in-view-CEwlc_dd.cjs"),H=require("./proxy-CKadx4lC.cjs"),Ge=require("./GraphFooter.cjs"),Pe=require("./GraphHeader.cjs"),We=require("./Colors.cjs"),Ye=require("./EmptyState-B8IpKGcL.cjs");function Xe(re){const{data:O,width:b,height:$,lineColor:T,suffix:L,prefix:D,dateFormat:r,highlightAreaSettings:q,showValues:c,noOfXTicks:G,rightMargin:oe,leftMargin:j,topMargin:ae,bottomMargin:P,tooltip:v,onSeriesMouseOver:I,refValues:W,minValue:Y,maxValue:X,animate:s,rtl:U,strokeWidth:le,showDots:ce,annotations:xe,customHighlightAreaSettings:ue,regressionLine:M,yAxisTitle:B,noOfYTicks:me,maxDate:V,minDate:F,curveType:N,styles:a,classNames:m,precision:w,customLayers:z}=re,J=h.useRef(null),d=He.useInView(J,{once:s.once,amount:s.amount}),[A,pe]=h.useState(!1);h.useEffect(()=>{if(d&&!A){const e=setTimeout(()=>{pe(!0)},(s.duration+.5)*1e3);return()=>clearTimeout(e)}},[d,A,s.duration]);const he=N==="linear"?be.curveLinear:N==="step"?ne.curveStep:N==="stepAfter"?ne.stepAfter:N==="stepBefore"?ne.stepBefore:ne.monotoneX,[k,K]=h.useState(void 0),[Q,Z]=h.useState(void 0),[R,E]=h.useState(void 0),g={top:ae,bottom:P,left:B?j+30:j,right:oe},_=h.useRef(null),i=Ce.orderBy(O.map(e=>({...e,date:u.parse(`${e.date}`,r,new Date)})),["date"],["asc"]),ee=q.map(e=>({...e,coordinates:[e.coordinates[0]===null?null:u.parse(`${e.coordinates[0]}`,r,new Date),e.coordinates[1]===null?null:u.parse(`${e.coordinates[1]}`,r,new Date)]})),te=ue.map(e=>({...e,coordinates:e.coordinates.map((y,C)=>C%2===0?u.parse(`${y}`,r,new Date):y)})),l=b-g.left-g.right,p=$-g.top-g.bottom,ie=F?u.parse(`${F}`,r,new Date):i[0].date,x=V?u.parse(`${V}`,r,new Date):i[i.length-1].date,f=S.checkIfNullOrUndefined(Y)?Math.min(...i.map(e=>e.y).filter(e=>e!=null))!==1/0?Math.min(...i.map(e=>e.y).filter(e=>e!=null))>0?0:Math.min(...i.map(e=>e.y).filter(e=>e!=null)):0:Y,de=Math.max(...i.map(e=>e.y).filter(e=>e!=null))!==1/0?Math.max(...i.map(e=>e.y).filter(e=>e!=null)):0,n=Te.time().domain([ie,x]).range([0,l]),o=Ie.linear().domain([f,S.checkIfNullOrUndefined(X)?de>0?de:0:X]).range([p,0]).nice(),ye=be.line().x(e=>n(e.date)).y(e=>o(e.y)).curve(he),je=o.ticks(me),ve=n.ticks(G);h.useEffect(()=>{const e=C=>{const se=i[Ve.bisectCenter(i.map(ge=>ge.date),n.invert(Fe.pointer(C)[0]),0)];K(se||i[i.length-1]),I?.(se||i[i.length-1]),E(C.clientY),Z(C.clientX)},y=()=>{K(void 0),Z(void 0),E(void 0),I?.(void 0)};Me.select(_.current).on("mousemove",e).on("mouseout",y)},[n,i,I]);const Ae=Re.linearRegression(i.filter(e=>!S.checkIfNullOrUndefined(e.date)&&!S.checkIfNullOrUndefined(e.y)).map(e=>[n(e.date),o(e.y)])),we=Re.linearRegressionLine(Ae);return t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[t.jsxRuntimeExports.jsx(H.motion.svg,{width:`${b}px`,height:`${$}px`,viewBox:`0 0 ${b} ${$}`,direction:"ltr",ref:J,children:t.jsxRuntimeExports.jsxs("g",{transform:`translate(${g.left},${g.top})`,children:[t.jsxRuntimeExports.jsx($e.HighlightArea,{areaSettings:ee,width:l,height:p,scale:n,animate:s,isInView:d}),t.jsxRuntimeExports.jsx(fe.CustomArea,{areaSettings:te,scaleX:n,scaleY:o,animate:s,isInView:d}),t.jsxRuntimeExports.jsxs("g",{children:[t.jsxRuntimeExports.jsx(qe.YTicksAndGridLines,{values:je.filter(e=>e!==0),y:je.filter(e=>e!==0).map(e=>o(e)),x1:0-j,x2:l+g.right,styles:{gridLines:a?.yAxis?.gridLines,labels:a?.yAxis?.labels},classNames:{gridLines:m?.yAxis?.gridLines,labels:m?.yAxis?.labels},suffix:L,prefix:D,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:w}),t.jsxRuntimeExports.jsx(Le.Axis,{y1:o(f<0?0:f),y2:o(f<0?0:f),x1:0-j,x2:l+g.right,label:Ee.numberFormattingFunction(f<0?0:f,"NA",w,D,L),labelPos:{x:0-j,y:o(f<0?0:f),dx:0,dy:de<0?"1em":-5},classNames:{axis:m?.xAxis?.axis,label:m?.yAxis?.labels},styles:{axis:a?.xAxis?.axis,label:a?.yAxis?.labels}}),t.jsxRuntimeExports.jsx(Ne.AxisTitle,{x:0-j-15,y:p/2,style:a?.yAxis?.title,className:m?.yAxis?.title,text:B,rotate90:!0})]}),t.jsxRuntimeExports.jsx(ke.XTicksAndGridLines,{values:ve.map(e=>u.format(e,r)),x:ve.map(e=>n(e)),y1:0,y2:p,styles:{gridLines:a?.xAxis?.gridLines,labels:a?.xAxis?.labels},classNames:{gridLines:t.mo("opacity-0",m?.xAxis?.gridLines),labels:t.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",m?.xAxis?.labels)},suffix:L,prefix:D,labelType:"primary",showGridLines:!0,precision:w}),z.filter(e=>e.position==="before").map(e=>e.layer),t.jsxRuntimeExports.jsxs("g",{children:[t.jsxRuntimeExports.jsx(H.motion.path,{style:{stroke:T,fill:"none",strokeWidth:le},exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{pathLength:0,d:ye(i)||"",opacity:1},whileInView:{pathLength:1,d:ye(i)||"",opacity:1,transition:{duration:s.duration}}},initial:"initial",animate:d?"whileInView":"initial"}),k?t.jsxRuntimeExports.jsx("line",{y1:0,y2:p,x1:n(k.date),x2:n(k.date),className:t.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",m?.mouseOverLine),style:a?.mouseOverLine}):null]}),t.jsxRuntimeExports.jsx("g",{children:i.map((e,y)=>t.jsxRuntimeExports.jsx(H.motion.g,{children:S.checkIfNullOrUndefined(e.y)?null:t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[ce?t.jsxRuntimeExports.jsx(H.motion.circle,{r:l/i.length<5?0:l/i.length<20?2:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,cx:n(e.date),cy:o(e.y),fill:T},whileInView:{opacity:1,fill:T,transition:{duration:A?s.duration:.5,delay:A?0:s.duration},cx:n(e.date),cy:o(e.y)}},initial:"initial",animate:d?"whileInView":"initial"}):null,c?t.jsxRuntimeExports.jsx(H.motion.text,{dy:-8,style:{textAnchor:"middle",...a?.graphObjectValues||{}},className:t.mo("graph-value text-xs font-bold",m?.graphObjectValues),exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,x:n(e.date),y:o(e.y)},whileInView:{opacity:1,x:n(e.date),y:o(e.y),transition:{duration:A?s.duration:.5,delay:A?0:s.duration}}},initial:"initial",animate:d?"whileInView":"initial",children:Ee.numberFormattingFunction(e.y,"NA",w,D,L)}):null]})},y))}),W?t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:W.map((e,y)=>t.jsxRuntimeExports.jsx(Se.RefLineY,{text:e.text,color:e.color,y:o(e.value),x1:0-j,x2:l+g.right,classNames:e.classNames,styles:e.styles,animate:s,isInView:d},y))}):null,t.jsxRuntimeExports.jsx("g",{children:xe.map((e,y)=>{const C=fe.getLineEndPoint({x:e.xCoordinate?n(u.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?o(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?n(u.parse(`${e.xCoordinate}`,r,new Date)):0,y:e.yCoordinate?o(e.yCoordinate):0},S.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),se=e.showConnector?{y1:C.y,x1:C.x,y2:e.yCoordinate?o(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?n(u.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?o(e.yCoordinate):0,cx:e.xCoordinate?n(u.parse(`${e.xCoordinate}`,r,new Date)):0,circleRadius:S.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,ge={y:e.yCoordinate?o(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:U?0:e.xCoordinate?n(u.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:U?e.xCoordinate?n(u.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0):l+g.right-(e.xCoordinate?n(u.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return t.jsxRuntimeExports.jsx(fe.Annotation,{color:e.color,connectorsSettings:se,labelSettings:ge,text:e.text,classNames:e.classNames,styles:e.styles,animate:s,isInView:d},y)})}),t.jsxRuntimeExports.jsx("g",{children:M?t.jsxRuntimeExports.jsx(De.RegressionLine,{x1:0,x2:l,y1:we(0),y2:we(l),graphHeight:p,graphWidth:l,className:m?.regLine,style:a?.regLine,color:typeof M=="string"?M:void 0,animate:s,isInView:d}):null}),z.filter(e=>e.position==="after").map(e=>e.layer),t.jsxRuntimeExports.jsx("rect",{ref:_,style:{fill:"none",pointerEvents:"all"},width:l,height:p})]})}),k&&v&&Q&&R?t.jsxRuntimeExports.jsx(Oe.Tooltip,{data:k,body:v,xPos:Q,yPos:R,backgroundStyle:a?.tooltip,className:m?.tooltip}):null]})}function Ue(re){const{data:O,graphTitle:b,lineColor:$,suffix:T="",sources:L,prefix:D="",graphDescription:r,height:q,width:c,footNote:G,noOfXTicks:oe=10,dateFormat:j="yyyy",showValues:ae=!1,padding:P,backgroundColor:v=!1,leftMargin:I=30,rightMargin:W=30,topMargin:Y=20,bottomMargin:X=25,relativeHeight:s,tooltip:U,onSeriesMouseOver:le,highlightAreaSettings:ce=[],graphID:xe,minValue:ue,maxValue:M,maxDate:B,minDate:me,graphDownload:V=!1,dataDownload:F=!1,animate:N=!1,language:a="en",refValues:m=[],minHeight:w=0,strokeWidth:z=2,showDots:J=!0,annotations:d=[],customHighlightAreaSettings:A=[],theme:pe="light",ariaLabel:he,regressionLine:k=!1,yAxisTitle:K,noOfYTicks:Q=5,curveType:Z="curve",styles:R,classNames:E,precision:g=2,customLayers:_=[]}=re,[i,ee]=h.useState(0),[te,l]=h.useState(0),p=h.useRef(null),ie=h.useRef(null);return h.useEffect(()=>{const x=new ResizeObserver(f=>{ee(c||f[0].target.clientWidth||620),l(q||f[0].target.clientHeight||480)});return p.current&&(l(p.current.clientHeight||480),ee(p.current.clientWidth||620),c||x.observe(p.current)),()=>x.disconnect()},[c,q]),t.jsxRuntimeExports.jsx("div",{className:`${pe||"light"} flex ${c?"w-fit grow-0":"w-full grow"}`,dir:a==="he"||a==="ar"?"rtl":void 0,children:t.jsxRuntimeExports.jsx("div",{className:t.mo(`${v?v===!0?"bg-primary-gray-200 dark:bg-primary-gray-650 ":"":"bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${a||"en"}`,c?"w-fit":"w-full",E?.graphContainer),style:{...R?.graphContainer||{},...v&&v!==!0?{backgroundColor:v}:{}},id:xe,ref:ie,"aria-label":he||`${b?`The graph shows ${b}. `:""}This is a line chart that shows trends over time.${r?` ${r}`:""}`,children:t.jsxRuntimeExports.jsx("div",{className:"flex grow",style:{padding:v?P||"1rem":P||0},children:t.jsxRuntimeExports.jsxs("div",{className:"flex flex-col w-full gap-4 grow justify-between",children:[b||r||V||F?t.jsxRuntimeExports.jsx(Pe.GraphHeader,{styles:{title:R?.title,description:R?.description},classNames:{title:E?.title,description:E?.description},graphTitle:b,graphDescription:r,width:c,graphDownload:V?ie.current:void 0,dataDownload:F?O.map(x=>x.data).filter(x=>x!==void 0).length>0?O.map(x=>x.data).filter(x=>x!==void 0):O.filter(x=>x!==void 0):null}):null,O.length===0?t.jsxRuntimeExports.jsx("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:t.jsxRuntimeExports.jsx(Ye.EmptyState,{})}):t.jsxRuntimeExports.jsx("div",{className:"flex flex-col grow justify-center leading-0",ref:p,"aria-label":"Graph area",children:(c||i)&&(q||te)?t.jsxRuntimeExports.jsx(Xe,{data:O,lineColor:$||We.Colors.primaryColors["blue-600"],width:c||i,height:Math.max(w,q||(s?w?(c||i)*s>w?(c||i)*s:w:(c||i)*s:te)),suffix:T,prefix:D,dateFormat:j,showValues:ae,noOfXTicks:oe,leftMargin:I,rightMargin:W,topMargin:Y,bottomMargin:X,tooltip:U,highlightAreaSettings:ce,onSeriesMouseOver:le,refValues:m,minValue:ue,maxValue:M,animate:N===!0?{duration:.5,once:!0,amount:.5}:N||{duration:0,once:!0,amount:0},rtl:a==="he"||a==="ar",strokeWidth:z,showDots:J,annotations:d,customHighlightAreaSettings:A,regressionLine:k,yAxisTitle:K,noOfYTicks:Q,maxDate:B,minDate:me,curveType:Z,styles:R,classNames:E,precision:g,customLayers:_}):null}),L||G?t.jsxRuntimeExports.jsx(Ge.GraphFooter,{styles:{footnote:R?.footnote,source:R?.source},classNames:{footnote:E?.footnote,source:E?.source},sources:L,footNote:G,width:c}):null]})})})})}exports.SimpleLineChart=Ue;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),w=require("react"),v=require("./parse-hMnG_lRV.cjs"),ke=require("./simple-statistics-xm8c0LQQ.cjs"),Me=require("./index-Cno4Q0YE.cjs"),Se=require("./numberFormattingFunction-02t-wJta.cjs"),Ve=require("./Tooltip-4dJo4_AF.cjs"),Et=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Le=require("./customArea-CMF5g-C3.cjs"),Ie=require("./Axis-DxRV2yMi.cjs"),Fe=require("./AxisTitle-sS5bLLR7.cjs"),He=require("./XTicksAndGridLines-B6CELS7q.cjs"),Ge=require("./ReferenceLine-BH0qdf4R.cjs"),Pe=require("./RegressionLine-BOTTNSrr.cjs"),We=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Ye=require("./index-B_sAFsEV.cjs"),Xe=require("./time-CZd5YLSP.cjs"),Ue=require("./linear-BwPAspcq.cjs"),De=require("./line-DHV4JwCR.cjs"),he=require("./step-BZ3C8QFW.cjs"),Be=require("./select-Bnfk0lJx.cjs"),ze=require("./init-DU0ybBc_.cjs"),Je=require("./pointer-Dkq5NV1q.cjs"),Ke=require("./use-in-view-QcfiW0w3.cjs"),_t=require("./proxy-BxvUI_9l.cjs"),Qe=require("./GraphFooter.cjs"),Ze=require("./GraphHeader.cjs"),_e=require("./Colors.cjs"),ti=require("./EmptyState-sAEZ_5rU.cjs"),qe=require("./GraphContainer-d8A46BK2.cjs");function ei(i){const t=n.compilerRuntimeExports.c(110),{data:R,width:H,height:ot,lineColor:G,suffix:E,prefix:q,dateFormat:s,highlightAreaSettings:rt,showValues:b,noOfXTicks:bt,rightMargin:At,leftMargin:C,topMargin:Ct,bottomMargin:at,tooltip:lt,onSeriesMouseOver:Ot,refValues:Pt,minValue:Wt,maxValue:ct,animate:o,rtl:Lt,strokeWidth:ut,showDots:kt,annotations:Yt,customHighlightAreaSettings:xt,regressionLine:mt,yAxisTitle:P,noOfYTicks:Xt,maxDate:Ut,minDate:Bt,curveType:ft,styles:d,classNames:f,precision:N,customLayers:T}=i,zt=w.useRef(null);let $;t[0]!==o.amount||t[1]!==o.once?($={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=$):$=t[2];const x=Ke.useInView(zt,$),[A,Jt]=w.useState(!1);let pt,W;t[3]!==o.duration||t[4]!==A||t[5]!==x?(pt=()=>{if(x&&!A){const e=setTimeout(()=>{Jt(!0)},(o.duration+.5)*1e3);return()=>clearTimeout(e)}},W=[x,A,o.duration],t[3]=o.duration,t[4]=A,t[5]=x,t[6]=pt,t[7]=W):(pt=t[6],W=t[7]),w.useEffect(pt,W);const te=ft==="linear"?De.curveLinear:ft==="step"?he.curveStep:ft==="stepAfter"?he.stepAfter:ft==="stepBefore"?he.stepBefore:he.monotoneX,[O,m]=w.useState(void 0),[c,Kt]=w.useState(void 0),[M,St]=w.useState(void 0),dt=P?C+30:C;let Y;t[8]!==at||t[9]!==At||t[10]!==dt||t[11]!==Ct?(Y={top:Ct,bottom:at,left:dt,right:At},t[8]=at,t[9]=At,t[10]=dt,t[11]=Ct,t[12]=Y):Y=t[12];const y=Y,X=w.useRef(null);let U;t[13]!==s?(U=e=>({...e,date:v.parse(`${e.date}`,s,new Date)}),t[13]=s,t[14]=U):U=t[14];const a=Me.orderBy(R.map(U),["date"],["asc"]);let B;if(t[15]!==s||t[16]!==rt){let e;t[18]!==s?(e=g=>({...g,coordinates:[g.coordinates[0]===null?null:v.parse(`${g.coordinates[0]}`,s,new Date),g.coordinates[1]===null?null:v.parse(`${g.coordinates[1]}`,s,new Date)]}),t[18]=s,t[19]=e):e=t[19],B=rt.map(e),t[15]=s,t[16]=rt,t[17]=B}else B=t[17];const ht=B;let z;if(t[20]!==xt||t[21]!==s){let e;t[23]!==s?(e=g=>({...g,coordinates:g.coordinates.map((F,Gt)=>Gt%2===0?v.parse(`${F}`,s,new Date):F)}),t[23]=s,t[24]=e):e=t[24],z=xt.map(e),t[20]=xt,t[21]=s,t[22]=z}else z=t[22];const Dt=z,u=H-y.left-y.right,h=ot-y.top-y.bottom,qt=Bt?v.parse(`${Bt}`,s,new Date):a[0].date,Nt=Ut?v.parse(`${Ut}`,s,new Date):a[a.length-1].date,p=Et.checkIfNullOrUndefined(Wt)?Math.min(...a.map(vi).filter(yi))!==1/0?Math.min(...a.map(gi).filter(hi))>0?0:Math.min(...a.map(di).filter(pi)):0:Wt,L=Math.max(...a.map(fi).filter(mi))!==1/0?Math.max(...a.map(xi).filter(ui)):0,r=Xe.time().domain([qt,Nt]).range([0,u]);let J;t[25]!==L||t[26]!==ct?(J=Et.checkIfNullOrUndefined(ct)?L>0?L:0:ct,t[25]=L,t[26]=ct,t[27]=J):J=t[27];const l=Ue.linear().domain([p,J]).range([h,0]).nice(),Tt=De.line().x(e=>r(e.date)).y(e=>l(e.y)).curve(te),gt=l.ticks(Xt),$t=r.ticks(bt);w.useEffect(()=>{const e=F=>{const Gt=a[ze.bisectCenter(a.map(ci),r.invert(Je.pointer(F)[0]),0)];m(Gt||a[a.length-1]),Ot?.(Gt||a[a.length-1]),St(F.clientY),Kt(F.clientX)},g=()=>{m(void 0),Kt(void 0),St(void 0),Ot?.(void 0)};Be.select(X.current).on("mousemove",e).on("mouseout",g)},[r,a,Ot]);const Mt=ke.linearRegression(a.filter(li).map(e=>[r(e.date),l(e.y)])),Vt=ke.linearRegressionLine(Mt);let K;t[28]!==o||t[29]!==h||t[30]!==u||t[31]!==ht||t[32]!==x||t[33]!==r?(K=n.jsxRuntimeExports.jsx(Ye.HighlightArea,{areaSettings:ht,width:u,height:h,scale:r,animate:o,isInView:x}),t[28]=o,t[29]=h,t[30]=u,t[31]=ht,t[32]=x,t[33]=r,t[34]=K):K=t[34];const yt=d?.yAxis?.gridLines,vt=d?.yAxis?.labels;let Q;t[35]!==yt||t[36]!==vt?(Q={gridLines:yt,labels:vt},t[35]=yt,t[36]=vt,t[37]=Q):Q=t[37];const jt=f?.yAxis?.gridLines,Z=f?.yAxis?.labels;let _;t[38]!==jt||t[39]!==Z?(_={gridLines:jt,labels:Z},t[38]=jt,t[39]=Z,t[40]=_):_=t[40];const tt=l(p<0?0:p),Qt=l(p<0?0:p),et=0-C,Zt=u+y.right,wt=p<0?0:p;let V;t[41]!==N||t[42]!==q||t[43]!==E||t[44]!==wt?(V=Se.numberFormattingFunction(wt,"NA",N,q,E),t[41]=N,t[42]=q,t[43]=E,t[44]=wt,t[45]=V):V=t[45];const it=0-C,nt=l(p<0?0:p),Rt=L<0?"1em":-5;let k;t[46]!==it||t[47]!==nt||t[48]!==Rt?(k={x:it,y:nt,dx:0,dy:Rt},t[46]=it,t[47]=nt,t[48]=Rt,t[49]=k):k=t[49];const S=f?.xAxis?.axis,D=f?.yAxis?.labels;let j;t[50]!==S||t[51]!==D?(j={axis:S,label:D},t[50]=S,t[51]=D,t[52]=j):j=t[52];const st=d?.xAxis?.axis,It=d?.yAxis?.labels;let I;t[53]!==st||t[54]!==It?(I={axis:st,label:It},t[53]=st,t[54]=It,t[55]=I):I=t[55];let ee;t[56]!==tt||t[57]!==Qt||t[58]!==et||t[59]!==Zt||t[60]!==V||t[61]!==k||t[62]!==j||t[63]!==I?(ee=n.jsxRuntimeExports.jsx(Ie.Axis,{y1:tt,y2:Qt,x1:et,x2:Zt,label:V,labelPos:k,classNames:j,styles:I}),t[56]=tt,t[57]=Qt,t[58]=et,t[59]=Zt,t[60]=V,t[61]=k,t[62]=j,t[63]=I,t[64]=ee):ee=t[64];const ge=0-C-15,ye=h/2,ve=d?.yAxis?.title,je=f?.yAxis?.title;let ie;t[65]!==ge||t[66]!==ye||t[67]!==ve||t[68]!==je||t[69]!==P?(ie=n.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:ge,y:ye,style:ve,className:je,text:P,rotate90:!0}),t[65]=ge,t[66]=ye,t[67]=ve,t[68]=je,t[69]=P,t[70]=ie):ie=t[70];let ne;t[71]!==s?(ne=e=>v.format(e,s),t[71]=s,t[72]=ne):ne=t[72];const Ne=$t.map(ne),Te=$t.map(e=>r(e)),we=d?.xAxis?.gridLines,Re=d?.xAxis?.labels;let se;t[73]!==we||t[74]!==Re?(se={gridLines:we,labels:Re},t[73]=we,t[74]=Re,t[75]=se):se=t[75];const Ee=f?.xAxis?.gridLines;let Ft;t[76]!==Ee?(Ft=n.mo("opacity-0",Ee),t[76]=Ee,t[77]=Ft):Ft=t[77];const be=f?.xAxis?.labels;let Ht;t[78]!==be?(Ht=n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",be),t[78]=be,t[79]=Ht):Ht=t[79];let oe;t[80]!==Ft||t[81]!==Ht?(oe={gridLines:Ft,labels:Ht},t[80]=Ft,t[81]=Ht,t[82]=oe):oe=t[82];let re;t[83]!==T?(re=T.filter(oi).map(si),t[83]=T,t[84]=re):re=t[84];let ae;t[85]!==G||t[86]!==ut?(ae={stroke:G,fill:"none",strokeWidth:ut},t[85]=G,t[86]=ut,t[87]=ae):ae=t[87];let le;t[88]!==o.duration?(le={opacity:0,transition:{duration:o.duration}},t[88]=o.duration,t[89]=le):le=t[89];const Ae=a.map((e,g)=>n.jsxRuntimeExports.jsx(_t.motion.g,{children:Et.checkIfNullOrUndefined(e.y)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[kt?n.jsxRuntimeExports.jsx(_t.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,cx:r(e.date),cy:l(e.y),fill:G},whileInView:{opacity:1,fill:G,transition:{duration:A?o.duration:.5,delay:A?0:o.duration},cx:r(e.date),cy:l(e.y)}},initial:"initial",animate:x?"whileInView":"initial"}):null,b?n.jsxRuntimeExports.jsx(_t.motion.text,{dy:-8,style:{textAnchor:"middle",...d?.graphObjectValues||{}},className:n.mo("graph-value text-xs font-bold",f?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,x:r(e.date),y:l(e.y)},whileInView:{opacity:1,x:r(e.date),y:l(e.y),transition:{duration:A?o.duration:.5,delay:A?0:o.duration}}},initial:"initial",animate:x?"whileInView":"initial",children:Se.numberFormattingFunction(e.y,"NA",N,q,E)}):null]})},g));let ce;t[90]!==Ae?(ce=n.jsxRuntimeExports.jsx("g",{children:Ae}),t[90]=Ae,t[91]=ce):ce=t[91];const Ce=Yt.map((e,g)=>{const F=Le.getLineEndPoint({x:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},Et.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Gt=e.showConnector?{y1:F.y,x1:F.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date)):0,circleRadius:Et.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,$e={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:Lt?0:e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:Lt?e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0):u+y.right-(e.xCoordinate?r(v.parse(`${e.xCoordinate}`,s,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return n.jsxRuntimeExports.jsx(Le.Annotation,{color:e.color,connectorsSettings:Gt,labelSettings:$e,text:e.text,classNames:e.classNames,styles:e.styles,animate:o,isInView:x},g)});let ue;t[92]!==Ce?(ue=n.jsxRuntimeExports.jsx("g",{children:Ce}),t[92]=Ce,t[93]=ue):ue=t[93];const Oe=mt?n.jsxRuntimeExports.jsx(Pe.RegressionLine,{x1:0,x2:u,y1:Vt(0),y2:Vt(u),graphHeight:h,graphWidth:u,className:f?.regLine,style:d?.regLine,color:typeof mt=="string"?mt:void 0,animate:o,isInView:x}):null;let xe;t[94]!==Oe?(xe=n.jsxRuntimeExports.jsx("g",{children:Oe}),t[94]=Oe,t[95]=xe):xe=t[95];let me;t[96]!==T?(me=T.filter(ni).map(ii),t[96]=T,t[97]=me):me=t[97];let fe;t[98]===Symbol.for("react.memo_cache_sentinel")?(fe={fill:"none",pointerEvents:"all"},t[98]=fe):fe=t[98];let pe;t[99]!==X||t[100]!==h||t[101]!==u?(pe=n.jsxRuntimeExports.jsx("rect",{ref:X,style:fe,width:u,height:h}),t[99]=X,t[100]=h,t[101]=u,t[102]=pe):pe=t[102];let de;return t[103]!==f?.tooltip||t[104]!==c||t[105]!==M||t[106]!==O||t[107]!==d?.tooltip||t[108]!==lt?(de=O&<&&c&&M?n.jsxRuntimeExports.jsx(Ve.Tooltip,{data:O,body:lt,xPos:c,yPos:M,backgroundStyle:d?.tooltip,className:f?.tooltip}):null,t[103]=f?.tooltip,t[104]=c,t[105]=M,t[106]=O,t[107]=d?.tooltip,t[108]=lt,t[109]=de):de=t[109],n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[n.jsxRuntimeExports.jsx(_t.motion.svg,{width:`${H}px`,height:`${ot}px`,viewBox:`0 0 ${H} ${ot}`,direction:"ltr",ref:zt,children:n.jsxRuntimeExports.jsxs("g",{transform:`translate(${y.left},${y.top})`,children:[K,n.jsxRuntimeExports.jsx(Le.CustomArea,{areaSettings:Dt,scaleX:r,scaleY:l,animate:o,isInView:x}),n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(We.YTicksAndGridLines,{values:gt.filter(ai),y:gt.filter(ri).map(e=>l(e)),x1:0-C,x2:u+y.right,styles:Q,classNames:_,suffix:E,prefix:q,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:N}),ee,ie]}),n.jsxRuntimeExports.jsx(He.XTicksAndGridLines,{values:Ne,x:Te,y1:0,y2:h,styles:se,classNames:oe,suffix:E,prefix:q,labelType:"primary",showGridLines:!0,precision:N}),re,n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(_t.motion.path,{style:ae,exit:le,variants:{initial:{pathLength:0,d:Tt(a)||"",opacity:1},whileInView:{pathLength:1,d:Tt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:x?"whileInView":"initial"}),O?n.jsxRuntimeExports.jsx("line",{y1:0,y2:h,x1:r(O.date),x2:r(O.date),className:n.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",f?.mouseOverLine),style:d?.mouseOverLine}):null]}),ce,Pt?n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Pt.map((e,g)=>n.jsxRuntimeExports.jsx(Ge.RefLineY,{text:e.text,color:e.color,y:l(e.value),x1:0-C,x2:u+y.right,classNames:e.classNames,styles:e.styles,animate:o,isInView:x},g))}):null,ue,xe,me,pe]})}),de]})}function ii(i){return i.layer}function ni(i){return i.position==="after"}function si(i){return i.layer}function oi(i){return i.position==="before"}function ri(i){return i!==0}function ai(i){return i!==0}function li(i){return!Et.checkIfNullOrUndefined(i.date)&&!Et.checkIfNullOrUndefined(i.y)}function ci(i){return i.date}function ui(i){return i!=null}function xi(i){return i.y}function mi(i){return i!=null}function fi(i){return i.y}function pi(i){return i!=null}function di(i){return i.y}function hi(i){return i!=null}function gi(i){return i.y}function yi(i){return i!=null}function vi(i){return i.y}function ji(i){const t=n.compilerRuntimeExports.c(83),{data:R,graphTitle:H,lineColor:ot,suffix:G,sources:E,prefix:q,graphDescription:s,height:rt,width:b,footNote:bt,noOfXTicks:At,dateFormat:C,showValues:Ct,padding:at,backgroundColor:lt,leftMargin:Ot,rightMargin:Pt,topMargin:Wt,bottomMargin:ct,relativeHeight:o,tooltip:Lt,onSeriesMouseOver:ut,highlightAreaSettings:kt,graphID:Yt,minValue:xt,maxValue:mt,maxDate:P,minDate:Xt,graphDownload:Ut,dataDownload:Bt,animate:ft,language:d,refValues:f,minHeight:N,strokeWidth:T,showDots:zt,annotations:$,customHighlightAreaSettings:x,theme:A,ariaLabel:Jt,regressionLine:pt,yAxisTitle:W,noOfYTicks:te,curveType:O,styles:m,classNames:c,precision:Kt,customLayers:M}=i,St=G===void 0?"":G,dt=q===void 0?"":q,Y=At===void 0?10:At,y=C===void 0?"yyyy":C,X=Ct===void 0?!1:Ct,U=lt===void 0?!1:lt,a=Ot===void 0?30:Ot,B=Pt===void 0?30:Pt,ht=Wt===void 0?20:Wt,z=ct===void 0?25:ct;let Dt;t[0]!==kt?(Dt=kt===void 0?[]:kt,t[0]=kt,t[1]=Dt):Dt=t[1];const u=Dt,h=Ut===void 0?!1:Ut,qt=Bt===void 0?!1:Bt,Nt=ft===void 0?!1:ft,p=d===void 0?"en":d;let L;t[2]!==f?(L=f===void 0?[]:f,t[2]=f,t[3]=L):L=t[3];const r=L,J=N===void 0?0:N,l=T===void 0?2:T,Tt=zt===void 0?!0:zt;let gt;t[4]!==$?(gt=$===void 0?[]:$,t[4]=$,t[5]=gt):gt=t[5];const $t=gt;let Mt;t[6]!==x?(Mt=x===void 0?[]:x,t[6]=x,t[7]=Mt):Mt=t[7];const Vt=Mt,K=A===void 0?"light":A,yt=pt===void 0?!1:pt,vt=te===void 0?5:te,Q=O===void 0?"curve":O,jt=Kt===void 0?2:Kt;let Z;t[8]!==M?(Z=M===void 0?[]:M,t[8]=M,t[9]=Z):Z=t[9];const _=Z,[tt,Qt]=w.useState(0),[et,Zt]=w.useState(0),wt=w.useRef(null),V=w.useRef(null);let it,nt;t[10]===Symbol.for("react.memo_cache_sentinel")?(it=()=>{const It=new ResizeObserver(I=>{Qt(I[0].target.clientWidth||620),Zt(I[0].target.clientHeight||480)});return wt.current&&It.observe(wt.current),()=>It.disconnect()},nt=[],t[10]=it,t[11]=nt):(it=t[10],nt=t[11]),w.useEffect(it,nt);const Rt=c?.graphContainer,k=m?.graphContainer;let S;t[12]!==c?.description||t[13]!==c?.title||t[14]!==R||t[15]!==qt||t[16]!==s||t[17]!==h||t[18]!==H||t[19]!==m?.description||t[20]!==m?.title||t[21]!==b?(S=H||s||h||qt?n.jsxRuntimeExports.jsx(Ze.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:c?.title,description:c?.description},graphTitle:H,graphDescription:s,width:b,graphDownload:h?V:void 0,dataDownload:qt?R.map(Ai).filter(bi).length>0?R.map(Ei).filter(Ri):R.filter(wi):null}):null,t[12]=c?.description,t[13]=c?.title,t[14]=R,t[15]=qt,t[16]=s,t[17]=h,t[18]=H,t[19]=m?.description,t[20]=m?.title,t[21]=b,t[22]=S):S=t[22];let D;t[23]!==Nt||t[24]!==$t||t[25]!==z||t[26]!==c||t[27]!==Q||t[28]!==Vt||t[29]!==_||t[30]!==R||t[31]!==y||t[32]!==u||t[33]!==p||t[34]!==a||t[35]!==ot||t[36]!==P||t[37]!==mt||t[38]!==Xt||t[39]!==xt||t[40]!==Y||t[41]!==vt||t[42]!==ut||t[43]!==jt||t[44]!==dt||t[45]!==r||t[46]!==yt||t[47]!==B||t[48]!==Tt||t[49]!==X||t[50]!==l||t[51]!==m||t[52]!==St||t[53]!==et||t[54]!==tt||t[55]!==Lt||t[56]!==ht||t[57]!==W?(D=R.length===0?n.jsxRuntimeExports.jsx("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:n.jsxRuntimeExports.jsx(ti.EmptyState,{})}):n.jsxRuntimeExports.jsx(qe.GraphArea,{ref:wt,children:tt&&et?n.jsxRuntimeExports.jsx(ei,{data:R,lineColor:ot||_e.Colors.primaryColors["blue-600"],width:tt,height:et,suffix:St,prefix:dt,dateFormat:y,showValues:X,noOfXTicks:Y,leftMargin:a,rightMargin:B,topMargin:ht,bottomMargin:z,tooltip:Lt,highlightAreaSettings:u,onSeriesMouseOver:ut,refValues:r,minValue:xt,maxValue:mt,animate:Nt===!0?{duration:.5,once:!0,amount:.5}:Nt||{duration:0,once:!0,amount:0},rtl:p==="he"||p==="ar",strokeWidth:l,showDots:Tt,annotations:$t,customHighlightAreaSettings:Vt,regressionLine:yt,yAxisTitle:W,noOfYTicks:vt,maxDate:P,minDate:Xt,curveType:Q,styles:m,classNames:c,precision:jt,customLayers:_}):null}),t[23]=Nt,t[24]=$t,t[25]=z,t[26]=c,t[27]=Q,t[28]=Vt,t[29]=_,t[30]=R,t[31]=y,t[32]=u,t[33]=p,t[34]=a,t[35]=ot,t[36]=P,t[37]=mt,t[38]=Xt,t[39]=xt,t[40]=Y,t[41]=vt,t[42]=ut,t[43]=jt,t[44]=dt,t[45]=r,t[46]=yt,t[47]=B,t[48]=Tt,t[49]=X,t[50]=l,t[51]=m,t[52]=St,t[53]=et,t[54]=tt,t[55]=Lt,t[56]=ht,t[57]=W,t[58]=D):D=t[58];let j;t[59]!==c?.footnote||t[60]!==c?.source||t[61]!==bt||t[62]!==E||t[63]!==m?.footnote||t[64]!==m?.source||t[65]!==b?(j=E||bt?n.jsxRuntimeExports.jsx(Qe.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:c?.footnote,source:c?.source},sources:E,footNote:bt,width:b}):null,t[59]=c?.footnote,t[60]=c?.source,t[61]=bt,t[62]=E,t[63]=m?.footnote,t[64]=m?.source,t[65]=b,t[66]=j):j=t[66];let st;return t[67]!==Jt||t[68]!==U||t[69]!==Yt||t[70]!==rt||t[71]!==p||t[72]!==J||t[73]!==at||t[74]!==o||t[75]!==Rt||t[76]!==k||t[77]!==S||t[78]!==D||t[79]!==j||t[80]!==K||t[81]!==b?(st=n.jsxRuntimeExports.jsxs(qe.GraphContainer,{className:Rt,style:k,id:Yt,ref:V,"aria-label":Jt,backgroundColor:U,theme:K,language:p,minHeight:J,width:b,height:rt,relativeHeight:o,padding:at,children:[S,D,j]}),t[67]=Jt,t[68]=U,t[69]=Yt,t[70]=rt,t[71]=p,t[72]=J,t[73]=at,t[74]=o,t[75]=Rt,t[76]=k,t[77]=S,t[78]=D,t[79]=j,t[80]=K,t[81]=b,t[82]=st):st=t[82],st}function wi(i){return i!==void 0}function Ri(i){return i!==void 0}function Ei(i){return i.data}function bi(i){return i!==void 0}function Ai(i){return i.data}exports.SimpleLineChart=ji;
|
|
2
2
|
//# sourceMappingURL=SimpleLineChart.cjs.map
|