@undp/data-viz 2.3.15 → 2.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/BiVariateChoroplethMap.cjs +1 -1
  2. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  3. package/dist/BiVariateChoroplethMap.d.ts +9 -6
  4. package/dist/BiVariateChoroplethMap.js +1 -1
  5. package/dist/BiVariateChoroplethMap.js.map +1 -1
  6. package/dist/ChoroplethMap.cjs +1 -1
  7. package/dist/ChoroplethMap.cjs.map +1 -1
  8. package/dist/ChoroplethMap.d.ts +9 -6
  9. package/dist/ChoroplethMap.js +1 -1
  10. package/dist/ChoroplethMap.js.map +1 -1
  11. package/dist/Data/data.json +2627 -0
  12. package/dist/Data/testMap.json +1 -361
  13. package/dist/DotDensityMap.cjs.map +1 -1
  14. package/dist/DotDensityMap.d.ts +7 -5
  15. package/dist/DotDensityMap.js.map +1 -1
  16. package/dist/{GraphEl-BgNA-xFf.js → GraphEl-CnJf8b50.js} +2 -1
  17. package/dist/GraphEl-CnJf8b50.js.map +1 -0
  18. package/dist/{GraphEl-Bl1Hnqnd.cjs → GraphEl-D_w0Qak4.cjs} +2 -2
  19. package/dist/GraphEl-D_w0Qak4.cjs.map +1 -0
  20. package/dist/GriddedGraphs.cjs +1 -1
  21. package/dist/GriddedGraphs.d.ts +8 -5
  22. package/dist/GriddedGraphs.js +1 -1
  23. package/dist/GriddedGraphsFromConfig.d.ts +8 -5
  24. package/dist/HybridMap.cjs.map +1 -1
  25. package/dist/HybridMap.d.ts +7 -5
  26. package/dist/HybridMap.js.map +1 -1
  27. package/dist/MultiGraphDashboard.d.ts +8 -5
  28. package/dist/MultiGraphDashboardFromConfig.d.ts +8 -5
  29. package/dist/MultiLineAltChart.cjs +1 -1
  30. package/dist/MultiLineAltChart.cjs.map +1 -1
  31. package/dist/MultiLineAltChart.d.ts +2 -0
  32. package/dist/MultiLineAltChart.js +387 -379
  33. package/dist/MultiLineAltChart.js.map +1 -1
  34. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +8 -5
  35. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +8 -5
  36. package/dist/PerformanceIntensiveScrollStory.d.ts +8 -5
  37. package/dist/ScatterPlot.cjs +1 -1
  38. package/dist/ScatterPlot.cjs.map +1 -1
  39. package/dist/ScatterPlot.d.ts +2 -0
  40. package/dist/ScatterPlot.js +396 -400
  41. package/dist/ScatterPlot.js.map +1 -1
  42. package/dist/ScrollStory.d.ts +8 -5
  43. package/dist/SingleGraphDashboard.cjs +1 -1
  44. package/dist/SingleGraphDashboard.d.ts +8 -5
  45. package/dist/SingleGraphDashboard.js +1 -1
  46. package/dist/SingleGraphDashboardFromConfig.d.ts +8 -5
  47. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +8 -5
  48. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +8 -5
  49. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +8 -5
  50. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +8 -5
  51. package/dist/Types.d.ts +8 -5
  52. package/dist/index.d.ts +18 -27
  53. package/dist/style.css +1 -1
  54. package/package.json +1 -1
  55. package/dist/GraphEl-BgNA-xFf.js.map +0 -1
  56. package/dist/GraphEl-Bl1Hnqnd.cjs.map +0 -1
@@ -7,7 +7,7 @@ import { j as V, D as M } from "./DropdownSelect-B2WTeedJ.js";
7
7
  import { b as A, y as H, h as O, c as da, $ as K, P as Q } from "./checkIfMultiple-B97uOUVq.js";
8
8
  import { w as ha } from "./Spinner-CtJETd5V.js";
9
9
  import { G as ca } from "./GraphContainer-DwMxWRCi.js";
10
- import { G as fa } from "./GraphEl-BgNA-xFf.js";
10
+ import { G as fa } from "./GraphEl-CnJf8b50.js";
11
11
  import { f as ga, a as pa, b as ma, c as Ca, t as va } from "./fetchAndParseData-BAXhgTDM.js";
12
12
  import { a as Ia, t as ba } from "./transformDataForAggregation-wdPf8bNt.js";
13
13
  import { g as X } from "./getUniqValue-DsqSii6M.js";
@@ -492,11 +492,8 @@ declare interface GraphSettingsDataType {
492
492
  circularBoundary?: boolean;
493
493
  showDataMinMax?: boolean;
494
494
  showVoronoiTesselation?: boolean;
495
- mapOverlay?: {
496
- mapData: FeatureCollection | string;
497
- mapBorderWidth?: number;
498
- mapBorderColor?: string;
499
- };
495
+ mapOverlay?: MapOverlayDataType;
496
+ useVoronoiInteraction?: boolean;
500
497
  }
501
498
 
502
499
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -536,6 +533,12 @@ declare interface MapLegendDataType {
536
533
  legend: string | React.ReactNode;
537
534
  }
538
535
 
536
+ declare interface MapOverlayDataType {
537
+ mapData: FeatureCollection | string;
538
+ mapBorderWidth?: number;
539
+ mapBorderColor?: string;
540
+ }
541
+
539
542
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
540
543
 
541
544
  declare interface PointLightConfig extends BaseLightConfig {
@@ -383,11 +383,8 @@ declare interface GraphSettingsDataType {
383
383
  circularBoundary?: boolean;
384
384
  showDataMinMax?: boolean;
385
385
  showVoronoiTesselation?: boolean;
386
- mapOverlay?: {
387
- mapData: FeatureCollection | string;
388
- mapBorderWidth?: number;
389
- mapBorderColor?: string;
390
- };
386
+ mapOverlay?: MapOverlayDataType;
387
+ useVoronoiInteraction?: boolean;
391
388
  }
392
389
 
393
390
  declare interface HighlightAreaSettingsDataType {
@@ -415,6 +412,12 @@ declare interface MapLegendDataType {
415
412
  legend: string | React.ReactNode;
416
413
  }
417
414
 
415
+ declare interface MapOverlayDataType {
416
+ mapData: FeatureCollection | string;
417
+ mapBorderWidth?: number;
418
+ mapBorderColor?: string;
419
+ }
420
+
418
421
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
419
422
 
420
423
  declare interface PointLightConfig extends BaseLightConfig {
@@ -390,11 +390,8 @@ declare interface GraphSettingsDataType {
390
390
  circularBoundary?: boolean;
391
391
  showDataMinMax?: boolean;
392
392
  showVoronoiTesselation?: boolean;
393
- mapOverlay?: {
394
- mapData: FeatureCollection | string;
395
- mapBorderWidth?: number;
396
- mapBorderColor?: string;
397
- };
393
+ mapOverlay?: MapOverlayDataType;
394
+ useVoronoiInteraction?: boolean;
398
395
  }
399
396
 
400
397
  declare interface HighlightAreaSettingsDataType {
@@ -422,6 +419,12 @@ declare interface MapLegendDataType {
422
419
  legend: string | React.ReactNode;
423
420
  }
424
421
 
422
+ declare interface MapOverlayDataType {
423
+ mapData: FeatureCollection | string;
424
+ mapBorderWidth?: number;
425
+ mapBorderColor?: string;
426
+ }
427
+
425
428
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
426
429
 
427
430
  declare interface PointLightConfig extends BaseLightConfig {
@@ -469,11 +469,8 @@ declare interface GraphSettingsDataType {
469
469
  circularBoundary?: boolean;
470
470
  showDataMinMax?: boolean;
471
471
  showVoronoiTesselation?: boolean;
472
- mapOverlay?: {
473
- mapData: FeatureCollection | string;
474
- mapBorderWidth?: number;
475
- mapBorderColor?: string;
476
- };
472
+ mapOverlay?: MapOverlayDataType;
473
+ useVoronoiInteraction?: boolean;
477
474
  }
478
475
 
479
476
  declare interface HighlightAreaSettingsDataType {
@@ -509,6 +506,12 @@ declare interface MapLegendDataType {
509
506
  legend: string | React.ReactNode;
510
507
  }
511
508
 
509
+ declare interface MapOverlayDataType {
510
+ mapData: FeatureCollection | string;
511
+ mapBorderWidth?: number;
512
+ mapBorderColor?: string;
513
+ }
514
+
512
515
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
513
516
 
514
517
  declare interface PointLightConfig extends BaseLightConfig {
@@ -492,11 +492,8 @@ declare interface GraphSettingsDataType {
492
492
  circularBoundary?: boolean;
493
493
  showDataMinMax?: boolean;
494
494
  showVoronoiTesselation?: boolean;
495
- mapOverlay?: {
496
- mapData: FeatureCollection | string;
497
- mapBorderWidth?: number;
498
- mapBorderColor?: string;
499
- };
495
+ mapOverlay?: MapOverlayDataType;
496
+ useVoronoiInteraction?: boolean;
500
497
  }
501
498
 
502
499
  declare interface HighlightAreaSettingsDataType {
@@ -532,6 +529,12 @@ declare interface MapLegendDataType {
532
529
  legend: string | React.ReactNode;
533
530
  }
534
531
 
532
+ declare interface MapOverlayDataType {
533
+ mapData: FeatureCollection | string;
534
+ mapBorderWidth?: number;
535
+ mapBorderColor?: string;
536
+ }
537
+
535
538
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
536
539
 
537
540
  declare interface PointLightConfig extends BaseLightConfig {
package/dist/Types.d.ts CHANGED
@@ -677,11 +677,8 @@ export declare interface GraphSettingsDataType {
677
677
  circularBoundary?: boolean;
678
678
  showDataMinMax?: boolean;
679
679
  showVoronoiTesselation?: boolean;
680
- mapOverlay?: {
681
- mapData: FeatureCollection | string;
682
- mapBorderWidth?: number;
683
- mapBorderColor?: string;
684
- };
680
+ mapOverlay?: MapOverlayDataType;
681
+ useVoronoiInteraction?: boolean;
685
682
  }
686
683
 
687
684
  export declare type GraphType = GraphTypeForGriddedGraph;
@@ -770,6 +767,12 @@ export declare interface MapLegendDataType {
770
767
  legend: string | React.ReactNode;
771
768
  }
772
769
 
770
+ export declare interface MapOverlayDataType {
771
+ mapData: FeatureCollection | string;
772
+ mapBorderWidth?: number;
773
+ mapBorderColor?: string;
774
+ }
775
+
773
776
  export declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
774
777
 
775
778
  export declare interface MarginDataType {
package/dist/index.d.ts CHANGED
@@ -1235,11 +1235,8 @@ declare interface GraphSettingsDataType {
1235
1235
  circularBoundary?: boolean;
1236
1236
  showDataMinMax?: boolean;
1237
1237
  showVoronoiTesselation?: boolean;
1238
- mapOverlay?: {
1239
- mapData: FeatureCollection | string;
1240
- mapBorderWidth?: number;
1241
- mapBorderColor?: string;
1242
- };
1238
+ mapOverlay?: MapOverlayDataType;
1239
+ useVoronoiInteraction?: boolean;
1243
1240
  }
1244
1241
 
1245
1242
  export declare function GraphTitle(props: Props_68): JSX.Element | null;
@@ -1485,6 +1482,12 @@ declare interface MapLegendDataType {
1485
1482
  legend: string | React.ReactNode;
1486
1483
  }
1487
1484
 
1485
+ declare interface MapOverlayDataType {
1486
+ mapData: FeatureCollection | string;
1487
+ mapBorderWidth?: number;
1488
+ mapBorderColor?: string;
1489
+ }
1490
+
1488
1491
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
1489
1492
 
1490
1493
  export declare function MultiGraphDashboard(props: Props_39): JSX.Element;
@@ -1794,6 +1797,8 @@ declare interface Props_10 {
1794
1797
  showColorScale?: boolean;
1795
1798
  /** 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 */
1796
1799
  showNAColor?: boolean;
1800
+ /** Toggle visibility of year labels on hover. */
1801
+ showDateOnHover?: boolean;
1797
1802
  /** Defines how “NA” values should be displayed/labelled in the graph */
1798
1803
  naLabel?: string;
1799
1804
  /** Data points to highlight. Use the label value from data to highlight the data point */
@@ -2044,13 +2049,9 @@ declare interface Props_13 {
2044
2049
  /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
2045
2050
  padding?: string;
2046
2051
  /** Map data as an object in geoJson format or a url for geoJson */
2047
- mapData?: any;
2052
+ mapData?: FeatureCollection | string;
2048
2053
  /** Detail if any other map needs to be overlayed over the main map */
2049
- mapOverlay?: {
2050
- mapData?: any;
2051
- mapBorderWidth?: number;
2052
- mapBorderColor?: string;
2053
- };
2054
+ mapOverlay?: MapOverlayDataType;
2054
2055
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2055
2056
  rewindCoordinatesInMapData?: boolean;
2056
2057
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2153,13 +2154,9 @@ declare interface Props_14 {
2153
2154
  /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
2154
2155
  padding?: string;
2155
2156
  /** Map data as an object in geoJson format or a url for geoJson */
2156
- mapData?: any;
2157
+ mapData?: FeatureCollection | string;
2157
2158
  /** Detail if any other map needs to be overlayed over the main map */
2158
- mapOverlay?: {
2159
- mapData?: any;
2160
- mapBorderWidth?: number;
2161
- mapBorderColor?: string;
2162
- };
2159
+ mapOverlay?: MapOverlayDataType;
2163
2160
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2164
2161
  rewindCoordinatesInMapData?: boolean;
2165
2162
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2268,11 +2265,7 @@ declare interface Props_15 {
2268
2265
  /** Map data as an object in geoJson format or a url for geoJson */
2269
2266
  mapData?: FeatureCollection | string;
2270
2267
  /** Detail if any other map needs to be overlayed over the main map */
2271
- mapOverlay?: {
2272
- mapData?: FeatureCollection | string;
2273
- mapBorderWidth?: number;
2274
- mapBorderColor?: string;
2275
- };
2268
+ mapOverlay?: MapOverlayDataType;
2276
2269
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2277
2270
  rewindCoordinatesInMapData?: boolean;
2278
2271
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2381,11 +2374,7 @@ declare interface Props_16 {
2381
2374
  /** Map data as an object in geoJson format or a url for geoJson */
2382
2375
  mapData?: FeatureCollection | string;
2383
2376
  /** Detail if any other map needs to be overlayed over the main map */
2384
- mapOverlay?: {
2385
- mapData: FeatureCollection | string;
2386
- mapBorderWidth?: number;
2387
- mapBorderColor?: string;
2388
- };
2377
+ mapOverlay?: MapOverlayDataType;
2389
2378
  /** Defines if the coordinates in the map data should be rewinded or not. Try to change this is the visualization shows countries as holes instead of shapes. */
2390
2379
  rewindCoordinatesInMapData?: boolean;
2391
2380
  /** Scaling factor for the map. Multiplies the scale number to scale. */
@@ -2910,6 +2899,8 @@ declare interface Props_21 {
2910
2899
  dataDownload?: boolean;
2911
2900
  /** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
2912
2901
  resetSelectionOnDoubleClick?: boolean;
2902
+ /** Toggle interaction of Voronoi cells */
2903
+ useVoronoiInteraction?: boolean;
2913
2904
  /** Toggle visibility of Voronoi tesselation. Should be used for debugging only */
2914
2905
  showVoronoiTesselation?: boolean;
2915
2906
  /** 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 */