@undp/data-viz 2.4.1 → 2.5.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 +11 -9
- package/dist/AreaChart.js +320 -322
- package/dist/AreaChart.js.map +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.cjs.map +1 -1
- package/dist/BarGraph.d.ts +15 -25
- package/dist/BarGraph.js +1694 -1694
- 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 +13 -9
- package/dist/BasicStatCard.js +79 -81
- 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 +11 -9
- package/dist/BeeSwarmChart.js +335 -336
- 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 +13 -3
- package/dist/BiVariateChoroplethMap.js +247 -245
- 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 +11 -5
- package/dist/BulletChart.js +560 -559
- 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 +11 -9
- package/dist/ButterflyChart.js +348 -350
- 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 +11 -3
- package/dist/ChoroplethMap.js +213 -213
- package/dist/ChoroplethMap.js.map +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +11 -9
- package/dist/CirclePackingGraph.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.d.ts +1 -1
- package/dist/DataCards.js +1 -1
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.cjs.map +1 -1
- package/dist/DataTable.d.ts +4 -5
- package/dist/DataTable.js +114 -116
- package/dist/DataTable.js.map +1 -1
- package/dist/{DetailsModal-jmmKRMRM.cjs → DetailsModal-Du8Fr1QD.cjs} +2 -2
- package/dist/{DetailsModal-jmmKRMRM.cjs.map → DetailsModal-Du8Fr1QD.cjs.map} +1 -1
- package/dist/{DetailsModal-B2XBWR7w.js → DetailsModal-GqEbGHY2.js} +2 -2
- package/dist/{DetailsModal-B2XBWR7w.js.map → DetailsModal-GqEbGHY2.js.map} +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.cjs.map +1 -1
- package/dist/DifferenceLineChart.d.ts +11 -9
- package/dist/DifferenceLineChart.js +502 -504
- 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 +14 -9
- package/dist/DonutChart.js +174 -179
- package/dist/DonutChart.js.map +1 -1
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.d.ts +1 -1
- package/dist/DotDensityMap.js +2 -2
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.cjs.map +1 -1
- package/dist/DualAxisLineChart.d.ts +13 -9
- package/dist/DualAxisLineChart.js +341 -351
- 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 +11 -9
- package/dist/DumbbellChart.js +592 -593
- package/dist/DumbbellChart.js.map +1 -1
- package/dist/GeoHubCompareMaps.cjs +1 -1
- package/dist/GeoHubCompareMaps.d.ts +1 -1
- package/dist/GeoHubCompareMaps.js +1 -1
- package/dist/GeoHubMap.cjs +1 -1
- package/dist/GeoHubMap.d.ts +1 -1
- package/dist/GeoHubMap.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.d.ts +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphEl-B7x5ku_y.cjs +2 -0
- package/dist/GraphEl-B7x5ku_y.cjs.map +1 -0
- package/dist/GraphEl-B8tGXqWk.js +1829 -0
- package/dist/GraphEl-B8tGXqWk.js.map +1 -0
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +28 -16
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +28 -16
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.cjs.map +1 -1
- package/dist/HeatMap.d.ts +11 -9
- package/dist/HeatMap.js +203 -205
- 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 +11 -5
- package/dist/Histogram.js +88 -89
- package/dist/Histogram.js.map +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.cjs.map +1 -1
- package/dist/HybridMap.d.ts +11 -3
- package/dist/HybridMap.js +279 -279
- package/dist/HybridMap.js.map +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.cjs.map +1 -1
- package/dist/LineChartWithConfidenceInterval.d.ts +11 -9
- package/dist/LineChartWithConfidenceInterval.js +393 -395
- package/dist/LineChartWithConfidenceInterval.js.map +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +28 -16
- package/dist/MultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/MultiGraphDashboardWideToLongFormat.d.ts +1 -1
- package/dist/MultiGraphDashboardWideToLongFormatFromConfig.d.ts +1 -1
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.cjs.map +1 -1
- package/dist/MultiLineAltChart.d.ts +11 -9
- package/dist/MultiLineAltChart.js +411 -413
- 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 +11 -9
- package/dist/MultiLineChart.js +438 -440
- 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 +13 -13
- package/dist/ParetoChart.js +347 -355
- package/dist/ParetoChart.js.map +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +28 -16
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +28 -16
- package/dist/PerformanceIntensiveScrollStory.d.ts +28 -16
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.cjs.map +1 -1
- package/dist/RadarChart.d.ts +11 -5
- package/dist/RadarChart.js +213 -213
- package/dist/RadarChart.js.map +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.cjs.map +1 -1
- package/dist/SankeyChart.d.ts +11 -9
- package/dist/SankeyChart.js +448 -450
- 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 +13 -13
- package/dist/ScatterPlot.js +490 -498
- package/dist/ScatterPlot.js.map +1 -1
- package/dist/ScrollStory.d.ts +28 -16
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.cjs.map +1 -1
- package/dist/SimpleLineChart.d.ts +11 -9
- package/dist/SimpleLineChart.js +362 -364
- package/dist/SimpleLineChart.js.map +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +28 -16
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +28 -16
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +28 -16
- package/dist/SingleGraphDashboardThreeDGraphs.js +40 -39
- package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +28 -16
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.d.ts +1 -1
- package/dist/SlopeChart.js +2 -2
- package/dist/SparkLine.cjs +1 -1
- package/dist/SparkLine.d.ts +1 -1
- package/dist/SparkLine.js +1 -1
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.cjs.map +1 -1
- package/dist/StatCardFromData.d.ts +11 -9
- package/dist/StatCardFromData.js +113 -116
- 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 +11 -9
- package/dist/StripChart.js +434 -435
- 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 +11 -3
- package/dist/ThreeDGlobe.js +143 -143
- package/dist/ThreeDGlobe.js.map +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/{Tooltip-Bj-s__cI.js → Tooltip-3EYDVa3w.js} +2 -2
- package/dist/{Tooltip-Bj-s__cI.js.map → Tooltip-3EYDVa3w.js.map} +1 -1
- package/dist/{Tooltip-Hr46paWP.cjs → Tooltip-C9F3uYG0.cjs} +2 -2
- package/dist/{Tooltip-Hr46paWP.cjs.map → Tooltip-C9F3uYG0.cjs.map} +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.cjs.map +1 -1
- package/dist/TreeMapGraph.d.ts +11 -9
- package/dist/TreeMapGraph.js +369 -371
- package/dist/TreeMapGraph.js.map +1 -1
- package/dist/Types.d.ts +28 -16
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.cjs.map +1 -1
- package/dist/UnitChart.d.ts +11 -5
- package/dist/UnitChart.js +118 -119
- package/dist/UnitChart.js.map +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.cjs.map +1 -1
- package/dist/WaterfallChart.d.ts +11 -9
- package/dist/WaterfallChart.js +306 -308
- package/dist/WaterfallChart.js.map +1 -1
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs +2 -0
- package/dist/XTicksAndGridLines-B4UhDVyU.cjs.map +1 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js +40 -0
- package/dist/XTicksAndGridLines-CkYwVshF.js.map +1 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js +40 -0
- package/dist/YTicksAndGridLines-BbujwxOB.js.map +1 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs +2 -0
- package/dist/YTicksAndGridLines-sT3zdCs6.cjs.map +1 -0
- package/dist/index-BPyj_6hG.js +375 -0
- package/dist/index-BPyj_6hG.js.map +1 -0
- package/dist/index-DuLvdHo2.cjs +2 -0
- package/dist/index-DuLvdHo2.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +105 -245
- package/dist/index.js +2 -2
- package/dist/numberFormattingFunction-BUUV_luR.js +28 -0
- package/dist/numberFormattingFunction-BUUV_luR.js.map +1 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs +2 -0
- package/dist/numberFormattingFunction-u2iNHL_c.cjs.map +1 -0
- package/dist/{string2HTML-ZoGd08P_.cjs → string2HTML-30nfIm8R.cjs} +2 -2
- package/dist/{string2HTML-ZoGd08P_.cjs.map → string2HTML-30nfIm8R.cjs.map} +1 -1
- package/dist/{string2HTML-BrFperRM.js → string2HTML-DL-pInUB.js} +2 -2
- package/dist/{string2HTML-BrFperRM.js.map → string2HTML-DL-pInUB.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/GraphEl-B73N4RIA.js +0 -1906
- package/dist/GraphEl-B73N4RIA.js.map +0 -1
- package/dist/GraphEl-Lt1og0C-.cjs +0 -2
- package/dist/GraphEl-Lt1og0C-.cjs.map +0 -1
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs +0 -2
- package/dist/XTicksAndGridLines-C5DuC5oY.cjs.map +0 -1
- package/dist/XTicksAndGridLines-gdbGX2rm.js +0 -39
- package/dist/XTicksAndGridLines-gdbGX2rm.js.map +0 -1
- package/dist/YTicksAndGridLines-CsNSq9W9.js +0 -39
- package/dist/YTicksAndGridLines-CsNSq9W9.js.map +0 -1
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs +0 -2
- package/dist/YTicksAndGridLines-DFjm8RCc.cjs.map +0 -1
- package/dist/index-B0Awa_de.js +0 -377
- package/dist/index-B0Awa_de.js.map +0 -1
- package/dist/index-CP8cmNzt.cjs +0 -2
- package/dist/index-CP8cmNzt.cjs.map +0 -1
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs +0 -2
- package/dist/numberFormattingFunction-Cn9R7CM9.cjs.map +0 -1
- package/dist/numberFormattingFunction-DqMf_v1m.js +0 -28
- package/dist/numberFormattingFunction-DqMf_v1m.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FeatureCollection } from 'geojson';
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
3
4
|
|
|
4
5
|
declare interface AmbientLightConfig extends BaseLightConfig {
|
|
5
6
|
type: 'ambient';
|
|
@@ -119,6 +120,9 @@ declare interface DataTableColumnDataType {
|
|
|
119
120
|
align?: 'left' | 'right' | 'center';
|
|
120
121
|
suffix?: string;
|
|
121
122
|
prefix?: string;
|
|
123
|
+
locale?: string;
|
|
124
|
+
precision?: number;
|
|
125
|
+
padZeros?: boolean;
|
|
122
126
|
columnWidth?: number;
|
|
123
127
|
}
|
|
124
128
|
|
|
@@ -163,8 +167,6 @@ declare interface GraphSettingsDataType {
|
|
|
163
167
|
footNote?: string | React.ReactNode;
|
|
164
168
|
height?: number;
|
|
165
169
|
width?: number;
|
|
166
|
-
suffix?: string;
|
|
167
|
-
prefix?: string;
|
|
168
170
|
sources?: SourcesDataType[];
|
|
169
171
|
barPadding?: number;
|
|
170
172
|
showTicks?: boolean;
|
|
@@ -194,7 +196,14 @@ declare interface GraphSettingsDataType {
|
|
|
194
196
|
barColors?: [string, string];
|
|
195
197
|
centerGap?: number;
|
|
196
198
|
columnData?: DataTableColumnDataType[];
|
|
197
|
-
mainText?: string
|
|
199
|
+
mainText?: string | {
|
|
200
|
+
label: string;
|
|
201
|
+
suffix?: string;
|
|
202
|
+
prefix?: string;
|
|
203
|
+
locale?: string;
|
|
204
|
+
padZeros?: boolean;
|
|
205
|
+
precision?: number;
|
|
206
|
+
} | ReactElement;
|
|
198
207
|
subNote?: string;
|
|
199
208
|
radius?: number;
|
|
200
209
|
strokeWidth?: number;
|
|
@@ -350,16 +359,6 @@ declare interface GraphSettingsDataType {
|
|
|
350
359
|
colorLegendColors?: string[];
|
|
351
360
|
colorLegendDomain?: string[];
|
|
352
361
|
barAxisTitle?: string;
|
|
353
|
-
barSuffix?: string;
|
|
354
|
-
barPrefix?: string;
|
|
355
|
-
lineSuffix?: string;
|
|
356
|
-
linePrefix?: string;
|
|
357
|
-
xSuffix?: string;
|
|
358
|
-
xPrefix?: string;
|
|
359
|
-
ySuffix?: string;
|
|
360
|
-
yPrefix?: string;
|
|
361
|
-
lineSuffixes?: [string, string];
|
|
362
|
-
linePrefixes?: [string, string];
|
|
363
362
|
allowDataDownloadOnDetail?: string | boolean;
|
|
364
363
|
noOfItemsInAPage?: number;
|
|
365
364
|
curveType?: CurveTypes;
|
|
@@ -379,7 +378,6 @@ declare interface GraphSettingsDataType {
|
|
|
379
378
|
measureBarWidthFactor?: number;
|
|
380
379
|
mapLegend?: string | React.ReactNode | MapLegendDataType[];
|
|
381
380
|
dimmedOpacity?: number;
|
|
382
|
-
precision?: number;
|
|
383
381
|
customLayers?: CustomLayerDataType[];
|
|
384
382
|
dashedLines?: (string | number)[];
|
|
385
383
|
dashSettings?: string[];
|
|
@@ -416,7 +414,13 @@ declare interface GraphSettingsDataType {
|
|
|
416
414
|
showVoronoiTesselation?: boolean;
|
|
417
415
|
mapOverlay?: MapOverlayDataType;
|
|
418
416
|
useVoronoiInteraction?: boolean;
|
|
419
|
-
|
|
417
|
+
numberDisplayOptions?: NumberFormatOptions;
|
|
418
|
+
leftLineNumberDisplayOptions?: NumberFormatOptions;
|
|
419
|
+
rightLineNumberDisplayOptions?: NumberFormatOptions;
|
|
420
|
+
barNumberDisplayOptions?: NumberFormatOptions;
|
|
421
|
+
lineNumberDisplayOptions?: NumberFormatOptions;
|
|
422
|
+
xNumberDisplayOptions?: NumberFormatOptions;
|
|
423
|
+
yNumberDisplayOptions?: NumberFormatOptions;
|
|
420
424
|
}
|
|
421
425
|
|
|
422
426
|
declare type GraphType = GraphTypeForGriddedGraph;
|
|
@@ -444,7 +448,7 @@ declare interface InfoBoxDataType {
|
|
|
444
448
|
description?: string | React.ReactNode;
|
|
445
449
|
}
|
|
446
450
|
|
|
447
|
-
declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | '
|
|
451
|
+
declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | 'ja' | 'ka' | 'km' | 'ko' | 'my' | 'ne' | 'zh' | 'custom';
|
|
448
452
|
|
|
449
453
|
declare type LightConfig = AmbientLightConfig | DirectionalLightConfig | PointLightConfig | SpotLightConfig;
|
|
450
454
|
|
|
@@ -461,6 +465,14 @@ declare interface MapOverlayDataType {
|
|
|
461
465
|
|
|
462
466
|
declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
|
|
463
467
|
|
|
468
|
+
declare interface NumberFormatOptions {
|
|
469
|
+
locale?: string;
|
|
470
|
+
precision?: number;
|
|
471
|
+
prefix?: string;
|
|
472
|
+
suffix?: string;
|
|
473
|
+
padZeros?: boolean;
|
|
474
|
+
}
|
|
475
|
+
|
|
464
476
|
declare interface PerformanceIntensiveChaptersDataType {
|
|
465
477
|
dataSettings: DataSettingsDataType;
|
|
466
478
|
graphSettings: GraphSettingsDataType;
|
package/dist/RadarChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-D4pAp7u0.cjs"),E=require("react"),Wt=require("./index-DQA8q5sC.cjs"),Bt=require("./Tooltip-Hr46paWP.cjs"),S=require("./Colors.cjs"),St=require("./numberFormattingFunction-Cn9R7CM9.cjs"),z=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Xt=require("./DetailsModal-jmmKRMRM.cjs"),Nt=require("./linear-CgUCbw9F.cjs"),qt=require("./line-DaEMhXmx.cjs"),kt=require("./proxy-CqH8m8IQ.cjs"),Yt=require("./use-in-view-dnRv_qqF.cjs"),zt=require("./index-FXfr51ZM.cjs"),Jt=require("./GraphFooter.cjs"),Kt=require("./GraphHeader.cjs"),Qt=require("./EmptyState-CFmiFPHz.cjs"),Zt=require("./ColorLegendWithMouseOver.cjs"),At=require("./uniqBy-O05lp2S5.cjs"),Vt=require("./GraphContainer-Cul9b74X.cjs");var te=Lt(qt.curveLinear);function Dt(e){this._curve=e}Dt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Lt(e){function t(o){return new Dt(e(o))}return t._curve=e,t}function ee(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(o){return arguments.length?t(Lt(o)):t()._curve},e}function ie(){return ee(qt.line().curve(te))}function Ot(){}function Pt(e,t,o){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-o),e._x2,e._y2)}function Tt(e,t){this._context=e,this._k=(1-t)/6}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Pt(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Pt(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function o(c){return new Tt(c,t)}return o.tension=function(c){return e(+c)},o})(0);function $t(e,t){this._context=e,this._k=(1-t)/6}$t.prototype={areaStart:Ot,areaEnd:Ot,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Pt(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ne=(function e(t){function o(c){return new $t(c,t)}return o.tension=function(c){return e(+c)},o})(0);function Ft(e){this._context=e}Ft.prototype={areaStart:Ot,areaEnd:Ot,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function oe(e){return new Ft(e)}function se(e){const t=n.compilerRuntimeExports.c(107),{data:o,radius:c,lineColors:r,tooltip:W,onSeriesMouseOver:B,onSeriesMouseClick:p,colorDomain:f,detailsOnClick:C,styles:u,classNames:a,selectedColor:N,axisLabels:J,strokeWidth:K,showValues:gt,showDots:yt,rightMargin:Q,topMargin:Z,bottomMargin:X,leftMargin:Y,curveType:Et,noOfTicks:_t,minValue:b,maxValue:A,resetSelectionOnDoubleClick:V,fillShape:tt,highlightedLines:q,animate:h,dimmedOpacity:g,precision:et,customLayers:j,locale:it}=e,R=E.useRef(null);let _;t[0]!==h.amount||t[1]!==h.once?(_={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=_):_=t[2];const D=Yt.useInView(R,_),vt=Et==="linear"?oe:ne;let nt;t[3]!==X||t[4]!==Y||t[5]!==Q||t[6]!==Z?(nt={top:Z,bottom:X,left:Y,right:Q},t[3]=X,t[4]=Y,t[5]=Q,t[6]=Z,t[7]=nt):nt=t[7];const L=nt,v=Math.min((2*c-Y-Q)/2,(2*c-Z-X)/2),[y,Mt]=E.useState(void 0),[I,bt]=E.useState(void 0),[ot,st]=E.useState(void 0),[rt,jt]=E.useState(void 0);let T,$,w,F,G,U,k,O,s,P,at,H,lt,ct;if(t[8]!==h.duration||t[9]!==J||t[10]!==a?.graphObjectValues||t[11]!==a?.xAxis?.axis||t[12]!==a?.xAxis?.gridLines||t[13]!==a?.xAxis?.labels||t[14]!==f||t[15]!==vt||t[16]!==j||t[17]!==o||t[18]!==C||t[19]!==g||t[20]!==tt||t[21]!==q||t[22]!==D||t[23]!==r||t[24]!==it||t[25]!==L.left||t[26]!==L.top||t[27]!==A||t[28]!==b||t[29]!==I||t[30]!==y||t[31]!==_t||t[32]!==p||t[33]!==B||t[34]!==et||t[35]!==c||t[36]!==v||t[37]!==V||t[38]!==N||t[39]!==yt||t[40]!==gt||t[41]!==K||t[42]!==u?.graphObjectValues||t[43]!==u?.xAxis?.axis||t[44]!==u?.xAxis?.gridLines||t[45]!==u?.xAxis?.labels){const l=Nt.linear().domain([0,o[0].values.length]).range([0,2*Math.PI]);let Rt;t[60]!==o||t[61]!==A?(Rt=z.checkIfNullOrUndefined(A)?Math.max(...o.map(je))<0?0:Math.max(...o.map(Me)):A,t[60]=o,t[61]=A,t[62]=Rt):Rt=t[62];const Gt=Rt;let It;t[63]!==o||t[64]!==b?(It=z.checkIfNullOrUndefined(b)?Math.min(...o.map(_e))>=0?0:Math.min(...o.map(ge)):b,t[63]=o,t[64]=b,t[65]=It):It=t[65];const Ut=It,M=Nt.linear().domain([Ut,Gt]).range([0,v]).nice(),Ht=M.ticks(_t),wt=ie().radius(i=>M(i)).angle((i,x)=>l(x)).curve(vt);$=kt.motion.svg,lt=`${c*2}px`,ct=`${c*2}px`,w=`0 0 ${c*2} ${c*2}`,F="ltr",G=R,U="mx-auto",at=`translate(${L.left},${L.top})`,t[66]!==j?(H=j.filter(fe).map(de),t[66]=j,t[67]=H):H=t[67],O=`translate(${v},${v})`,s=J.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(l(x)-Math.PI/2)*v,y2:Math.sin(l(x)-Math.PI/2)*v,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.axis),style:u?.xAxis?.axis},x),n.jsxRuntimeExports.jsx("text",{x:Math.cos(l(x)-Math.PI/2)*(v+6),y:Math.sin(l(x)-Math.PI/2)*(v+6),style:{textAnchor:Math.cos(l(x)-Math.PI/2)<0?"end":Math.cos(l(x)-Math.PI/2)<1e-5?"middle":"start",...u?.xAxis?.labels||""},dy:Math.sin(l(x)-Math.PI/2)<0?0:Math.sin(l(x)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",a?.xAxis?.labels),children:i})]},x)),P=Ht.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:wt(Array(J.length).fill(i))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.gridLines),style:{...u?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*M(i)>-1e-4?Math.sin(-Math.PI/2)*M(i)-7:Math.sin(-Math.PI/2)*M(i)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",a?.xAxis?.labels),style:u?.xAxis?.labels,children:St.numberFormattingFunction(i,void 0,et,void 0,void 0,it)})})})]},x)),T=zt.AnimatePresence,k=o.map((i,x)=>n.jsxRuntimeExports.jsxs(kt.motion.g,{variants:{initial:{opacity:y?i.label===y.label?1:g:N?i.color&&r[f.indexOf(i.color)]===N?1:g:q?i.label&&q.indexOf(i.label)!==-1?1:.3:1},whileInView:{opacity:y?i.label===y.label?1:g:N?i.color&&r[f.indexOf(i.color)]===N?1:g:q?i.label&&q.indexOf(i.label)!==-1?1:g:1,transition:{duration:h.duration}}},initial:"initial",animate:D?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:m=>{Mt(i),jt(m.clientY),st(m.clientX),B?.(i)},onMouseMove:m=>{Mt(i),jt(m.clientY),st(m.clientX)},onMouseLeave:()=>{Mt(void 0),st(void 0),jt(void 0),B?.(void 0)},onClick:()=>{(p||C)&&(Wt.isEqual(I,i)&&V?(bt(void 0),p?.(void 0)):(bt(i),p?.(i)))},children:[n.jsxRuntimeExports.jsx(kt.motion.path,{d:wt(i.values)||"",variants:{initial:{d:wt(i.values.map(me))||"",stroke:o.filter(pe).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray,fill:tt?o.filter(xe).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray:"none",strokeWidth:K},whileInView:{d:wt(i.values)||"",transition:{duration:h.duration},stroke:o.filter(he).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray,fill:tt?o.filter(ue).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray:"none",strokeWidth:K}},initial:"initial",animate:D?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:i.values.map((m,d)=>n.jsxRuntimeExports.jsx("g",{children:z.checkIfNullOrUndefined(m)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[yt?n.jsxRuntimeExports.jsx(kt.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:o.filter(ce).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray},whileInView:{cx:Math.cos(l(d)-Math.PI/2)*M(m),cy:Math.sin(l(d)-Math.PI/2)*M(m),opacity:1,transition:{duration:h.duration},fill:o.filter(le).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray}},initial:"initial",animate:D?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}):null,gt?n.jsxRuntimeExports.jsx(kt.motion.text,{style:{...u?.graphObjectValues||{}},dy:Math.sin(l(d)-Math.PI/2)<0?10:(Math.sin(l(d)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",a?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(l(d)-Math.PI/2)*(M(m)+6),y:Math.sin(l(d)-Math.PI/2)*(M(m)+6),fill:r[x],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(l(d)-Math.PI/2)*(M(m)+6),y:Math.sin(l(d)-Math.PI/2)*(M(m)+6),fill:r[x],textAnchor:Math.cos(l(d)-Math.PI/2)<0?"end":Math.cos(l(d)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:h.duration}}},initial:"initial",animate:D?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:St.numberFormattingFunction(m,void 0,et,void 0,void 0,it)}):null]})},d))})]},i.label||x)),t[8]=h.duration,t[9]=J,t[10]=a?.graphObjectValues,t[11]=a?.xAxis?.axis,t[12]=a?.xAxis?.gridLines,t[13]=a?.xAxis?.labels,t[14]=f,t[15]=vt,t[16]=j,t[17]=o,t[18]=C,t[19]=g,t[20]=tt,t[21]=q,t[22]=D,t[23]=r,t[24]=it,t[25]=L.left,t[26]=L.top,t[27]=A,t[28]=b,t[29]=I,t[30]=y,t[31]=_t,t[32]=p,t[33]=B,t[34]=et,t[35]=c,t[36]=v,t[37]=V,t[38]=N,t[39]=yt,t[40]=gt,t[41]=K,t[42]=u?.graphObjectValues,t[43]=u?.xAxis?.axis,t[44]=u?.xAxis?.gridLines,t[45]=u?.xAxis?.labels,t[46]=T,t[47]=$,t[48]=w,t[49]=F,t[50]=G,t[51]=U,t[52]=k,t[53]=O,t[54]=s,t[55]=P,t[56]=at,t[57]=H,t[58]=lt,t[59]=ct}else T=t[46],$=t[47],w=t[48],F=t[49],G=t[50],U=t[51],k=t[52],O=t[53],s=t[54],P=t[55],at=t[56],H=t[57],lt=t[58],ct=t[59];let ut;t[68]!==T||t[69]!==k?(ut=n.jsxRuntimeExports.jsx(T,{children:k}),t[68]=T,t[69]=k,t[70]=ut):ut=t[70];let ht;t[71]!==ut||t[72]!==O||t[73]!==s||t[74]!==P?(ht=n.jsxRuntimeExports.jsxs("g",{transform:O,children:[s,P,ut]}),t[71]=ut,t[72]=O,t[73]=s,t[74]=P,t[75]=ht):ht=t[75];let xt;t[76]!==j?(xt=j.filter(ae).map(re),t[76]=j,t[77]=xt):xt=t[77];let pt;t[78]!==ht||t[79]!==xt||t[80]!==at||t[81]!==H?(pt=n.jsxRuntimeExports.jsxs("g",{transform:at,children:[H,ht,xt]}),t[78]=ht,t[79]=xt,t[80]=at,t[81]=H,t[82]=pt):pt=t[82];let mt;t[83]!==$||t[84]!==w||t[85]!==F||t[86]!==G||t[87]!==U||t[88]!==pt||t[89]!==lt||t[90]!==ct?(mt=n.jsxRuntimeExports.jsx($,{width:lt,height:ct,viewBox:w,direction:F,ref:G,className:U,children:pt}),t[83]=$,t[84]=w,t[85]=F,t[86]=G,t[87]=U,t[88]=pt,t[89]=lt,t[90]=ct,t[91]=mt):mt=t[91];let dt;t[92]!==a?.tooltip||t[93]!==ot||t[94]!==rt||t[95]!==y||t[96]!==u?.tooltip||t[97]!==W?(dt=y&&W&&ot&&rt?n.jsxRuntimeExports.jsx(Bt.Tooltip,{data:y,body:W,xPos:ot,yPos:rt,backgroundStyle:u?.tooltip,className:a?.tooltip}):null,t[92]=a?.tooltip,t[93]=ot,t[94]=rt,t[95]=y,t[96]=u?.tooltip,t[97]=W,t[98]=dt):dt=t[98];let ft;t[99]!==a?.modal||t[100]!==C||t[101]!==I?(ft=C&&I!==void 0?n.jsxRuntimeExports.jsx(Xt.DetailsModal,{body:C,data:I,setData:bt,className:a?.modal}):null,t[99]=a?.modal,t[100]=C,t[101]=I,t[102]=ft):ft=t[102];let Ct;return t[103]!==mt||t[104]!==dt||t[105]!==ft?(Ct=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[mt,dt,ft]}),t[103]=mt,t[104]=dt,t[105]=ft,t[106]=Ct):Ct=t[106],Ct}function re(e){return e.layer}function ae(e){return e.position==="after"}function le(e){return e.color}function ce(e){return e.color}function ue(e){return e.color}function he(e){return e.color}function xe(e){return e.color}function pe(e){return e.color}function me(e){return 0}function de(e){return e.layer}function fe(e){return e.position==="before"}function ge(e){return Math.min(...e.values.filter(ye))}function ye(e){return!z.checkIfNullOrUndefined(e)}function _e(e){return Math.min(...e.values.filter(ve))}function ve(e){return!z.checkIfNullOrUndefined(e)}function Me(e){return Math.max(...e.values.filter(be))}function be(e){return!z.checkIfNullOrUndefined(e)}function je(e){return Math.max(...e.values.filter(ke))}function ke(e){return!z.checkIfNullOrUndefined(e)}function Ee(e){const{graphTitle:t,colors:o,sources:c,graphDescription:r,footNote:W,radius:B,data:p,showColorScale:f=!0,padding:C,backgroundColor:u=!1,tooltip:a,onSeriesMouseOver:N,graphID:J,onSeriesMouseClick:K,topMargin:gt=75,bottomMargin:yt=75,leftMargin:Q=75,rightMargin:Z=75,graphDownload:X=!1,dataDownload:Y=!1,colorDomain:Et,language:_t="en",theme:b="light",highlightedLines:A,width:V,height:tt,minHeight:q=0,strokeWidth:h=2,relativeHeight:g,ariaLabel:et,colorLegendTitle:j,detailsOnClick:it,styles:R,classNames:_,showNAColor:D=!0,axisLabels:vt,showDots:nt=!0,showValues:L=!1,curveType:v="curve",noOfTicks:y=5,minValue:Mt,maxValue:I,fillShape:bt=!1,resetSelectionOnDoubleClick:ot=!0,animate:st=!1,dimmedOpacity:rt=.3,precision:jt=2,customLayers:T=[],locale:$="en"}=e,[w,F]=E.useState(0),[G,U]=E.useState(void 0),k=E.useRef(null),O=E.useRef(null);return E.useEffect(()=>{const s=new ResizeObserver(P=>{F((Math.min(P[0].target.clientWidth||620,P[0].target.clientHeight||480,B||1/0)||420)/2)});return k.current&&s.observe(k.current),()=>s.disconnect()},[B]),n.jsxRuntimeExports.jsxs(Vt.GraphContainer,{className:_?.graphContainer,style:R?.graphContainer,id:J,ref:O,"aria-label":et,backgroundColor:u,theme:b,language:_t,minHeight:q,width:V,height:tt,relativeHeight:g,padding:C,children:[t||r||X||Y?n.jsxRuntimeExports.jsx(Kt.GraphHeader,{styles:{title:R?.title,description:R?.description},classNames:{title:_?.title,description:_?.description},graphTitle:t,graphDescription:r,width:V,graphDownload:X?O:void 0,dataDownload:Y?p.map(s=>s.data).filter(s=>s!==void 0).length>0?p.map(s=>s.data).filter(s=>s!==void 0):p.filter(s=>s!==void 0):null}):null,f&&p.filter(s=>s.color).length!==0&&p.length>0?n.jsxRuntimeExports.jsx(Zt.ColorLegendWithMouseOver,{width:V,colorLegendTitle:j,colors:o||S.Colors[b].categoricalColors.colors,colorDomain:Et||At.uniqBy(p,"color",!0),setSelectedColor:U,showNAColor:D,className:_?.colorLegend,isCenter:!0}):null,n.jsxRuntimeExports.jsxs(Vt.GraphArea,{ref:k,children:[p.length===0&&n.jsxRuntimeExports.jsx(Qt.EmptyState,{}),w&&p.length>0?n.jsxRuntimeExports.jsx(se,{data:p,lineColors:p.filter(s=>s.color).length===0?o?[o]:[S.Colors.primaryColors["blue-600"]]:o||S.Colors[b].categoricalColors.colors,radius:w,tooltip:a,colorDomain:Et||At.uniqBy(p,"color",!0),onSeriesMouseOver:N,onSeriesMouseClick:K,styles:R,detailsOnClick:it,selectedColor:G,axisLabels:vt,strokeWidth:h,showValues:L,showDots:nt,topMargin:gt,bottomMargin:yt,leftMargin:Q,rightMargin:Z,curveType:v,noOfTicks:y,minValue:Mt,maxValue:I,fillShape:bt,highlightedLines:A,resetSelectionOnDoubleClick:ot,animate:st===!0?{duration:.5,once:!0,amount:.5}:st||{duration:0,once:!0,amount:0},dimmedOpacity:rt,precision:jt,customLayers:T,locale:$}):null]}),c||W?n.jsxRuntimeExports.jsx(Jt.GraphFooter,{styles:{footnote:R?.footnote,source:R?.source},classNames:{footnote:_?.footnote,source:_?.source},sources:c,footNote:W,width:V}):null]})}exports.RadarChart=Ee;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-D4pAp7u0.cjs"),E=require("react"),Bt=require("./index-DQA8q5sC.cjs"),Xt=require("./Tooltip-C9F3uYG0.cjs"),S=require("./Colors.cjs"),Nt=require("./numberFormattingFunction-u2iNHL_c.cjs"),z=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Yt=require("./DetailsModal-Du8Fr1QD.cjs"),At=require("./linear-CgUCbw9F.cjs"),qt=require("./line-DaEMhXmx.cjs"),Et=require("./proxy-CqH8m8IQ.cjs"),zt=require("./use-in-view-dnRv_qqF.cjs"),Zt=require("./index-FXfr51ZM.cjs"),Jt=require("./GraphFooter.cjs"),Kt=require("./GraphHeader.cjs"),Qt=require("./EmptyState-CFmiFPHz.cjs"),te=require("./ColorLegendWithMouseOver.cjs"),Vt=require("./uniqBy-O05lp2S5.cjs"),Dt=require("./GraphContainer-Cul9b74X.cjs");var ee=Tt(qt.curveLinear);function Lt(e){this._curve=e}Lt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Tt(e){function t(o){return new Lt(e(o))}return t._curve=e,t}function ie(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(o){return arguments.length?t(Tt(o)):t()._curve},e}function ne(){return ie(qt.line().curve(ee))}function Pt(){}function St(e,t,o){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-o),e._x2,e._y2)}function $t(e,t){this._context=e,this._k=(1-t)/6}$t.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:St(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:St(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function o(c){return new $t(c,t)}return o.tension=function(c){return e(+c)},o})(0);function Ft(e,t){this._context=e,this._k=(1-t)/6}Ft.prototype={areaStart:Pt,areaEnd:Pt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:St(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const oe=(function e(t){function o(c){return new Ft(c,t)}return o.tension=function(c){return e(+c)},o})(0);function Gt(e){this._context=e}Gt.prototype={areaStart:Pt,areaEnd:Pt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function se(e){return new Gt(e)}function re(e){const t=n.compilerRuntimeExports.c(108),{data:o,radius:c,lineColors:r,tooltip:U,onSeriesMouseOver:H,onSeriesMouseClick:p,colorDomain:f,detailsOnClick:C,styles:u,classNames:a,selectedColor:N,axisLabels:Z,strokeWidth:J,showValues:yt,showDots:_t,rightMargin:K,topMargin:Q,bottomMargin:W,leftMargin:B,curveType:Ct,noOfTicks:vt,minValue:b,maxValue:A,resetSelectionOnDoubleClick:V,fillShape:tt,highlightedLines:D,animate:h,dimmedOpacity:g,precision:et,customLayers:j,locale:it,padZeros:_}=e,R=E.useRef(null);let nt;t[0]!==h.amount||t[1]!==h.once?(nt={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=nt):nt=t[2];const q=zt.useInView(R,nt),Mt=Ct==="linear"?se:oe;let ot;t[3]!==W||t[4]!==B||t[5]!==K||t[6]!==Q?(ot={top:Q,bottom:W,left:B,right:K},t[3]=W,t[4]=B,t[5]=K,t[6]=Q,t[7]=ot):ot=t[7];const L=ot,v=Math.min((2*c-B-K)/2,(2*c-Q-W)/2),[y,bt]=E.useState(void 0),[I,jt]=E.useState(void 0),[X,kt]=E.useState(void 0),[st,Y]=E.useState(void 0);let w,T,$,F,k,O,s,P,rt,at,lt,G,ct,ut;if(t[8]!==h.duration||t[9]!==Z||t[10]!==a?.graphObjectValues||t[11]!==a?.xAxis?.axis||t[12]!==a?.xAxis?.gridLines||t[13]!==a?.xAxis?.labels||t[14]!==f||t[15]!==Mt||t[16]!==j||t[17]!==o||t[18]!==C||t[19]!==g||t[20]!==tt||t[21]!==D||t[22]!==q||t[23]!==r||t[24]!==it||t[25]!==L.left||t[26]!==L.top||t[27]!==A||t[28]!==b||t[29]!==I||t[30]!==y||t[31]!==vt||t[32]!==p||t[33]!==H||t[34]!==_||t[35]!==et||t[36]!==c||t[37]!==v||t[38]!==V||t[39]!==N||t[40]!==_t||t[41]!==yt||t[42]!==J||t[43]!==u?.graphObjectValues||t[44]!==u?.xAxis?.axis||t[45]!==u?.xAxis?.gridLines||t[46]!==u?.xAxis?.labels){const l=At.linear().domain([0,o[0].values.length]).range([0,2*Math.PI]);let It;t[61]!==o||t[62]!==A?(It=z.checkIfNullOrUndefined(A)?Math.max(...o.map(ke))<0?0:Math.max(...o.map(be)):A,t[61]=o,t[62]=A,t[63]=It):It=t[63];const Ut=It;let wt;t[64]!==o||t[65]!==b?(wt=z.checkIfNullOrUndefined(b)?Math.min(...o.map(ve))>=0?0:Math.min(...o.map(ye)):b,t[64]=o,t[65]=b,t[66]=wt):wt=t[66];const Ht=wt,M=At.linear().domain([Ht,Ut]).range([0,v]).nice(),Wt=M.ticks(vt),Ot=ne().radius(i=>M(i)).angle((i,x)=>l(x)).curve(Mt);T=Et.motion.svg,ct=`${c*2}px`,ut=`${c*2}px`,$=`0 0 ${c*2} ${c*2}`,F="ltr",k=R,O="mx-auto",lt=`translate(${L.left},${L.top})`,t[67]!==j?(G=j.filter(ge).map(fe),t[67]=j,t[68]=G):G=t[68],P=`translate(${v},${v})`,rt=Z.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(l(x)-Math.PI/2)*v,y2:Math.sin(l(x)-Math.PI/2)*v,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.axis),style:u?.xAxis?.axis},x),n.jsxRuntimeExports.jsx("text",{x:Math.cos(l(x)-Math.PI/2)*(v+6),y:Math.sin(l(x)-Math.PI/2)*(v+6),style:{textAnchor:Math.cos(l(x)-Math.PI/2)<0?"end":Math.cos(l(x)-Math.PI/2)<1e-5?"middle":"start",...u?.xAxis?.labels||""},dy:Math.sin(l(x)-Math.PI/2)<0?0:Math.sin(l(x)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",a?.xAxis?.labels),children:i})]},x)),at=Wt.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:Ot(Array(Z.length).fill(i))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.gridLines),style:{...u?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*M(i)>-1e-4?Math.sin(-Math.PI/2)*M(i)-7:Math.sin(-Math.PI/2)*M(i)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",a?.xAxis?.labels),style:u?.xAxis?.labels,children:Nt.numberFormattingFunction(i,void 0,et,void 0,void 0,it,_)})})})]},x)),w=Zt.AnimatePresence,s=o.map((i,x)=>n.jsxRuntimeExports.jsxs(Et.motion.g,{variants:{initial:{opacity:y?i.label===y.label?1:g:N?i.color&&r[f.indexOf(i.color)]===N?1:g:D?i.label&&D.indexOf(i.label)!==-1?1:.3:1},whileInView:{opacity:y?i.label===y.label?1:g:N?i.color&&r[f.indexOf(i.color)]===N?1:g:D?i.label&&D.indexOf(i.label)!==-1?1:g:1,transition:{duration:h.duration}}},initial:"initial",animate:q?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:d=>{bt(i),Y(d.clientY),kt(d.clientX),H?.(i)},onMouseMove:d=>{bt(i),Y(d.clientY),kt(d.clientX)},onMouseLeave:()=>{bt(void 0),kt(void 0),Y(void 0),H?.(void 0)},onClick:()=>{(p||C)&&(Bt.isEqual(I,i)&&V?(jt(void 0),p?.(void 0)):(jt(i),p?.(i)))},children:[n.jsxRuntimeExports.jsx(Et.motion.path,{d:Ot(i.values)||"",variants:{initial:{d:Ot(i.values.map(me))||"",stroke:o.filter(de).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray,fill:tt?o.filter(pe).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray:"none",strokeWidth:J},whileInView:{d:Ot(i.values)||"",transition:{duration:h.duration},stroke:o.filter(xe).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray,fill:tt?o.filter(he).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray:"none",strokeWidth:J}},initial:"initial",animate:q?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:i.values.map((d,m)=>n.jsxRuntimeExports.jsx("g",{children:z.checkIfNullOrUndefined(d)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[_t?n.jsxRuntimeExports.jsx(Et.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:o.filter(ue).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray},whileInView:{cx:Math.cos(l(m)-Math.PI/2)*M(d),cy:Math.sin(l(m)-Math.PI/2)*M(d),opacity:1,transition:{duration:h.duration},fill:o.filter(ce).length===0?r[0]:i.color?r[f.indexOf(i.color)]:S.Colors.gray}},initial:"initial",animate:q?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}):null,yt?n.jsxRuntimeExports.jsx(Et.motion.text,{style:{...u?.graphObjectValues||{}},dy:Math.sin(l(m)-Math.PI/2)<0?10:(Math.sin(l(m)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",a?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(l(m)-Math.PI/2)*(M(d)+6),y:Math.sin(l(m)-Math.PI/2)*(M(d)+6),fill:r[x],textAnchor:Math.cos(l(m)-Math.PI/2)<0?"end":Math.cos(l(m)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(l(m)-Math.PI/2)*(M(d)+6),y:Math.sin(l(m)-Math.PI/2)*(M(d)+6),fill:r[x],textAnchor:Math.cos(l(m)-Math.PI/2)<0?"end":Math.cos(l(m)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:h.duration}}},initial:"initial",animate:q?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:Nt.numberFormattingFunction(d,void 0,et,void 0,void 0,it,_)}):null]})},m))})]},i.label||x)),t[8]=h.duration,t[9]=Z,t[10]=a?.graphObjectValues,t[11]=a?.xAxis?.axis,t[12]=a?.xAxis?.gridLines,t[13]=a?.xAxis?.labels,t[14]=f,t[15]=Mt,t[16]=j,t[17]=o,t[18]=C,t[19]=g,t[20]=tt,t[21]=D,t[22]=q,t[23]=r,t[24]=it,t[25]=L.left,t[26]=L.top,t[27]=A,t[28]=b,t[29]=I,t[30]=y,t[31]=vt,t[32]=p,t[33]=H,t[34]=_,t[35]=et,t[36]=c,t[37]=v,t[38]=V,t[39]=N,t[40]=_t,t[41]=yt,t[42]=J,t[43]=u?.graphObjectValues,t[44]=u?.xAxis?.axis,t[45]=u?.xAxis?.gridLines,t[46]=u?.xAxis?.labels,t[47]=w,t[48]=T,t[49]=$,t[50]=F,t[51]=k,t[52]=O,t[53]=s,t[54]=P,t[55]=rt,t[56]=at,t[57]=lt,t[58]=G,t[59]=ct,t[60]=ut}else w=t[47],T=t[48],$=t[49],F=t[50],k=t[51],O=t[52],s=t[53],P=t[54],rt=t[55],at=t[56],lt=t[57],G=t[58],ct=t[59],ut=t[60];let ht;t[69]!==w||t[70]!==s?(ht=n.jsxRuntimeExports.jsx(w,{children:s}),t[69]=w,t[70]=s,t[71]=ht):ht=t[71];let xt;t[72]!==ht||t[73]!==P||t[74]!==rt||t[75]!==at?(xt=n.jsxRuntimeExports.jsxs("g",{transform:P,children:[rt,at,ht]}),t[72]=ht,t[73]=P,t[74]=rt,t[75]=at,t[76]=xt):xt=t[76];let pt;t[77]!==j?(pt=j.filter(le).map(ae),t[77]=j,t[78]=pt):pt=t[78];let dt;t[79]!==xt||t[80]!==pt||t[81]!==lt||t[82]!==G?(dt=n.jsxRuntimeExports.jsxs("g",{transform:lt,children:[G,xt,pt]}),t[79]=xt,t[80]=pt,t[81]=lt,t[82]=G,t[83]=dt):dt=t[83];let mt;t[84]!==T||t[85]!==$||t[86]!==F||t[87]!==k||t[88]!==O||t[89]!==dt||t[90]!==ct||t[91]!==ut?(mt=n.jsxRuntimeExports.jsx(T,{width:ct,height:ut,viewBox:$,direction:F,ref:k,className:O,children:dt}),t[84]=T,t[85]=$,t[86]=F,t[87]=k,t[88]=O,t[89]=dt,t[90]=ct,t[91]=ut,t[92]=mt):mt=t[92];let ft;t[93]!==a?.tooltip||t[94]!==X||t[95]!==st||t[96]!==y||t[97]!==u?.tooltip||t[98]!==U?(ft=y&&U&&X&&st?n.jsxRuntimeExports.jsx(Xt.Tooltip,{data:y,body:U,xPos:X,yPos:st,backgroundStyle:u?.tooltip,className:a?.tooltip}):null,t[93]=a?.tooltip,t[94]=X,t[95]=st,t[96]=y,t[97]=u?.tooltip,t[98]=U,t[99]=ft):ft=t[99];let gt;t[100]!==a?.modal||t[101]!==C||t[102]!==I?(gt=C&&I!==void 0?n.jsxRuntimeExports.jsx(Yt.DetailsModal,{body:C,data:I,setData:jt,className:a?.modal}):null,t[100]=a?.modal,t[101]=C,t[102]=I,t[103]=gt):gt=t[103];let Rt;return t[104]!==mt||t[105]!==ft||t[106]!==gt?(Rt=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[mt,ft,gt]}),t[104]=mt,t[105]=ft,t[106]=gt,t[107]=Rt):Rt=t[107],Rt}function ae(e){return e.layer}function le(e){return e.position==="after"}function ce(e){return e.color}function ue(e){return e.color}function he(e){return e.color}function xe(e){return e.color}function pe(e){return e.color}function de(e){return e.color}function me(e){return 0}function fe(e){return e.layer}function ge(e){return e.position==="before"}function ye(e){return Math.min(...e.values.filter(_e))}function _e(e){return!z.checkIfNullOrUndefined(e)}function ve(e){return Math.min(...e.values.filter(Me))}function Me(e){return!z.checkIfNullOrUndefined(e)}function be(e){return Math.max(...e.values.filter(je))}function je(e){return!z.checkIfNullOrUndefined(e)}function ke(e){return Math.max(...e.values.filter(Ee))}function Ee(e){return!z.checkIfNullOrUndefined(e)}function Ce(e){const{graphTitle:t,colors:o,sources:c,graphDescription:r,footNote:U,radius:H,data:p,showColorScale:f=!0,padding:C,backgroundColor:u=!1,tooltip:a,onSeriesMouseOver:N,graphID:Z,onSeriesMouseClick:J,topMargin:yt=75,bottomMargin:_t=75,leftMargin:K=75,rightMargin:Q=75,graphDownload:W=!1,dataDownload:B=!1,colorDomain:Ct,language:vt="en",theme:b="light",highlightedLines:A,width:V,height:tt,minHeight:D=0,strokeWidth:h=2,relativeHeight:g,ariaLabel:et,colorLegendTitle:j,detailsOnClick:it,styles:_,classNames:R,showNAColor:nt=!0,axisLabels:q,showDots:Mt=!0,showValues:ot=!1,curveType:L="curve",noOfTicks:v=5,minValue:y,maxValue:bt,fillShape:I=!1,resetSelectionOnDoubleClick:jt=!0,animate:X=!1,dimmedOpacity:kt=.3,customLayers:st=[],numberDisplayOptions:Y}=e,[w,T]=E.useState(0),[$,F]=E.useState(void 0),k=E.useRef(null),O=E.useRef(null);return E.useEffect(()=>{const s=new ResizeObserver(P=>{T((Math.min(P[0].target.clientWidth||620,P[0].target.clientHeight||480,H||1/0)||420)/2)});return k.current&&s.observe(k.current),()=>s.disconnect()},[H]),n.jsxRuntimeExports.jsxs(Dt.GraphContainer,{className:R?.graphContainer,style:_?.graphContainer,id:Z,ref:O,"aria-label":et,backgroundColor:u,theme:b,language:vt,minHeight:D,width:V,height:tt,relativeHeight:g,padding:C,children:[t||r||W||B?n.jsxRuntimeExports.jsx(Kt.GraphHeader,{styles:{title:_?.title,description:_?.description},classNames:{title:R?.title,description:R?.description},graphTitle:t,graphDescription:r,width:V,graphDownload:W?O:void 0,dataDownload:B?p.map(s=>s.data).filter(s=>s!==void 0).length>0?p.map(s=>s.data).filter(s=>s!==void 0):p.filter(s=>s!==void 0):null}):null,f&&p.filter(s=>s.color).length!==0&&p.length>0?n.jsxRuntimeExports.jsx(te.ColorLegendWithMouseOver,{width:V,colorLegendTitle:j,colors:o||S.Colors[b].categoricalColors.colors,colorDomain:Ct||Vt.uniqBy(p,"color",!0),setSelectedColor:F,showNAColor:nt,className:R?.colorLegend,isCenter:!0}):null,n.jsxRuntimeExports.jsxs(Dt.GraphArea,{ref:k,children:[p.length===0&&n.jsxRuntimeExports.jsx(Qt.EmptyState,{}),w&&p.length>0?n.jsxRuntimeExports.jsx(re,{data:p,lineColors:p.filter(s=>s.color).length===0?o?[o]:[S.Colors.primaryColors["blue-600"]]:o||S.Colors[b].categoricalColors.colors,radius:w,tooltip:a,colorDomain:Ct||Vt.uniqBy(p,"color",!0),onSeriesMouseOver:N,onSeriesMouseClick:J,styles:_,detailsOnClick:it,selectedColor:$,axisLabels:q,strokeWidth:h,showValues:ot,showDots:Mt,topMargin:yt,bottomMargin:_t,leftMargin:K,rightMargin:Q,curveType:L,noOfTicks:v,minValue:y,maxValue:bt,fillShape:I,highlightedLines:A,resetSelectionOnDoubleClick:jt,animate:X===!0?{duration:.5,once:!0,amount:.5}:X||{duration:0,once:!0,amount:0},dimmedOpacity:kt,precision:Y?.precision??2,customLayers:st,locale:Y?.locale||"en",padZeros:Y?.padZeros||!1}):null]}),c||U?n.jsxRuntimeExports.jsx(Jt.GraphFooter,{styles:{footnote:_?.footnote,source:_?.source},classNames:{footnote:R?.footnote,source:R?.source},sources:c,footNote:U,width:V}):null]})}exports.RadarChart=Ce;
|
|
2
2
|
//# sourceMappingURL=RadarChart.cjs.map
|
package/dist/RadarChart.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadarChart.cjs","sources":["../node_modules/d3-shape/src/curve/radial.js","../node_modules/d3-shape/src/lineRadial.js","../node_modules/d3-shape/src/noop.js","../node_modules/d3-shape/src/curve/cardinal.js","../node_modules/d3-shape/src/curve/cardinalClosed.js","../node_modules/d3-shape/src/curve/linearClosed.js","../src/Components/Graphs/RadarChart/Graph.tsx","../src/Components/Graphs/RadarChart/index.tsx"],"sourcesContent":["import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","export default function() {}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // falls through\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport isEqual from 'fast-deep-equal';\r\nimport { lineRadial, curveLinearClosed, curveCardinalClosed } from 'd3-shape';\r\nimport { useRef, useState } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n RadarChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n radius: number;\r\n lineColors: string[];\r\n axisLabels: (string | number)[];\r\n data: RadarChartDataType[];\r\n\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n selectedColor?: string;\r\n onSeriesMouseOver?: (_d: any) => void;\r\n onSeriesMouseClick?: (_d: any) => void;\r\n colorDomain: string[];\r\n\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n strokeWidth: number;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n showValues: boolean;\r\n showDots: boolean;\r\n topMargin: number;\r\n bottomMargin: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n curveType: 'linear' | 'curve';\r\n noOfTicks: number;\r\n maxValue?: number;\r\n minValue?: number;\r\n fillShape: boolean;\r\n resetSelectionOnDoubleClick: boolean;\r\n highlightedLines?: (string | number)[];\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n locale: string;\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n radius,\r\n lineColors,\r\n tooltip,\r\n onSeriesMouseOver,\r\n onSeriesMouseClick,\r\n colorDomain,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n selectedColor,\r\n axisLabels,\r\n strokeWidth,\r\n showValues,\r\n showDots,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n leftMargin,\r\n curveType,\r\n noOfTicks,\r\n minValue,\r\n maxValue,\r\n resetSelectionOnDoubleClick,\r\n fillShape,\r\n highlightedLines,\r\n animate,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n locale,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const curve = curveType === 'linear' ? curveLinearClosed : curveCardinalClosed;\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n const radiusWithoutMargin = Math.min(\r\n (2 * radius - leftMargin - rightMargin) / 2,\r\n (2 * radius - topMargin - bottomMargin) / 2,\r\n );\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const angleScale = scaleLinear()\r\n .domain([0, data[0].values.length])\r\n .range([0, 2 * Math.PI]);\r\n\r\n const maxVal = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) < 0\r\n ? 0\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n\r\n const minVal = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) >= 0\r\n ? 0\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n const scale = scaleLinear().domain([minVal, maxVal]).range([0, radiusWithoutMargin]).nice();\r\n const ticksArray = scale.ticks(noOfTicks);\r\n const lineShape = lineRadial<number>()\r\n .radius(d => scale(d))\r\n .angle((_, i) => angleScale(i))\r\n .curve(curve);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${radius * 2}px`}\r\n height={`${radius * 2}px`}\r\n viewBox={`0 0 ${radius * 2} ${radius * 2}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n className='mx-auto'\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <g transform={`translate(${radiusWithoutMargin},${radiusWithoutMargin})`}>\r\n {axisLabels.map((d, i) => (\r\n <g key={i}>\r\n <line\r\n x1={0}\r\n y1={0}\r\n x2={Math.cos(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n y2={Math.sin(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n key={i}\r\n className={cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.axis,\r\n )}\r\n style={styles?.xAxis?.axis}\r\n />\r\n <text\r\n x={Math.cos(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n y={Math.sin(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n style={{\r\n textAnchor:\r\n Math.cos(angleScale(i) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n ...(styles?.xAxis?.labels || ''),\r\n }}\r\n dy={\r\n Math.sin(angleScale(i) - Math.PI / 2) < 0\r\n ? 0\r\n : Math.sin(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 5\r\n : 10\r\n }\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.xAxis?.labels,\r\n )}\r\n >\r\n {d}\r\n </text>\r\n </g>\r\n ))}\r\n {ticksArray.map((d, i) => (\r\n <g key={i}>\r\n <path\r\n d={lineShape(Array(axisLabels.length).fill(d)) || ''}\r\n className={cn(\r\n 'stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.gridLines,\r\n )}\r\n style={{\r\n ...styles?.xAxis?.gridLines,\r\n fill: 'none',\r\n }}\r\n />\r\n <foreignObject\r\n x={-25}\r\n y={\r\n Math.sin(-Math.PI / 2) * scale(d) > -0.0001\r\n ? Math.sin(-Math.PI / 2) * scale(d) - 7\r\n : Math.sin(-Math.PI / 2) * scale(d) - 5\r\n }\r\n width={50}\r\n height={12}\r\n >\r\n <div className='flex justify-center'>\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700',\r\n classNames?.xAxis?.labels,\r\n )}\r\n style={styles?.xAxis?.labels}\r\n >\r\n {numberFormattingFunction(\r\n d,\r\n undefined,\r\n precision,\r\n undefined,\r\n undefined,\r\n locale,\r\n )}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </g>\r\n ))}\r\n <AnimatePresence>\r\n {data.map((d, i) => (\r\n <motion.g\r\n key={d.label || i}\r\n variants={{\r\n initial: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : 0.3\r\n : 0.3\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : 1,\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 onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.path\r\n d={lineShape(d.values) || ''}\r\n variants={{\r\n initial: {\r\n d: lineShape(d.values.map(_el => 0)) || '',\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\r\n },\r\n whileInView: {\r\n d: lineShape(d.values) || '',\r\n transition: { duration: animate.duration },\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\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 style={{\r\n fillOpacity: 0.1,\r\n }}\r\n />\r\n <g>\r\n {d.values.map((el, j) => (\r\n <g key={j}>\r\n {!checkIfNullOrUndefined(el) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={4}\r\n variants={{\r\n initial: {\r\n cx: 0,\r\n cy: 0,\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n },\r\n whileInView: {\r\n cx: Math.cos(angleScale(j) - Math.PI / 2) * scale(el),\r\n cy: Math.sin(angleScale(j) - Math.PI / 2) * scale(el),\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\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 ) : null}\r\n {showValues ? (\r\n <motion.text\r\n style={{\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n dy={\r\n Math.sin(angleScale(j) - Math.PI / 2) < 0\r\n ? 10\r\n : Math.sin(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 0\r\n : 0\r\n }\r\n className={cn(\r\n 'graph-value text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\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 {numberFormattingFunction(\r\n el,\r\n undefined,\r\n precision,\r\n undefined,\r\n undefined,\r\n locale,\r\n )}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n </g>\r\n ))}\r\n </g>\r\n </motion.g>\r\n ))}\r\n </AnimatePresence>\r\n </g>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.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 ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useEffect, useRef, useState } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n RadarChartDataType,\r\n Languages,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\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: RadarChartDataType[];\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 each line */\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 /** Radius of the radar chart */\r\n radius?: number;\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 /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of values */\r\n showValues?: boolean;\r\n /** Toggle visibility of dots on the line */\r\n showDots?: boolean;\r\n /** Stroke width of the line */\r\n strokeWidth?: number;\r\n /** Toggle is the shape is filled or not */\r\n fillShape?: boolean;\r\n /** No. of ticks on the x-axis */\r\n noOfTicks?: number;\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 highlightedLines?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Labels for the axes */\r\n axisLabels: (string | number)[];\r\n /** Curve type for the line */\r\n curveType?: 'linear' | 'curve';\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n /** Specifies the number of decimal places to display in the value. */\r\n precision?: number;\r\n /** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */\r\n locale?: string;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\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\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 RadarChart(props: Props) {\r\n const {\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n footNote,\r\n radius,\r\n data,\r\n showColorScale = true,\r\n padding,\r\n backgroundColor = false,\r\n tooltip,\r\n onSeriesMouseOver,\r\n graphID,\r\n onSeriesMouseClick,\r\n topMargin = 75,\r\n bottomMargin = 75,\r\n leftMargin = 75,\r\n rightMargin = 75,\r\n graphDownload = false,\r\n dataDownload = false,\r\n colorDomain,\r\n language = 'en',\r\n theme = 'light',\r\n highlightedLines,\r\n width,\r\n height,\r\n minHeight = 0,\r\n strokeWidth = 2,\r\n relativeHeight,\r\n ariaLabel,\r\n colorLegendTitle,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n showNAColor = true,\r\n axisLabels,\r\n showDots = true,\r\n showValues = false,\r\n curveType = 'curve',\r\n noOfTicks = 5,\r\n minValue,\r\n maxValue,\r\n fillShape = false,\r\n resetSelectionOnDoubleClick = true,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n precision = 2,\r\n customLayers = [],\r\n locale = 'en',\r\n } = props;\r\n\r\n const [graphRadius, setGraphRadius] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setGraphRadius(\r\n (Math.min(\r\n ...[\r\n entries[0].target.clientWidth || 620,\r\n entries[0].target.clientHeight || 480,\r\n radius || Infinity,\r\n ],\r\n ) || 420) / 2,\r\n );\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, [radius]);\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 {showColorScale && data.filter(el => el.color).length !== 0 && data.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}\r\n className={classNames?.colorLegend}\r\n isCenter\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {graphRadius && data.length > 0 ? (\r\n <Graph\r\n data={data}\r\n lineColors={\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 radius={graphRadius}\r\n tooltip={tooltip}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n styles={styles}\r\n detailsOnClick={detailsOnClick}\r\n selectedColor={selectedColor}\r\n axisLabels={axisLabels}\r\n strokeWidth={strokeWidth}\r\n showValues={showValues}\r\n showDots={showDots}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n curveType={curveType}\r\n noOfTicks={noOfTicks}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n fillShape={fillShape}\r\n highlightedLines={highlightedLines}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n precision={precision}\r\n customLayers={customLayers}\r\n locale={locale}\r\n />\r\n ) : null}\r\n </GraphArea>\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":["curveRadialLinear","curveRadial","curveLinear","Radial","curve","a","r","radial","context","lineRadial","l","c","_","line","noop","point","that","x","y","Cardinal","tension","custom","cardinal","CardinalClosed","curveCardinalClosed","LinearClosed","curveLinearClosed","Graph","props","$","_c","data","radius","lineColors","tooltip","onSeriesMouseOver","onSeriesMouseClick","colorDomain","detailsOnClick","styles","classNames","selectedColor","axisLabels","strokeWidth","showValues","showDots","rightMargin","topMargin","bottomMargin","leftMargin","curveType","noOfTicks","minValue","maxValue","resetSelectionOnDoubleClick","fillShape","highlightedLines","animate","dimmedOpacity","precision","customLayers","locale","svgRef","useRef","t0","amount","once","isInView","useInView","t1","top","bottom","left","right","margin","radiusWithoutMargin","Math","min","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","T0","T1","t10","t11","t12","t13","t2","t3","t4","t5","t6","t7","t8","t9","duration","graphObjectValues","xAxis","axis","gridLines","labels","angleScale","scaleLinear","domain","values","length","range","PI","t14","checkIfNullOrUndefined","max","map","_temp2","_temp4","maxVal","t15","_temp6","_temp8","minVal","scale","nice","ticksArray","ticks","lineShape","d_3","d","angle","i","motion","svg","filter","_temp9","_temp0","d_6","i_0","jsx","cos","sin","cn","textAnchor","d_7","i_1","Array","fill","numberFormattingFunction","AnimatePresence","d_8","i_2","jsxs","initial","opacity","label","color","indexOf","whileInView","transition","event","clientY","clientX","event_0","isEqual","_temp1","stroke","_temp10","Colors","gray","_temp11","_temp12","_temp13","fillOpacity","el_3","j","el","Fragment","cx","cy","_temp14","_temp15","t16","_temp16","_temp17","t17","t18","t19","Tooltip","t20","modal","DetailsModal","t21","d_10","layer","d_9","position","el_5","el_4","el_2","el_1","el_0","_el","d_5","d_4","d_1","_temp7","l_1","d_2","_temp5","l_2","_temp3","d_0","_temp","l_0","RadarChart","graphTitle","colors","sources","graphDescription","footNote","showColorScale","padding","backgroundColor","graphID","graphDownload","dataDownload","language","theme","width","height","minHeight","relativeHeight","ariaLabel","colorLegendTitle","showNAColor","graphRadius","setGraphRadius","setSelectedColor","graphDiv","graphParentDiv","useEffect","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","Infinity","current","observe","disconnect","GraphContainer","graphContainer","GraphHeader","title","description","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","EmptyState","primaryColors","GraphFooter","footnote","source"],"mappings":"myBAEO,IAAIA,GAAoBC,GAAYC,cAAW,EAEtD,SAASC,GAAOC,EAAO,CACrB,KAAK,OAASA,CAChB,CAEAD,GAAO,UAAY,CACjB,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,MAAO,SAASE,EAAGC,EAAG,CACpB,KAAK,OAAO,MAAMA,EAAI,KAAK,IAAID,CAAC,EAAGC,EAAI,CAAC,KAAK,IAAID,CAAC,CAAC,CACrD,CACF,EAEe,SAASJ,GAAYG,EAAO,CAEzC,SAASG,EAAOC,EAAS,CACvB,OAAO,IAAIL,GAAOC,EAAMI,CAAO,CAAC,CAClC,CAEA,OAAAD,EAAO,OAASH,EAETG,CACT,CChCO,SAASE,GAAWC,EAAG,CAC5B,IAAIC,EAAID,EAAE,MAEV,OAAAA,EAAE,MAAQA,EAAE,EAAG,OAAOA,EAAE,EACxBA,EAAE,OAASA,EAAE,EAAG,OAAOA,EAAE,EAEzBA,EAAE,MAAQ,SAASE,EAAG,CACpB,OAAO,UAAU,OAASD,EAAEV,GAAYW,CAAC,CAAC,EAAID,EAAC,EAAG,MACpD,EAEOD,CACT,CAEe,SAAAD,IAAW,CACxB,OAAOA,GAAWI,GAAAA,KAAI,EAAG,MAAMb,EAAiB,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/C,SAAW,EACnC4G,EACE,CAACA,CAAgB,EACjB,CAACjD,EAAAA,OAAO+F,cAAc,UAAU,CAAC,EAClC9C,GAAmCjD,EAAAA,OAAO4D,CAAK,EAAE8B,kBAAkBzC,OAE1E,OAAQmB,EACR,QAAA7M,EACA,YAAaG,IAAgBiO,GAAAA,OAAOvO,EAAM,QAAS,EAAI,EACvD,kBAAAI,EACA,mBAAAC,EACA,OAAAG,EACA,eAAAD,GACA,cAAAG,EACA,WAAAC,GACA,YAAAC,EACA,WAAAC,EACA,SAAAC,GACA,UAAAE,GACA,aAAAC,GACA,WAAAC,EACA,YAAAH,EACA,UAAAI,EACA,UAAAC,EACA,SAAAC,GACA,SAAAC,EACA,UAAAE,GACA,iBAAAC,EACA,4BAAAF,GACA,QACEG,KAAY,GACR,CAAE6C,SAAU,GAAKpC,KAAM,GAAMD,OAAQ,EAAA,EACrCR,IAAW,CAAE6C,SAAU,EAAGpC,KAAM,GAAMD,OAAQ,CAAA,EAEpD,cAAAP,GACA,UAAAC,GACA,aAAAC,EACA,OAAAC,EAAe,EAEf,IAAA,EACN,EACCgK,GAAWE,EACVjF,EAAAA,kBAAAA,IAAC6H,GAAAA,YAAA,CACC,OAAQ,CAAEC,SAAUrO,GAAQqO,SAAUC,OAAQtO,GAAQsO,MAAAA,EACtD,WAAY,CACVD,SAAUpO,GAAYoO,SACtBC,OAAQrO,GAAYqO,MAAAA,EAEtB,QAAAhD,EACA,SAAAE,EACA,MAAAS,CAAA,CAAa,EAEb,IAAA,EACN,CAEJ","x_google_ignoreList":[0,1,2,3,4,5]}
|
|
1
|
+
{"version":3,"file":"RadarChart.cjs","sources":["../node_modules/d3-shape/src/curve/radial.js","../node_modules/d3-shape/src/lineRadial.js","../node_modules/d3-shape/src/noop.js","../node_modules/d3-shape/src/curve/cardinal.js","../node_modules/d3-shape/src/curve/cardinalClosed.js","../node_modules/d3-shape/src/curve/linearClosed.js","../src/Components/Graphs/RadarChart/Graph.tsx","../src/Components/Graphs/RadarChart/index.tsx"],"sourcesContent":["import curveLinear from \"./linear.js\";\n\nexport var curveRadialLinear = curveRadial(curveLinear);\n\nfunction Radial(curve) {\n this._curve = curve;\n}\n\nRadial.prototype = {\n areaStart: function() {\n this._curve.areaStart();\n },\n areaEnd: function() {\n this._curve.areaEnd();\n },\n lineStart: function() {\n this._curve.lineStart();\n },\n lineEnd: function() {\n this._curve.lineEnd();\n },\n point: function(a, r) {\n this._curve.point(r * Math.sin(a), r * -Math.cos(a));\n }\n};\n\nexport default function curveRadial(curve) {\n\n function radial(context) {\n return new Radial(curve(context));\n }\n\n radial._curve = curve;\n\n return radial;\n}\n","import curveRadial, {curveRadialLinear} from \"./curve/radial.js\";\nimport line from \"./line.js\";\n\nexport function lineRadial(l) {\n var c = l.curve;\n\n l.angle = l.x, delete l.x;\n l.radius = l.y, delete l.y;\n\n l.curve = function(_) {\n return arguments.length ? c(curveRadial(_)) : c()._curve;\n };\n\n return l;\n}\n\nexport default function() {\n return lineRadial(line().curve(curveRadialLinear));\n}\n","export default function() {}\n","export function point(that, x, y) {\n that._context.bezierCurveTo(\n that._x1 + that._k * (that._x2 - that._x0),\n that._y1 + that._k * (that._y2 - that._y0),\n that._x2 + that._k * (that._x1 - x),\n that._y2 + that._k * (that._y1 - y),\n that._x2,\n that._y2\n );\n}\n\nexport function Cardinal(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinal.prototype = {\n areaStart: function() {\n this._line = 0;\n },\n areaEnd: function() {\n this._line = NaN;\n },\n lineStart: function() {\n this._x0 = this._x1 = this._x2 =\n this._y0 = this._y1 = this._y2 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 2: this._context.lineTo(this._x2, this._y2); break;\n case 3: point(this, this._x1, this._y1); break;\n }\n if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();\n this._line = 1 - this._line;\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;\n case 1: this._point = 2; this._x1 = x, this._y1 = y; break;\n case 2: this._point = 3; // falls through\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new Cardinal(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\nimport {point} from \"./cardinal.js\";\n\nexport function CardinalClosed(context, tension) {\n this._context = context;\n this._k = (1 - tension) / 6;\n}\n\nCardinalClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =\n this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;\n this._point = 0;\n },\n lineEnd: function() {\n switch (this._point) {\n case 1: {\n this._context.moveTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 2: {\n this._context.lineTo(this._x3, this._y3);\n this._context.closePath();\n break;\n }\n case 3: {\n this.point(this._x3, this._y3);\n this.point(this._x4, this._y4);\n this.point(this._x5, this._y5);\n break;\n }\n }\n },\n point: function(x, y) {\n x = +x, y = +y;\n switch (this._point) {\n case 0: this._point = 1; this._x3 = x, this._y3 = y; break;\n case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;\n case 2: this._point = 3; this._x5 = x, this._y5 = y; break;\n default: point(this, x, y); break;\n }\n this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;\n this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;\n }\n};\n\nexport default (function custom(tension) {\n\n function cardinal(context) {\n return new CardinalClosed(context, tension);\n }\n\n cardinal.tension = function(tension) {\n return custom(+tension);\n };\n\n return cardinal;\n})(0);\n","import noop from \"../noop.js\";\n\nfunction LinearClosed(context) {\n this._context = context;\n}\n\nLinearClosed.prototype = {\n areaStart: noop,\n areaEnd: noop,\n lineStart: function() {\n this._point = 0;\n },\n lineEnd: function() {\n if (this._point) this._context.closePath();\n },\n point: function(x, y) {\n x = +x, y = +y;\n if (this._point) this._context.lineTo(x, y);\n else this._point = 1, this._context.moveTo(x, y);\n }\n};\n\nexport default function(context) {\n return new LinearClosed(context);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\r\nimport isEqual from 'fast-deep-equal';\r\nimport { lineRadial, curveLinearClosed, curveCardinalClosed } from 'd3-shape';\r\nimport { useRef, useState } from 'react';\r\nimport { cn } from '@undp/design-system-react/cn';\r\nimport { scaleLinear } from 'd3-scale';\r\nimport { AnimatePresence, motion, useInView } from 'motion/react';\r\n\r\nimport {\r\n AnimateDataType,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n RadarChartDataType,\r\n StyleObject,\r\n} from '@/Types';\r\nimport { Tooltip } from '@/Components/Elements/Tooltip';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { numberFormattingFunction } from '@/Utils/numberFormattingFunction';\r\nimport { checkIfNullOrUndefined } from '@/Utils/checkIfNullOrUndefined';\r\nimport { DetailsModal } from '@/Components/Elements/DetailsModal';\r\n\r\ninterface Props {\r\n radius: number;\r\n lineColors: string[];\r\n axisLabels: (string | number)[];\r\n data: RadarChartDataType[];\r\n\r\n tooltip?: string | ((_d: any) => React.ReactNode);\r\n selectedColor?: string;\r\n onSeriesMouseOver?: (_d: any) => void;\r\n onSeriesMouseClick?: (_d: any) => void;\r\n colorDomain: string[];\r\n\r\n detailsOnClick?: string | ((_d: any) => React.ReactNode);\r\n strokeWidth: number;\r\n styles?: StyleObject;\r\n classNames?: ClassNameObject;\r\n showValues: boolean;\r\n showDots: boolean;\r\n topMargin: number;\r\n bottomMargin: number;\r\n leftMargin: number;\r\n rightMargin: number;\r\n curveType: 'linear' | 'curve';\r\n noOfTicks: number;\r\n maxValue?: number;\r\n minValue?: number;\r\n fillShape: boolean;\r\n resetSelectionOnDoubleClick: boolean;\r\n highlightedLines?: (string | number)[];\r\n animate: AnimateDataType;\r\n dimmedOpacity: number;\r\n precision: number;\r\n customLayers: CustomLayerDataType[];\r\n locale: string;\r\n padZeros: boolean;\r\n}\r\n\r\nexport function Graph(props: Props) {\r\n const {\r\n data,\r\n radius,\r\n lineColors,\r\n tooltip,\r\n onSeriesMouseOver,\r\n onSeriesMouseClick,\r\n colorDomain,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n selectedColor,\r\n axisLabels,\r\n strokeWidth,\r\n showValues,\r\n showDots,\r\n rightMargin,\r\n topMargin,\r\n bottomMargin,\r\n leftMargin,\r\n curveType,\r\n noOfTicks,\r\n minValue,\r\n maxValue,\r\n resetSelectionOnDoubleClick,\r\n fillShape,\r\n highlightedLines,\r\n animate,\r\n dimmedOpacity,\r\n precision,\r\n customLayers,\r\n locale,\r\n padZeros,\r\n } = props;\r\n const svgRef = useRef(null);\r\n const isInView = useInView(svgRef, {\r\n once: animate.once,\r\n amount: animate.amount,\r\n });\r\n const curve = curveType === 'linear' ? curveLinearClosed : curveCardinalClosed;\r\n const margin = {\r\n top: topMargin,\r\n bottom: bottomMargin,\r\n left: leftMargin,\r\n right: rightMargin,\r\n };\r\n const radiusWithoutMargin = Math.min(\r\n (2 * radius - leftMargin - rightMargin) / 2,\r\n (2 * radius - topMargin - bottomMargin) / 2,\r\n );\r\n const [mouseOverData, setMouseOverData] = useState<any>(undefined);\r\n\r\n const [mouseClickData, setMouseClickData] = useState<any>(undefined);\r\n const [eventX, setEventX] = useState<number | undefined>(undefined);\r\n const [eventY, setEventY] = useState<number | undefined>(undefined);\r\n const angleScale = scaleLinear()\r\n .domain([0, data[0].values.length])\r\n .range([0, 2 * Math.PI]);\r\n\r\n const maxVal = !checkIfNullOrUndefined(maxValue)\r\n ? (maxValue as number)\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) < 0\r\n ? 0\r\n : Math.max(\r\n ...data.map(d =>\r\n Math.max(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n\r\n const minVal = !checkIfNullOrUndefined(minValue)\r\n ? (minValue as number)\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n ) >= 0\r\n ? 0\r\n : Math.min(\r\n ...data.map(d =>\r\n Math.min(...(d.values.filter(l => !checkIfNullOrUndefined(l)) as number[])),\r\n ),\r\n );\r\n const scale = scaleLinear().domain([minVal, maxVal]).range([0, radiusWithoutMargin]).nice();\r\n const ticksArray = scale.ticks(noOfTicks);\r\n const lineShape = lineRadial<number>()\r\n .radius(d => scale(d))\r\n .angle((_, i) => angleScale(i))\r\n .curve(curve);\r\n return (\r\n <>\r\n <motion.svg\r\n width={`${radius * 2}px`}\r\n height={`${radius * 2}px`}\r\n viewBox={`0 0 ${radius * 2} ${radius * 2}`}\r\n direction='ltr'\r\n ref={svgRef}\r\n className='mx-auto'\r\n >\r\n <g transform={`translate(${margin.left},${margin.top})`}>\r\n {customLayers.filter(d => d.position === 'before').map(d => d.layer)}\r\n <g transform={`translate(${radiusWithoutMargin},${radiusWithoutMargin})`}>\r\n {axisLabels.map((d, i) => (\r\n <g key={i}>\r\n <line\r\n x1={0}\r\n y1={0}\r\n x2={Math.cos(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n y2={Math.sin(angleScale(i) - Math.PI / 2) * radiusWithoutMargin}\r\n key={i}\r\n className={cn(\r\n 'stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.axis,\r\n )}\r\n style={styles?.xAxis?.axis}\r\n />\r\n <text\r\n x={Math.cos(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n y={Math.sin(angleScale(i) - Math.PI / 2) * (radiusWithoutMargin + 6)}\r\n style={{\r\n textAnchor:\r\n Math.cos(angleScale(i) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n ...(styles?.xAxis?.labels || ''),\r\n }}\r\n dy={\r\n Math.sin(angleScale(i) - Math.PI / 2) < 0\r\n ? 0\r\n : Math.sin(angleScale(i) - Math.PI / 2) < 0.00001\r\n ? 5\r\n : 10\r\n }\r\n className={cn(\r\n 'fill-primary-gray-700 dark:fill-primary-gray-300 text-xs',\r\n classNames?.xAxis?.labels,\r\n )}\r\n >\r\n {d}\r\n </text>\r\n </g>\r\n ))}\r\n {ticksArray.map((d, i) => (\r\n <g key={i}>\r\n <path\r\n d={lineShape(Array(axisLabels.length).fill(d)) || ''}\r\n className={cn(\r\n 'stroke-primary-gray-500 dark:stroke-primary-gray-550',\r\n classNames?.xAxis?.gridLines,\r\n )}\r\n style={{\r\n ...styles?.xAxis?.gridLines,\r\n fill: 'none',\r\n }}\r\n />\r\n <foreignObject\r\n x={-25}\r\n y={\r\n Math.sin(-Math.PI / 2) * scale(d) > -0.0001\r\n ? Math.sin(-Math.PI / 2) * scale(d) - 7\r\n : Math.sin(-Math.PI / 2) * scale(d) - 5\r\n }\r\n width={50}\r\n height={12}\r\n >\r\n <div className='flex justify-center'>\r\n <p\r\n className={cn(\r\n 'fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700',\r\n classNames?.xAxis?.labels,\r\n )}\r\n style={styles?.xAxis?.labels}\r\n >\r\n {numberFormattingFunction(\r\n d,\r\n undefined,\r\n precision,\r\n undefined,\r\n undefined,\r\n locale,\r\n padZeros,\r\n )}\r\n </p>\r\n </div>\r\n </foreignObject>\r\n </g>\r\n ))}\r\n <AnimatePresence>\r\n {data.map((d, i) => (\r\n <motion.g\r\n key={d.label || i}\r\n variants={{\r\n initial: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : 0.3\r\n : 0.3\r\n : 1,\r\n },\r\n whileInView: {\r\n opacity: mouseOverData\r\n ? d.label === mouseOverData.label\r\n ? 1\r\n : dimmedOpacity\r\n : selectedColor\r\n ? d.color\r\n ? lineColors[colorDomain.indexOf(d.color)] === selectedColor\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : highlightedLines\r\n ? d.label\r\n ? highlightedLines.indexOf(d.label) !== -1\r\n ? 1\r\n : dimmedOpacity\r\n : dimmedOpacity\r\n : 1,\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 onMouseEnter={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n onSeriesMouseOver?.(d);\r\n }}\r\n onMouseMove={event => {\r\n setMouseOverData(d);\r\n setEventY(event.clientY);\r\n setEventX(event.clientX);\r\n }}\r\n onMouseLeave={() => {\r\n setMouseOverData(undefined);\r\n setEventX(undefined);\r\n setEventY(undefined);\r\n onSeriesMouseOver?.(undefined);\r\n }}\r\n onClick={() => {\r\n if (onSeriesMouseClick || detailsOnClick) {\r\n if (isEqual(mouseClickData, d) && resetSelectionOnDoubleClick) {\r\n setMouseClickData(undefined);\r\n onSeriesMouseClick?.(undefined);\r\n } else {\r\n setMouseClickData(d);\r\n onSeriesMouseClick?.(d);\r\n }\r\n }\r\n }}\r\n >\r\n <motion.path\r\n d={lineShape(d.values) || ''}\r\n variants={{\r\n initial: {\r\n d: lineShape(d.values.map(_el => 0)) || '',\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\r\n },\r\n whileInView: {\r\n d: lineShape(d.values) || '',\r\n transition: { duration: animate.duration },\r\n stroke:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n fill: fillShape\r\n ? data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)]\r\n : 'none',\r\n strokeWidth,\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 style={{\r\n fillOpacity: 0.1,\r\n }}\r\n />\r\n <g>\r\n {d.values.map((el, j) => (\r\n <g key={j}>\r\n {!checkIfNullOrUndefined(el) ? (\r\n <>\r\n {showDots ? (\r\n <motion.circle\r\n r={4}\r\n variants={{\r\n initial: {\r\n cx: 0,\r\n cy: 0,\r\n opacity: 0,\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\r\n },\r\n whileInView: {\r\n cx: Math.cos(angleScale(j) - Math.PI / 2) * scale(el),\r\n cy: Math.sin(angleScale(j) - Math.PI / 2) * scale(el),\r\n opacity: 1,\r\n transition: { duration: animate.duration },\r\n fill:\r\n data.filter(el => el.color).length === 0\r\n ? lineColors[0]\r\n : !d.color\r\n ? Colors.gray\r\n : lineColors[colorDomain.indexOf(d.color)],\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 ) : null}\r\n {showValues ? (\r\n <motion.text\r\n style={{\r\n ...(styles?.graphObjectValues || {}),\r\n }}\r\n dy={\r\n Math.sin(angleScale(j) - Math.PI / 2) < 0\r\n ? 10\r\n : Math.sin(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 0\r\n : 0\r\n }\r\n className={cn(\r\n 'graph-value text-xs font-bold',\r\n classNames?.graphObjectValues,\r\n )}\r\n variants={{\r\n initial: {\r\n opacity: 0,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\r\n },\r\n whileInView: {\r\n opacity: 1,\r\n x: Math.cos(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n y: Math.sin(angleScale(j) - Math.PI / 2) * (scale(el) + 6),\r\n fill: lineColors[i],\r\n textAnchor:\r\n Math.cos(angleScale(j) - Math.PI / 2) < 0\r\n ? 'end'\r\n : Math.cos(angleScale(j) - Math.PI / 2) < 0.00001\r\n ? 'middle'\r\n : 'start',\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 {numberFormattingFunction(\r\n el,\r\n undefined,\r\n precision,\r\n undefined,\r\n undefined,\r\n locale,\r\n padZeros,\r\n )}\r\n </motion.text>\r\n ) : null}\r\n </>\r\n ) : null}\r\n </g>\r\n ))}\r\n </g>\r\n </motion.g>\r\n ))}\r\n </AnimatePresence>\r\n </g>\r\n {customLayers.filter(d => d.position === 'after').map(d => d.layer)}\r\n </g>\r\n </motion.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 ) : null}\r\n {detailsOnClick && mouseClickData !== undefined ? (\r\n <DetailsModal\r\n body={detailsOnClick}\r\n data={mouseClickData}\r\n setData={setMouseClickData}\r\n className={classNames?.modal}\r\n />\r\n ) : null}\r\n </>\r\n );\r\n}\r\n","import { useEffect, useRef, useState } from 'react';\r\n\r\nimport { Graph } from './Graph';\r\n\r\nimport {\r\n RadarChartDataType,\r\n Languages,\r\n SourcesDataType,\r\n StyleObject,\r\n ClassNameObject,\r\n CustomLayerDataType,\r\n AnimateDataType,\r\n NumberFormatOptions,\r\n} from '@/Types';\r\nimport { GraphFooter } from '@/Components/Elements/GraphFooter';\r\nimport { GraphHeader } from '@/Components/Elements/GraphHeader';\r\nimport { Colors } from '@/Components/ColorPalette';\r\nimport { EmptyState } from '@/Components/Elements/EmptyState';\r\nimport { ColorLegendWithMouseOver } from '@/Components/Elements/ColorLegendWithMouseOver';\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: RadarChartDataType[];\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 each line */\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 /** Radius of the radar chart */\r\n radius?: number;\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 /** Maximum value for the chart */\r\n maxValue?: number;\r\n /** Minimum value for the chart */\r\n minValue?: number;\r\n\r\n // Graph Parameters\r\n /** Toggle visibility of values */\r\n showValues?: boolean;\r\n /** Toggle visibility of dots on the line */\r\n showDots?: boolean;\r\n /** Stroke width of the line */\r\n strokeWidth?: number;\r\n /** Toggle is the shape is filled or not */\r\n fillShape?: boolean;\r\n /** No. of ticks on the x-axis */\r\n noOfTicks?: number;\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 highlightedLines?: (string | number)[];\r\n /** Defines the opacity of the non-highlighted data */\r\n dimmedOpacity?: number;\r\n /** Toggles if the graph animates in when loaded. */\r\n animate?: boolean | AnimateDataType;\r\n /** Labels for the axes */\r\n axisLabels: (string | number)[];\r\n /** Curve type for the line */\r\n curveType?: 'linear' | 'curve';\r\n /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */\r\n resetSelectionOnDoubleClick?: boolean;\r\n /** Configuration options for controlling number formatting, localization, precision, and zero padding. */\r\n numberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;\r\n /** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */\r\n customLayers?: CustomLayerDataType[];\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\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 RadarChart(props: Props) {\r\n const {\r\n graphTitle,\r\n colors,\r\n sources,\r\n graphDescription,\r\n footNote,\r\n radius,\r\n data,\r\n showColorScale = true,\r\n padding,\r\n backgroundColor = false,\r\n tooltip,\r\n onSeriesMouseOver,\r\n graphID,\r\n onSeriesMouseClick,\r\n topMargin = 75,\r\n bottomMargin = 75,\r\n leftMargin = 75,\r\n rightMargin = 75,\r\n graphDownload = false,\r\n dataDownload = false,\r\n colorDomain,\r\n language = 'en',\r\n theme = 'light',\r\n highlightedLines,\r\n width,\r\n height,\r\n minHeight = 0,\r\n strokeWidth = 2,\r\n relativeHeight,\r\n ariaLabel,\r\n colorLegendTitle,\r\n detailsOnClick,\r\n styles,\r\n classNames,\r\n showNAColor = true,\r\n axisLabels,\r\n showDots = true,\r\n showValues = false,\r\n curveType = 'curve',\r\n noOfTicks = 5,\r\n minValue,\r\n maxValue,\r\n fillShape = false,\r\n resetSelectionOnDoubleClick = true,\r\n animate = false,\r\n dimmedOpacity = 0.3,\r\n customLayers = [],\r\n numberDisplayOptions,\r\n } = props;\r\n\r\n const [graphRadius, setGraphRadius] = useState(0);\r\n const [selectedColor, setSelectedColor] = useState<string | undefined>(undefined);\r\n\r\n const graphDiv = useRef<HTMLDivElement>(null);\r\n const graphParentDiv = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const resizeObserver = new ResizeObserver(entries => {\r\n setGraphRadius(\r\n (Math.min(\r\n ...[\r\n entries[0].target.clientWidth || 620,\r\n entries[0].target.clientHeight || 480,\r\n radius || Infinity,\r\n ],\r\n ) || 420) / 2,\r\n );\r\n });\r\n if (graphDiv.current) {\r\n resizeObserver.observe(graphDiv.current);\r\n }\r\n return () => resizeObserver.disconnect();\r\n }, [radius]);\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 {showColorScale && data.filter(el => el.color).length !== 0 && data.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}\r\n className={classNames?.colorLegend}\r\n isCenter\r\n />\r\n ) : null}\r\n <GraphArea ref={graphDiv}>\r\n {data.length === 0 && <EmptyState />}\r\n {graphRadius && data.length > 0 ? (\r\n <Graph\r\n data={data}\r\n lineColors={\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 radius={graphRadius}\r\n tooltip={tooltip}\r\n colorDomain={colorDomain || (uniqBy(data, 'color', true) as string[])}\r\n onSeriesMouseOver={onSeriesMouseOver}\r\n onSeriesMouseClick={onSeriesMouseClick}\r\n styles={styles}\r\n detailsOnClick={detailsOnClick}\r\n selectedColor={selectedColor}\r\n axisLabels={axisLabels}\r\n strokeWidth={strokeWidth}\r\n showValues={showValues}\r\n showDots={showDots}\r\n topMargin={topMargin}\r\n bottomMargin={bottomMargin}\r\n leftMargin={leftMargin}\r\n rightMargin={rightMargin}\r\n curveType={curveType}\r\n noOfTicks={noOfTicks}\r\n minValue={minValue}\r\n maxValue={maxValue}\r\n fillShape={fillShape}\r\n highlightedLines={highlightedLines}\r\n resetSelectionOnDoubleClick={resetSelectionOnDoubleClick}\r\n animate={\r\n animate === true\r\n ? { duration: 0.5, once: true, amount: 0.5 }\r\n : animate || { duration: 0, once: true, amount: 0 }\r\n }\r\n dimmedOpacity={dimmedOpacity}\r\n precision={numberDisplayOptions?.precision ?? 2}\r\n customLayers={customLayers}\r\n locale={numberDisplayOptions?.locale || 'en'}\r\n padZeros={numberDisplayOptions?.padZeros || false}\r\n />\r\n ) : null}\r\n </GraphArea>\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":["curveRadialLinear","curveRadial","curveLinear","Radial","curve","a","r","radial","context","lineRadial","l","c","_","line","noop","point","that","x","y","Cardinal","tension","custom","cardinal","CardinalClosed","curveCardinalClosed","LinearClosed","curveLinearClosed","Graph","props","$","_c","data","radius","lineColors","tooltip","onSeriesMouseOver","onSeriesMouseClick","colorDomain","detailsOnClick","styles","classNames","selectedColor","axisLabels","strokeWidth","showValues","showDots","rightMargin","topMargin","bottomMargin","leftMargin","curveType","noOfTicks","minValue","maxValue","resetSelectionOnDoubleClick","fillShape","highlightedLines","animate","dimmedOpacity","precision","customLayers","locale","padZeros","svgRef","useRef","t0","amount","once","isInView","useInView","t1","top","bottom","left","right","margin","radiusWithoutMargin","Math","min","mouseOverData","setMouseOverData","useState","undefined","mouseClickData","setMouseClickData","eventX","setEventX","eventY","setEventY","T0","T1","t10","t11","t12","t13","t2","t3","t4","t5","t6","t7","t8","t9","duration","graphObjectValues","xAxis","axis","gridLines","labels","angleScale","scaleLinear","domain","values","length","range","PI","t14","checkIfNullOrUndefined","max","map","_temp2","_temp4","maxVal","t15","_temp6","_temp8","minVal","scale","nice","ticksArray","ticks","lineShape","d_3","d","angle","i","motion","svg","filter","_temp9","_temp0","d_6","i_0","jsx","cos","sin","cn","textAnchor","d_7","i_1","Array","fill","numberFormattingFunction","AnimatePresence","d_8","i_2","jsxs","initial","opacity","label","color","indexOf","whileInView","transition","event","clientY","clientX","event_0","isEqual","_temp1","stroke","_temp10","Colors","gray","_temp11","_temp12","_temp13","fillOpacity","el_3","j","el","Fragment","cx","cy","_temp14","_temp15","t16","_temp16","_temp17","t17","t18","t19","Tooltip","t20","modal","DetailsModal","t21","d_10","layer","d_9","position","el_5","el_4","el_2","el_1","el_0","_el","d_5","d_4","d_1","_temp7","l_1","d_2","_temp5","l_2","_temp3","d_0","_temp","l_0","RadarChart","graphTitle","colors","sources","graphDescription","footNote","showColorScale","padding","backgroundColor","graphID","graphDownload","dataDownload","language","theme","width","height","minHeight","relativeHeight","ariaLabel","colorLegendTitle","showNAColor","numberDisplayOptions","graphRadius","setGraphRadius","setSelectedColor","graphDiv","graphParentDiv","useEffect","resizeObserver","ResizeObserver","entries","target","clientWidth","clientHeight","Infinity","current","observe","disconnect","GraphContainer","graphContainer","GraphHeader","title","description","ColorLegendWithMouseOver","categoricalColors","uniqBy","colorLegend","GraphArea","EmptyState","primaryColors","GraphFooter","footnote","source"],"mappings":"myBAEO,IAAIA,GAAoBC,GAAYC,cAAW,EAEtD,SAASC,GAAOC,EAAO,CACrB,KAAK,OAASA,CAChB,CAEAD,GAAO,UAAY,CACjB,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,UAAW,UAAW,CACpB,KAAK,OAAO,UAAS,CACvB,EACA,QAAS,UAAW,CAClB,KAAK,OAAO,QAAO,CACrB,EACA,MAAO,SAASE,EAAGC,EAAG,CACpB,KAAK,OAAO,MAAMA,EAAI,KAAK,IAAID,CAAC,EAAGC,EAAI,CAAC,KAAK,IAAID,CAAC,CAAC,CACrD,CACF,EAEe,SAASJ,GAAYG,EAAO,CAEzC,SAASG,EAAOC,EAAS,CACvB,OAAO,IAAIL,GAAOC,EAAMI,CAAO,CAAC,CAClC,CAEA,OAAAD,EAAO,OAASH,EAETG,CACT,CChCO,SAASE,GAAWC,EAAG,CAC5B,IAAIC,EAAID,EAAE,MAEV,OAAAA,EAAE,MAAQA,EAAE,EAAG,OAAOA,EAAE,EACxBA,EAAE,OAASA,EAAE,EAAG,OAAO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dist/RadarChart.d.ts
CHANGED
|
@@ -44,7 +44,15 @@ declare interface CustomLayerDataType {
|
|
|
44
44
|
layer: React.ReactNode;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | '
|
|
47
|
+
declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | 'ja' | 'ka' | 'km' | 'ko' | 'my' | 'ne' | 'zh' | 'custom';
|
|
48
|
+
|
|
49
|
+
declare interface NumberFormatOptions {
|
|
50
|
+
locale?: string;
|
|
51
|
+
precision?: number;
|
|
52
|
+
prefix?: string;
|
|
53
|
+
suffix?: string;
|
|
54
|
+
padZeros?: boolean;
|
|
55
|
+
}
|
|
48
56
|
|
|
49
57
|
declare interface Props {
|
|
50
58
|
/** Array of data objects */
|
|
@@ -121,10 +129,8 @@ declare interface Props {
|
|
|
121
129
|
curveType?: 'linear' | 'curve';
|
|
122
130
|
/** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
|
|
123
131
|
resetSelectionOnDoubleClick?: boolean;
|
|
124
|
-
/**
|
|
125
|
-
|
|
126
|
-
/** Locale for number formatting. Must matches what `Intl.NumberFormat` expects. */
|
|
127
|
-
locale?: string;
|
|
132
|
+
/** Configuration options for controlling number formatting, localization, precision, and zero padding. */
|
|
133
|
+
numberDisplayOptions?: Omit<NumberFormatOptions, 'suffix' | 'prefix'>;
|
|
128
134
|
/** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
|
|
129
135
|
customLayers?: CustomLayerDataType[];
|
|
130
136
|
/** Enable graph download option as png */
|