@undp/data-viz 1.3.1 → 1.4.1

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 (104) hide show
  1. package/dist/DataCards.cjs +21 -1
  2. package/dist/DataCards.cjs.map +1 -1
  3. package/dist/DataCards.js +622 -12
  4. package/dist/DataCards.js.map +1 -1
  5. package/dist/GraphEl-B6SoGRFW.cjs +2 -0
  6. package/dist/GraphEl-B6SoGRFW.cjs.map +1 -0
  7. package/dist/{checkIfMultiple-BB7PlCNh.js → GraphEl-Cw2tDUb3.js} +129 -1163
  8. package/dist/GraphEl-Cw2tDUb3.js.map +1 -0
  9. package/dist/GriddedGraphs.cjs +1 -1
  10. package/dist/GriddedGraphs.cjs.map +1 -1
  11. package/dist/GriddedGraphs.d.ts +2 -4
  12. package/dist/GriddedGraphs.js +9 -8
  13. package/dist/GriddedGraphs.js.map +1 -1
  14. package/dist/GriddedGraphsFromConfig.d.ts +2 -4
  15. package/dist/MultiGraphDashboard.cjs +1 -1
  16. package/dist/MultiGraphDashboard.cjs.map +1 -1
  17. package/dist/MultiGraphDashboard.d.ts +16 -12
  18. package/dist/MultiGraphDashboard.js +2 -2
  19. package/dist/MultiGraphDashboardFromConfig.d.ts +16 -12
  20. package/dist/MultiGraphDashboardWideToLongFormat.cjs +1 -1
  21. package/dist/MultiGraphDashboardWideToLongFormat.js +1 -1
  22. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs +2 -0
  23. package/dist/PerformanceIntensiveMultiGraphDashboard.cjs.map +1 -0
  24. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +566 -0
  25. package/dist/PerformanceIntensiveMultiGraphDashboard.js +353 -0
  26. package/dist/PerformanceIntensiveMultiGraphDashboard.js.map +1 -0
  27. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs +2 -0
  28. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.cjs.map +1 -0
  29. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +570 -0
  30. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js +38 -0
  31. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.js.map +1 -0
  32. package/dist/PerformanceIntensiveScrollStory.cjs +2 -0
  33. package/dist/PerformanceIntensiveScrollStory.cjs.map +1 -0
  34. package/dist/PerformanceIntensiveScrollStory.d.ts +493 -0
  35. package/dist/PerformanceIntensiveScrollStory.js +122 -0
  36. package/dist/PerformanceIntensiveScrollStory.js.map +1 -0
  37. package/dist/ScrollStory.cjs.map +1 -1
  38. package/dist/ScrollStory.d.ts +3 -5
  39. package/dist/ScrollStory.js.map +1 -1
  40. package/dist/SingleGraphDashboard.cjs +1 -1
  41. package/dist/SingleGraphDashboard.cjs.map +1 -1
  42. package/dist/SingleGraphDashboard.d.ts +2 -5
  43. package/dist/SingleGraphDashboard.js +194 -194
  44. package/dist/SingleGraphDashboard.js.map +1 -1
  45. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -4
  46. package/dist/SingleGraphDashboardGeoHubMaps.cjs +2 -0
  47. package/dist/SingleGraphDashboardGeoHubMaps.cjs.map +1 -0
  48. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +428 -0
  49. package/dist/SingleGraphDashboardGeoHubMaps.js +185 -0
  50. package/dist/SingleGraphDashboardGeoHubMaps.js.map +1 -0
  51. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs +2 -0
  52. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.cjs.map +1 -0
  53. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +432 -0
  54. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js +25 -0
  55. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.js.map +1 -0
  56. package/dist/SingleGraphDashboardThreeDGraphs.cjs +2 -0
  57. package/dist/SingleGraphDashboardThreeDGraphs.cjs.map +1 -0
  58. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +540 -0
  59. package/dist/SingleGraphDashboardThreeDGraphs.js +610 -0
  60. package/dist/SingleGraphDashboardThreeDGraphs.js.map +1 -0
  61. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs +2 -0
  62. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.cjs.map +1 -0
  63. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +543 -0
  64. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js +35 -0
  65. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.js.map +1 -0
  66. package/dist/Types.d.ts +38 -11
  67. package/dist/checkIfMultiple-CYp3vADF.js +912 -0
  68. package/dist/checkIfMultiple-CYp3vADF.js.map +1 -0
  69. package/dist/checkIfMultiple-Do4kADNr.cjs +12 -0
  70. package/dist/checkIfMultiple-Do4kADNr.cjs.map +1 -0
  71. package/dist/getSchema.cjs.map +1 -1
  72. package/dist/getSchema.d.ts +7 -5
  73. package/dist/getSchema.js.map +1 -1
  74. package/dist/index.cjs +1 -1
  75. package/dist/index.d.ts +330 -163
  76. package/dist/index.js +150 -136
  77. package/dist/index.js.map +1 -1
  78. package/dist/style.css +1 -1
  79. package/dist/transformData.cjs +1 -1
  80. package/dist/transformData.d.ts +5 -5
  81. package/dist/transformData.js +2 -2
  82. package/dist/{transformDataForAggregation-DAQJWGNL.js → transformDataForAggregation-CdcwlnNe.js} +2 -2
  83. package/dist/transformDataForAggregation-CdcwlnNe.js.map +1 -0
  84. package/dist/{transformDataForAggregation-BUGJnson.cjs → transformDataForAggregation-Du-Hei-W.cjs} +2 -2
  85. package/dist/transformDataForAggregation-Du-Hei-W.cjs.map +1 -0
  86. package/dist/{transformDataForGraphFromFile-DdNiOWeC.js → transformDataForGraphFromFile-CA0rw80A.js} +2 -2
  87. package/dist/{transformDataForGraphFromFile-DdNiOWeC.js.map → transformDataForGraphFromFile-CA0rw80A.js.map} +1 -1
  88. package/dist/{transformDataForGraphFromFile-CrntpaMU.cjs → transformDataForGraphFromFile-D9G3ToQf.cjs} +2 -2
  89. package/dist/{transformDataForGraphFromFile-CrntpaMU.cjs.map → transformDataForGraphFromFile-D9G3ToQf.cjs.map} +1 -1
  90. package/dist/transformDataForSelect-D8AuvYdf.js +14 -0
  91. package/dist/transformDataForSelect-D8AuvYdf.js.map +1 -0
  92. package/dist/transformDataForSelect-YmStusCI.cjs +2 -0
  93. package/dist/transformDataForSelect-YmStusCI.cjs.map +1 -0
  94. package/dist/validateSchema.d.ts +2 -4
  95. package/package.json +37 -2
  96. package/dist/checkIfMultiple-BB7PlCNh.js.map +0 -1
  97. package/dist/checkIfMultiple-D5ysrI7G.cjs +0 -12
  98. package/dist/checkIfMultiple-D5ysrI7G.cjs.map +0 -1
  99. package/dist/index-D9h2WYDS.cjs +0 -22
  100. package/dist/index-D9h2WYDS.cjs.map +0 -1
  101. package/dist/index-OCoyy1wG.js +0 -635
  102. package/dist/index-OCoyy1wG.js.map +0 -1
  103. package/dist/transformDataForAggregation-BUGJnson.cjs.map +0 -1
  104. package/dist/transformDataForAggregation-DAQJWGNL.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -180,9 +180,9 @@ declare interface ClassNameObject {
180
180
  dataCards?: string;
181
181
  }
182
182
 
183
- export declare function ColorLegend(props: Props_51): JSX.Element;
183
+ export declare function ColorLegend(props: Props_58): JSX.Element;
184
184
 
185
- export declare function ColorLegendWithMouseOver(props: Props_52): JSX.Element;
185
+ export declare function ColorLegendWithMouseOver(props: Props_59): JSX.Element;
186
186
 
187
187
  export declare const Colors: {
188
188
  gray: string;
@@ -382,6 +382,25 @@ declare interface ConfigObject {
382
382
  }
383
383
 
384
384
  declare interface ConfigObject_2 {
385
+ dashboardID?: string;
386
+ dashboardLayout: PerformanceIntensiveDashboardLayoutDataType;
387
+ dataSettings: DataSettingsDataType;
388
+ filters?: FilterUiSettingsDataType[];
389
+ noOfFiltersPerRow?: number;
390
+ filterPosition?: 'top' | 'side';
391
+ debugMode?: boolean;
392
+ theme?: 'dark' | 'light';
393
+ readableHeader?: {
394
+ value: string;
395
+ label: string;
396
+ }[];
397
+ dataFilters?: DataFilterDataType[];
398
+ uiMode?: 'light' | 'normal';
399
+ graphStyles?: StyleObject;
400
+ graphClassNames?: ClassNameObject;
401
+ }
402
+
403
+ declare interface ConfigObject_3 {
385
404
  validateDataAndSettings?: boolean;
386
405
  dashboardID?: string;
387
406
  dashboardLayout: DashboardFromWideToLongFormatLayoutDataType;
@@ -398,7 +417,7 @@ declare interface ConfigObject_2 {
398
417
  graphClassNames?: ClassNameObject;
399
418
  }
400
419
 
401
- declare interface ConfigObject_3 {
420
+ declare interface ConfigObject_4 {
402
421
  graphSettings?: GraphSettingsDataType;
403
422
  dataSettings?: DataSettingsDataType;
404
423
  filters?: FilterUiSettingsDataType[];
@@ -421,7 +440,37 @@ declare interface ConfigObject_3 {
421
440
  uiMode?: 'light' | 'normal';
422
441
  }
423
442
 
424
- declare interface ConfigObject_4 {
443
+ declare interface ConfigObject_5 {
444
+ graphSettings?: GraphSettingsDataType;
445
+ graphType: GeoHubGraphType;
446
+ debugMode?: boolean;
447
+ uiMode?: 'light' | 'normal';
448
+ }
449
+
450
+ declare interface ConfigObject_6 {
451
+ graphSettings?: GraphSettingsDataType;
452
+ dataSettings: DataSettingsDataType;
453
+ filters?: FilterUiSettingsDataType[];
454
+ graphType: ThreeDGraphType;
455
+ noOfFiltersPerRow?: number;
456
+ dataTransform?: {
457
+ keyColumn: string;
458
+ aggregationColumnsSetting?: AggregationSettingsDataType[];
459
+ };
460
+ dataFilters?: DataFilterDataType[];
461
+ graphDataConfiguration?: GraphConfigurationDataType[];
462
+ debugMode?: boolean;
463
+ dataSelectionOptions?: DataSelectionDataType[];
464
+ advancedDataSelectionOptions?: AdvancedDataSelectionDataType[];
465
+ highlightDataPointSettings?: HighlightDataPointSettingsDataType;
466
+ readableHeader?: {
467
+ value: string;
468
+ label: string;
469
+ }[];
470
+ uiMode?: 'light' | 'normal';
471
+ }
472
+
473
+ declare interface ConfigObject_7 {
425
474
  noOfColumns?: number;
426
475
  columnGridBy: string;
427
476
  graphSettings?: GraphSettingsDataType;
@@ -448,9 +497,9 @@ declare interface ConfigObject_4 {
448
497
  theme?: 'dark' | 'light';
449
498
  }
450
499
 
451
- export declare function CopyTextButton(props: Props_50): JSX.Element;
500
+ export declare function CopyTextButton(props: Props_57): JSX.Element;
452
501
 
453
- export declare function CsvDownloadButton(props: Props_49): JSX.Element;
502
+ export declare function CsvDownloadButton(props: Props_56): JSX.Element;
454
503
 
455
504
  declare type CurveTypes = 'linear' | 'curve' | 'step' | 'stepAfter' | 'stepBefore';
456
505
 
@@ -477,8 +526,11 @@ declare interface CustomLayerDataType {
477
526
  layer: React.ReactNode;
478
527
  }
479
528
 
480
- declare type DashboardColumnDataType = {
529
+ declare interface DashboardColumnDataType extends DashboardColumnDataWithoutGraphType {
481
530
  graphType: GraphType;
531
+ }
532
+
533
+ declare interface DashboardColumnDataWithoutGraphType {
482
534
  attachedFilter?: string;
483
535
  columnWidth?: number;
484
536
  dataTransform?: {
@@ -490,7 +542,7 @@ declare type DashboardColumnDataType = {
490
542
  dataSelectionOptions?: DataSelectionDataType[];
491
543
  advancedDataSelectionOptions?: AdvancedDataSelectionDataType[];
492
544
  settings?: GraphSettingsDataType;
493
- };
545
+ }
494
546
 
495
547
  declare type DashboardFromWideToLongFormatColumnDataType = {
496
548
  graphType: 'donutChart' | 'barChart' | 'unitChart' | 'treeMap' | 'circlePacking';
@@ -513,17 +565,20 @@ declare type DashboardFromWideToLongFormatLayoutDataType = {
513
565
  }[];
514
566
  };
515
567
 
516
- declare type DashboardLayoutDataType = {
568
+ declare interface DashboardLayoutDataType extends DashboardLayoutDataWithoutRowsType {
569
+ rows: {
570
+ columns: DashboardColumnDataType[];
571
+ height?: number;
572
+ }[];
573
+ }
574
+
575
+ declare interface DashboardLayoutDataWithoutRowsType {
517
576
  title?: string;
518
577
  description?: string;
519
578
  padding?: string;
520
579
  backgroundColor?: string | boolean;
521
580
  language?: Languages;
522
- rows: {
523
- columns: DashboardColumnDataType[];
524
- height?: number;
525
- }[];
526
- };
581
+ }
527
582
 
528
583
  export declare function DataCards(props: Props_30): JSX.Element;
529
584
 
@@ -660,7 +715,7 @@ export declare const excelDownload: (csvData: any, fileName: string, headers: st
660
715
  [key: string]: string;
661
716
  }, wscols: WsColInterface_2[]) => void;
662
717
 
663
- export declare function ExcelDownloadButton(props: Props_46): JSX.Element;
718
+ export declare function ExcelDownloadButton(props: Props_53): JSX.Element;
664
719
 
665
720
  /**
666
721
  * Fetches a CSV file from a URL, parses it, and applies transformations based on the provided configuration.
@@ -759,7 +814,7 @@ declare type FilterUiSettingsDataType = {
759
814
  width?: string;
760
815
  };
761
816
 
762
- export declare function FootNote(props: Props_57): JSX.Element | null;
817
+ export declare function FootNote(props: Props_64): JSX.Element | null;
763
818
 
764
819
  /**
765
820
  * Generates an embed link with custom query parameters.
@@ -3967,11 +4022,11 @@ declare interface GraphConfigurationDataType {
3967
4022
  chartConfigId: string;
3968
4023
  }
3969
4024
 
3970
- export declare function GraphDescription(props: Props_58): JSX.Element | null;
4025
+ export declare function GraphDescription(props: Props_65): JSX.Element | null;
3971
4026
 
3972
- export declare function GraphFooter(props: Props_55): JSX.Element | null;
4027
+ export declare function GraphFooter(props: Props_62): JSX.Element | null;
3973
4028
 
3974
- export declare function GraphHeader(props: Props_56): JSX.Element;
4029
+ export declare function GraphHeader(props: Props_63): JSX.Element;
3975
4030
 
3976
4031
  export declare const graphList: {
3977
4032
  graphName: string;
@@ -4224,15 +4279,15 @@ declare interface GraphSettingsDataType {
4224
4279
  polygonAltitude?: number;
4225
4280
  }
4226
4281
 
4227
- export declare function GraphTitle(props: Props_59): JSX.Element | null;
4282
+ export declare function GraphTitle(props: Props_66): JSX.Element | null;
4228
4283
 
4229
- export declare type GraphType = GraphTypeForGriddedGraph | GeoHubGraphType;
4284
+ export declare type GraphType = GraphTypeForGriddedGraph;
4230
4285
 
4231
- export declare type GraphTypeForGriddedGraph = 'barChart' | 'stackedBarChart' | 'groupedBarChart' | 'lineChart' | 'dualAxisLineChart' | 'multiLineChart' | 'multiLineAltChart' | 'differenceLineChart' | 'stackedAreaChart' | 'choroplethMap' | 'biVariateChoroplethMap' | 'dotDensityMap' | 'donutChart' | 'slopeChart' | 'scatterPlot' | 'dumbbellChart' | 'treeMap' | 'circlePacking' | 'heatMap' | 'stripChart' | 'beeSwarmChart' | 'butterflyChart' | 'histogram' | 'sparkLine' | 'paretoChart' | 'dataTable' | 'statCard' | 'unitChart' | 'sankeyChart' | 'lineChartWithConfidenceInterval' | 'dataCards' | 'radarChart' | 'bulletChart' | 'threeDGlobe';
4286
+ export declare type GraphTypeForGriddedGraph = 'barChart' | 'stackedBarChart' | 'groupedBarChart' | 'lineChart' | 'dualAxisLineChart' | 'multiLineChart' | 'multiLineAltChart' | 'differenceLineChart' | 'stackedAreaChart' | 'choroplethMap' | 'biVariateChoroplethMap' | 'dotDensityMap' | 'donutChart' | 'slopeChart' | 'scatterPlot' | 'dumbbellChart' | 'treeMap' | 'circlePacking' | 'heatMap' | 'stripChart' | 'beeSwarmChart' | 'butterflyChart' | 'histogram' | 'sparkLine' | 'paretoChart' | 'dataTable' | 'statCard' | 'unitChart' | 'sankeyChart' | 'lineChartWithConfidenceInterval' | 'dataCards' | 'radarChart' | 'bulletChart';
4232
4287
 
4233
- export declare function GriddedGraphs(props: Props_40): JSX.Element;
4288
+ export declare function GriddedGraphs(props: Props_43): JSX.Element;
4234
4289
 
4235
- export declare function GriddedGraphsFromConfig(props: Props_45): JSX.Element;
4290
+ export declare function GriddedGraphsFromConfig(props: Props_52): JSX.Element;
4236
4291
 
4237
4292
  declare interface GroupedBarChartProps {
4238
4293
  /** Array of data objects */
@@ -4414,7 +4469,7 @@ declare interface HistogramDataType {
4414
4469
  */
4415
4470
  export declare function imageDownload(node: HTMLElement, filename: string): void;
4416
4471
 
4417
- export declare function ImageDownloadButton(props: Props_47): JSX.Element;
4472
+ export declare function ImageDownloadButton(props: Props_54): JSX.Element;
4418
4473
 
4419
4474
  declare interface InfoBoxDataType {
4420
4475
  title?: string | React.ReactNode;
@@ -4423,7 +4478,7 @@ declare interface InfoBoxDataType {
4423
4478
 
4424
4479
  declare type Languages = 'en' | 'ar' | 'az' | 'bn' | 'cy' | 'he' | 'hi' | 'jp' | 'ka' | 'km' | 'ko' | 'my' | 'ne' | 'zh' | 'custom';
4425
4480
 
4426
- export declare function LinearColorLegend(props: Props_53): JSX.Element;
4481
+ export declare function LinearColorLegend(props: Props_60): JSX.Element;
4427
4482
 
4428
4483
  declare interface LineChartDataType {
4429
4484
  date: number | string;
@@ -4456,11 +4511,11 @@ declare interface MaterialDataType {
4456
4511
 
4457
4512
  export declare function MultiGraphDashboard(props: Props_37): JSX.Element;
4458
4513
 
4459
- export declare function MultiGraphDashboardFromConfig(props: Props_42): JSX.Element;
4514
+ export declare function MultiGraphDashboardFromConfig(props: Props_46): JSX.Element;
4460
4515
 
4461
- export declare function MultiGraphDashboardWideToLongFormat(props: Props_38): JSX.Element;
4516
+ export declare function MultiGraphDashboardWideToLongFormat(props: Props_39): JSX.Element;
4462
4517
 
4463
- export declare function MultiGraphDashboardWideToLongFormatFromConfig(props: Props_43): JSX.Element;
4518
+ export declare function MultiGraphDashboardWideToLongFormatFromConfig(props: Props_48): JSX.Element;
4464
4519
 
4465
4520
  export declare function MultiLineAltChart(props: Props_10): JSX.Element;
4466
4521
 
@@ -4518,6 +4573,32 @@ declare interface ParetoChartDataType {
4518
4573
  data?: object;
4519
4574
  }
4520
4575
 
4576
+ declare interface PerformanceIntensiveChaptersDataType {
4577
+ dataSettings: DataSettingsDataType;
4578
+ graphSettings: GraphSettingsDataType;
4579
+ graphType: GraphType | GeoHubGraphType | ThreeDGraphType;
4580
+ graphDataConfiguration?: GraphConfigurationDataType[];
4581
+ sections: SectionsDataType[];
4582
+ }
4583
+
4584
+ declare interface PerformanceIntensiveDashboardColumnDataType extends DashboardColumnDataWithoutGraphType {
4585
+ graphType: GraphType | ThreeDGraphType | GeoHubGraphType;
4586
+ }
4587
+
4588
+ declare interface PerformanceIntensiveDashboardLayoutDataType extends DashboardLayoutDataWithoutRowsType {
4589
+ rows: {
4590
+ columns: PerformanceIntensiveDashboardColumnDataType[];
4591
+ height?: number;
4592
+ }[];
4593
+ }
4594
+
4595
+ export declare function PerformanceIntensiveMultiGraphDashboard(props: Props_38): JSX.Element;
4596
+
4597
+ export declare function PerformanceIntensiveMultiGraphDashboardFromConfig(props: Props_47): JSX.Element;
4598
+
4599
+ /** ScrollStory is a scrollytelling container component that reveals content step-by-step as the user scrolls through the page. */
4600
+ export declare function PerformanceIntensiveScrollStory(props: Props_45): JSX.Element;
4601
+
4521
4602
  declare interface Props {
4522
4603
  /** Array of data objects */
4523
4604
  data: BarGraphDataType[];
@@ -7113,43 +7194,37 @@ declare interface Props_37 {
7113
7194
 
7114
7195
  declare interface Props_38 {
7115
7196
  dashboardID?: string;
7116
- dashboardLayout: DashboardFromWideToLongFormatLayoutDataType;
7117
- dataSettings: DataSettingsWideToLongDataType;
7197
+ dashboardLayout: PerformanceIntensiveDashboardLayoutDataType;
7198
+ dataSettings: DataSettingsDataType;
7199
+ filters?: FilterUiSettingsDataType[];
7200
+ noOfFiltersPerRow?: number;
7201
+ dataFilters?: DataFilterDataType[];
7118
7202
  debugMode?: boolean;
7119
7203
  theme?: 'dark' | 'light';
7204
+ filterPosition?: 'top' | 'side';
7120
7205
  readableHeader?: {
7121
7206
  value: string;
7122
7207
  label: string;
7123
7208
  }[];
7124
- dataFilters?: DataFilterDataType[];
7125
7209
  uiMode?: 'light' | 'normal';
7126
7210
  graphStyles?: StyleObject;
7127
7211
  graphClassNames?: ClassNameObject;
7128
7212
  }
7129
7213
 
7130
7214
  declare interface Props_39 {
7131
- graphSettings?: GraphSettingsDataType;
7215
+ dashboardID?: string;
7216
+ dashboardLayout: DashboardFromWideToLongFormatLayoutDataType;
7217
+ dataSettings: DataSettingsWideToLongDataType;
7218
+ debugMode?: boolean;
7219
+ theme?: 'dark' | 'light';
7132
7220
  readableHeader?: {
7133
7221
  value: string;
7134
7222
  label: string;
7135
7223
  }[];
7136
- dataSettings?: DataSettingsDataType;
7137
- filters?: FilterUiSettingsDataType[];
7138
- highlightDataPointSettings?: HighlightDataPointSettingsDataType;
7139
- noOfFiltersPerRow?: number;
7140
- graphType: GraphType;
7141
- dataTransform?: {
7142
- keyColumn: string;
7143
- aggregationColumnsSetting?: AggregationSettingsDataType[];
7144
- };
7145
7224
  dataFilters?: DataFilterDataType[];
7146
- graphDataConfiguration?: GraphConfigurationDataType[];
7147
- dataSelectionOptions?: DataSelectionDataType[];
7148
- advancedDataSelectionOptions?: AdvancedDataSelectionDataType[];
7149
- debugMode?: boolean;
7150
7225
  uiMode?: 'light' | 'normal';
7151
- updateFilters?: (_d: string) => void;
7152
- theme?: 'dark' | 'light';
7226
+ graphStyles?: StyleObject;
7227
+ graphClassNames?: ClassNameObject;
7153
7228
  }
7154
7229
 
7155
7230
  declare interface Props_4 {
@@ -7278,6 +7353,61 @@ declare interface Props_4 {
7278
7353
  }
7279
7354
 
7280
7355
  declare interface Props_40 {
7356
+ graphSettings?: GraphSettingsDataType;
7357
+ readableHeader?: {
7358
+ value: string;
7359
+ label: string;
7360
+ }[];
7361
+ dataSettings?: DataSettingsDataType;
7362
+ filters?: FilterUiSettingsDataType[];
7363
+ highlightDataPointSettings?: HighlightDataPointSettingsDataType;
7364
+ noOfFiltersPerRow?: number;
7365
+ graphType: GraphType;
7366
+ dataTransform?: {
7367
+ keyColumn: string;
7368
+ aggregationColumnsSetting?: AggregationSettingsDataType[];
7369
+ };
7370
+ dataFilters?: DataFilterDataType[];
7371
+ graphDataConfiguration?: GraphConfigurationDataType[];
7372
+ dataSelectionOptions?: DataSelectionDataType[];
7373
+ advancedDataSelectionOptions?: AdvancedDataSelectionDataType[];
7374
+ debugMode?: boolean;
7375
+ uiMode?: 'light' | 'normal';
7376
+ updateFilters?: (_d: string) => void;
7377
+ }
7378
+
7379
+ declare interface Props_41 {
7380
+ graphSettings?: GraphSettingsDataType;
7381
+ graphType: GeoHubGraphType;
7382
+ debugMode?: boolean;
7383
+ uiMode?: 'light' | 'normal';
7384
+ }
7385
+
7386
+ declare interface Props_42 {
7387
+ graphSettings?: GraphSettingsDataType;
7388
+ readableHeader?: {
7389
+ value: string;
7390
+ label: string;
7391
+ }[];
7392
+ dataSettings: DataSettingsDataType;
7393
+ filters?: FilterUiSettingsDataType[];
7394
+ highlightDataPointSettings?: HighlightDataPointSettingsDataType;
7395
+ noOfFiltersPerRow?: number;
7396
+ graphType: ThreeDGraphType;
7397
+ dataTransform?: {
7398
+ keyColumn: string;
7399
+ aggregationColumnsSetting?: AggregationSettingsDataType[];
7400
+ };
7401
+ dataFilters?: DataFilterDataType[];
7402
+ graphDataConfiguration?: GraphConfigurationDataType[];
7403
+ dataSelectionOptions?: DataSelectionDataType[];
7404
+ advancedDataSelectionOptions?: AdvancedDataSelectionDataType[];
7405
+ debugMode?: boolean;
7406
+ uiMode?: 'light' | 'normal';
7407
+ updateFilters?: (_d: string) => void;
7408
+ }
7409
+
7410
+ declare interface Props_43 {
7281
7411
  noOfColumns?: number;
7282
7412
  columnGridBy: string;
7283
7413
  graphSettings?: GraphSettingsDataType;
@@ -7305,7 +7435,7 @@ declare interface Props_40 {
7305
7435
  theme?: 'dark' | 'light';
7306
7436
  }
7307
7437
 
7308
- declare interface Props_41 {
7438
+ declare interface Props_44 {
7309
7439
  /** Defines if the information is shown as overlay or on the side */
7310
7440
  mode?: 'overlay' | 'side';
7311
7441
  /** Defines the width of the info section */
@@ -7320,61 +7450,35 @@ declare interface Props_41 {
7320
7450
  infoBackgroundColor?: string;
7321
7451
  }
7322
7452
 
7323
- declare interface Props_42 {
7324
- config: string | ConfigObject;
7325
- }
7326
-
7327
- declare interface Props_43 {
7328
- config: string | ConfigObject_2;
7329
- }
7330
-
7331
- declare interface Props_44 {
7332
- config: string | ConfigObject_3;
7333
- }
7334
-
7335
7453
  declare interface Props_45 {
7336
- config: string | ConfigObject_4;
7454
+ /** Defines if the information is shown as overlay or on the side */
7455
+ mode?: 'overlay' | 'side';
7456
+ /** Defines the width of the info section */
7457
+ infoWidth?: string;
7458
+ /** Defined the different chapters for the story and different sections within the story */
7459
+ chapters: PerformanceIntensiveChaptersDataType[];
7460
+ /** Position of info on the page */
7461
+ infoPosition?: 'left' | 'right' | 'center';
7462
+ /** Sets how much of the element (from 0 to 1) must be visible before it's considered in view and it trigger the animation in the scrollytelling */
7463
+ visibilityThreshold?: number;
7464
+ /** Sets background color of the info box. */
7465
+ infoBackgroundColor?: string;
7337
7466
  }
7338
7467
 
7339
7468
  declare interface Props_46 {
7340
- buttonContent?: string | JSX_2.Element;
7341
- buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7342
- csvData: any;
7343
- fileName?: string;
7344
- headers: string[];
7345
- xlsxHeader: any;
7346
- wscols: WsColInterface[];
7347
- buttonSmall?: boolean;
7348
- className?: string;
7469
+ config: string | ConfigObject;
7349
7470
  }
7350
7471
 
7351
7472
  declare interface Props_47 {
7352
- buttonContent?: string | JSX_2.Element;
7353
- buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7354
- nodeID: string | HTMLElement;
7355
- filename?: string;
7356
- buttonSmall?: boolean;
7357
- className?: string;
7473
+ config: string | ConfigObject_2;
7358
7474
  }
7359
7475
 
7360
7476
  declare interface Props_48 {
7361
- buttonContent?: string | JSX_2.Element;
7362
- buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7363
- nodeID: string | HTMLElement;
7364
- filename?: string;
7365
- buttonSmall?: boolean;
7366
- className?: string;
7477
+ config: string | ConfigObject_3;
7367
7478
  }
7368
7479
 
7369
7480
  declare interface Props_49 {
7370
- buttonContent?: string | JSX_2.Element;
7371
- buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7372
- csvData: any;
7373
- fileName?: string;
7374
- headers: HeaderProps[];
7375
- separator?: ',' | ';';
7376
- buttonSmall?: boolean;
7377
- className?: string;
7481
+ config: string | ConfigObject_4;
7378
7482
  }
7379
7483
 
7380
7484
  declare interface Props_5 {
@@ -7473,102 +7577,86 @@ declare interface Props_5 {
7473
7577
  }
7474
7578
 
7475
7579
  declare interface Props_50 {
7476
- text: string;
7477
- successMessage?: string;
7478
- buttonText?: string;
7479
- buttonSmall?: boolean;
7480
- className?: string;
7580
+ config: string | ConfigObject_5;
7481
7581
  }
7482
7582
 
7483
7583
  declare interface Props_51 {
7484
- colors: string[];
7485
- colorDomain: (string | number)[];
7486
- dashedLines?: (string | number)[];
7487
- labelsToBeHidden?: (string | number)[];
7488
- colorLegendTitle?: string;
7489
- showNAColor: boolean;
7490
- width?: number;
7491
- isCenter?: boolean;
7492
- className?: string;
7584
+ config: string | ConfigObject_6;
7493
7585
  }
7494
7586
 
7495
7587
  declare interface Props_52 {
7496
- colors: string[];
7497
- colorDomain: (string | number)[];
7498
- colorLegendTitle?: string;
7499
- showNAColor: boolean;
7500
- setSelectedColor: (_d?: string) => void;
7501
- width?: number;
7502
- isCenter?: boolean;
7503
- className?: string;
7588
+ config: string | ConfigObject_7;
7504
7589
  }
7505
7590
 
7506
7591
  declare interface Props_53 {
7507
- colors: string[];
7508
- colorDomain: number[];
7509
- colorLegendTitle?: string;
7510
- width?: number;
7592
+ buttonContent?: string | JSX_2.Element;
7593
+ buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7594
+ csvData: any;
7595
+ fileName?: string;
7596
+ headers: string[];
7597
+ xlsxHeader: any;
7598
+ wscols: WsColInterface[];
7599
+ buttonSmall?: boolean;
7511
7600
  className?: string;
7512
7601
  }
7513
7602
 
7514
7603
  declare interface Props_54 {
7515
- colors: string[];
7516
- colorDomain: number[];
7517
- colorLegendTitle?: string;
7518
- setSelectedColor: (_d?: string) => void;
7519
- width?: number;
7520
- naColor?: string;
7604
+ buttonContent?: string | JSX_2.Element;
7605
+ buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7606
+ nodeID: string | HTMLElement;
7607
+ filename?: string;
7608
+ buttonSmall?: boolean;
7521
7609
  className?: string;
7522
- showNAColor: boolean;
7523
7610
  }
7524
7611
 
7525
7612
  declare interface Props_55 {
7526
- footNote?: string | React.ReactNode;
7527
- sources?: SourcesDataType[];
7528
- width?: number;
7529
- styles?: {
7530
- footnote?: React.CSSProperties;
7531
- source?: React.CSSProperties;
7532
- };
7533
- classNames?: {
7534
- footnote?: string;
7535
- source?: string;
7536
- };
7613
+ buttonContent?: string | JSX_2.Element;
7614
+ buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7615
+ nodeID: string | HTMLElement;
7616
+ filename?: string;
7617
+ buttonSmall?: boolean;
7618
+ className?: string;
7537
7619
  }
7538
7620
 
7539
7621
  declare interface Props_56 {
7540
- graphTitle?: string | React.ReactNode;
7541
- graphDescription?: string | React.ReactNode;
7542
- width?: number;
7543
- graphDownload?: HTMLDivElement | null;
7544
- dataDownload?: any;
7545
- isDashboard?: boolean;
7546
- styles?: {
7547
- title?: React.CSSProperties;
7548
- description?: React.CSSProperties;
7549
- };
7550
- classNames?: {
7551
- title?: string;
7552
- description?: string;
7553
- };
7622
+ buttonContent?: string | JSX_2.Element;
7623
+ buttonType?: 'primary' | 'primary-without-icon' | 'secondary' | 'secondary-without-icon' | 'tertiary';
7624
+ csvData: any;
7625
+ fileName?: string;
7626
+ headers: HeaderProps[];
7627
+ separator?: ',' | ';';
7628
+ buttonSmall?: boolean;
7629
+ className?: string;
7554
7630
  }
7555
7631
 
7556
7632
  declare interface Props_57 {
7557
- text: string | default_2.ReactNode;
7558
- style?: default_2.CSSProperties;
7633
+ text: string;
7634
+ successMessage?: string;
7635
+ buttonText?: string;
7636
+ buttonSmall?: boolean;
7559
7637
  className?: string;
7560
7638
  }
7561
7639
 
7562
7640
  declare interface Props_58 {
7563
- text: string | default_2.ReactNode;
7564
- style?: default_2.CSSProperties;
7641
+ colors: string[];
7642
+ colorDomain: (string | number)[];
7643
+ dashedLines?: (string | number)[];
7644
+ labelsToBeHidden?: (string | number)[];
7645
+ colorLegendTitle?: string;
7646
+ showNAColor: boolean;
7647
+ width?: number;
7648
+ isCenter?: boolean;
7565
7649
  className?: string;
7566
7650
  }
7567
7651
 
7568
7652
  declare interface Props_59 {
7569
- text: string | default_2.ReactNode;
7570
- isDashboard?: boolean;
7571
- style?: default_2.CSSProperties;
7653
+ colors: string[];
7654
+ colorDomain: (string | number)[];
7655
+ colorLegendTitle?: string;
7656
+ showNAColor: boolean;
7657
+ setSelectedColor: (_d?: string) => void;
7658
+ width?: number;
7659
+ isCenter?: boolean;
7572
7660
  className?: string;
7573
7661
  }
7574
7662
 
@@ -7665,6 +7753,75 @@ declare interface Props_6 {
7665
7753
  graphID?: string;
7666
7754
  }
7667
7755
 
7756
+ declare interface Props_60 {
7757
+ colors: string[];
7758
+ colorDomain: number[];
7759
+ colorLegendTitle?: string;
7760
+ width?: number;
7761
+ className?: string;
7762
+ }
7763
+
7764
+ declare interface Props_61 {
7765
+ colors: string[];
7766
+ colorDomain: number[];
7767
+ colorLegendTitle?: string;
7768
+ setSelectedColor: (_d?: string) => void;
7769
+ width?: number;
7770
+ naColor?: string;
7771
+ className?: string;
7772
+ showNAColor: boolean;
7773
+ }
7774
+
7775
+ declare interface Props_62 {
7776
+ footNote?: string | React.ReactNode;
7777
+ sources?: SourcesDataType[];
7778
+ width?: number;
7779
+ styles?: {
7780
+ footnote?: React.CSSProperties;
7781
+ source?: React.CSSProperties;
7782
+ };
7783
+ classNames?: {
7784
+ footnote?: string;
7785
+ source?: string;
7786
+ };
7787
+ }
7788
+
7789
+ declare interface Props_63 {
7790
+ graphTitle?: string | React.ReactNode;
7791
+ graphDescription?: string | React.ReactNode;
7792
+ width?: number;
7793
+ graphDownload?: HTMLDivElement | null;
7794
+ dataDownload?: any;
7795
+ isDashboard?: boolean;
7796
+ styles?: {
7797
+ title?: React.CSSProperties;
7798
+ description?: React.CSSProperties;
7799
+ };
7800
+ classNames?: {
7801
+ title?: string;
7802
+ description?: string;
7803
+ };
7804
+ }
7805
+
7806
+ declare interface Props_64 {
7807
+ text: string | default_2.ReactNode;
7808
+ style?: default_2.CSSProperties;
7809
+ className?: string;
7810
+ }
7811
+
7812
+ declare interface Props_65 {
7813
+ text: string | default_2.ReactNode;
7814
+ style?: default_2.CSSProperties;
7815
+ className?: string;
7816
+ }
7817
+
7818
+ declare interface Props_66 {
7819
+ text: string | default_2.ReactNode;
7820
+ isDashboard?: boolean;
7821
+ style?: default_2.CSSProperties;
7822
+ className?: string;
7823
+ }
7824
+
7668
7825
  declare interface Props_7 {
7669
7826
  /** Array of data objects */
7670
7827
  data: LineChartWithConfidenceIntervalDataType[];
@@ -8057,8 +8214,8 @@ declare interface ScatterPlotDataType {
8057
8214
  data?: object;
8058
8215
  }
8059
8216
 
8060
- /** ScrollStory is a scrollytelling container component that reveals content step-by-step as the user scrolls through the page. */
8061
- export declare function ScrollStory(props: Props_41): JSX.Element;
8217
+ /** ScrollStory is a scrollytelling container component that reveals content step-by-step as the user scrolls through the page. This does not include GeoHub maps and 3-D graph; for those please use `PerformanceIntensiveScrollStory`. */
8218
+ export declare function ScrollStory(props: Props_44): JSX.Element;
8062
8219
 
8063
8220
  declare interface SectionsDataType {
8064
8221
  graphSettings?: GraphSettingsDataType;
@@ -8070,9 +8227,17 @@ export declare function SimpleBarGraph(props: Props): JSX.Element;
8070
8227
 
8071
8228
  export declare function SimpleLineChart(props: Props_8): JSX.Element;
8072
8229
 
8073
- export declare function SingleGraphDashboard(props: Props_39): JSX.Element;
8230
+ export declare function SingleGraphDashboard(props: Props_40): JSX.Element;
8231
+
8232
+ export declare function SingleGraphDashboardFromConfig(props: Props_49): JSX.Element;
8233
+
8234
+ export declare function SingleGraphDashboardGeoHubMaps(props: Props_41): JSX.Element;
8074
8235
 
8075
- export declare function SingleGraphDashboardFromConfig(props: Props_44): JSX.Element;
8236
+ export declare function SingleGraphDashboardGeoHubMapsFromConfig(props: Props_50): JSX.Element;
8237
+
8238
+ export declare function SingleGraphDashboardThreeDGraphs(props: Props_42): JSX.Element;
8239
+
8240
+ export declare function SingleGraphDashboardThreeDGraphsFromConfig(props: Props_51): JSX.Element;
8076
8241
 
8077
8242
  export declare function SlopeChart(props: Props_21): JSX.Element;
8078
8243
 
@@ -8263,12 +8428,14 @@ declare interface StyleObject {
8263
8428
  */
8264
8429
  export declare function svgDownload(node: HTMLElement, filename: string): void;
8265
8430
 
8266
- export declare function SVGDownloadButton(props: Props_48): JSX.Element;
8431
+ export declare function SVGDownloadButton(props: Props_55): JSX.Element;
8267
8432
 
8268
8433
  /** For using these maps you will have to install [`three`](https://threejs.org/manual/) and [react-globe.gl](https://www.npmjs.com/package/react-globe.gl) package to your project */
8269
8434
  export declare function ThreeDGlobe(props: Props_16): JSX.Element;
8270
8435
 
8271
- export declare function ThresholdColorLegendWithMouseOver(props: Props_54): JSX.Element;
8436
+ declare type ThreeDGraphType = 'threeDGlobe';
8437
+
8438
+ export declare function ThresholdColorLegendWithMouseOver(props: Props_61): JSX.Element;
8272
8439
 
8273
8440
  declare interface TimelineDataType {
8274
8441
  autoplay: boolean;
@@ -8375,7 +8542,7 @@ export declare function transformDataForAggregation(data: any, keyColumn: string
8375
8542
  * const transformedData = transformDataForGraph(graphData, graph, config);
8376
8543
  * console.log(transformedData);
8377
8544
  */
8378
- export declare function transformDataForGraph(data: any, graph: GraphType, config?: GraphConfigurationDataType[]): any;
8545
+ export declare function transformDataForGraph(data: any, graph: GraphType | ThreeDGraphType, config?: GraphConfigurationDataType[]): any;
8379
8546
 
8380
8547
  /**
8381
8548
  * Fetches data from a given URL or multiple data sources, processes it according to the specified graph configuration,