@undp/data-viz 0.0.71 → 0.0.73

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/index.d.ts CHANGED
@@ -5434,8 +5434,9 @@ export declare const getDashboardJSONSchema: (columnList?: string[]) => {
5434
5434
  colorLegendTitle: {
5435
5435
  type: string;
5436
5436
  };
5437
- categorical: {
5437
+ scaleType: {
5438
5438
  type: string;
5439
+ enum: string[];
5439
5440
  };
5440
5441
  scale: {
5441
5442
  type: string;
@@ -8338,9 +8339,6 @@ export declare const getDashboardJSONSchema: (columnList?: string[]) => {
8338
8339
  bottomMargin: {
8339
8340
  type: string;
8340
8341
  };
8341
- categorical: {
8342
- type: string;
8343
- };
8344
8342
  center: {
8345
8343
  items: {
8346
8344
  type: string;
@@ -9627,9 +9625,6 @@ export declare const getDashboardJSONSchema: (columnList?: string[]) => {
9627
9625
  bottomMargin: {
9628
9626
  type: string;
9629
9627
  };
9630
- categorical: {
9631
- type: string;
9632
- };
9633
9628
  center: {
9634
9629
  items: {
9635
9630
  type: string;
@@ -10894,9 +10889,6 @@ export declare const getDashboardJSONSchema: (columnList?: string[]) => {
10894
10889
  bottomMargin: {
10895
10890
  type: string;
10896
10891
  };
10897
- categorical: {
10898
- type: string;
10899
- };
10900
10892
  center: {
10901
10893
  items: {
10902
10894
  type: string;
@@ -16756,8 +16748,9 @@ export declare const getDashboardWideToLongFormatJSONSchema: () => {
16756
16748
  colorLegendTitle: {
16757
16749
  type: string;
16758
16750
  };
16759
- categorical: {
16751
+ scaleType: {
16760
16752
  type: string;
16753
+ enum: string[];
16761
16754
  };
16762
16755
  scale: {
16763
16756
  type: string;
@@ -20264,9 +20257,6 @@ export declare const getDataSelectionSchema: (columnList?: string[]) => {
20264
20257
  bottomMargin: {
20265
20258
  type: string;
20266
20259
  };
20267
- categorical: {
20268
- type: string;
20269
- };
20270
20260
  center: {
20271
20261
  items: {
20272
20262
  type: string;
@@ -25985,8 +25975,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
25985
25975
  colorLegendTitle: {
25986
25976
  type: string;
25987
25977
  };
25988
- categorical: {
25978
+ scaleType: {
25989
25979
  type: string;
25980
+ enum: string[];
25990
25981
  };
25991
25982
  scale: {
25992
25983
  type: string;
@@ -29144,9 +29135,6 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
29144
29135
  bottomMargin: {
29145
29136
  type: string;
29146
29137
  };
29147
- categorical: {
29148
- type: string;
29149
- };
29150
29138
  center: {
29151
29139
  items: {
29152
29140
  type: string;
@@ -30433,9 +30421,6 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
30433
30421
  bottomMargin: {
30434
30422
  type: string;
30435
30423
  };
30436
- categorical: {
30437
- type: string;
30438
- };
30439
30424
  center: {
30440
30425
  items: {
30441
30426
  type: string;
@@ -31700,9 +31685,6 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
31700
31685
  bottomMargin: {
31701
31686
  type: string;
31702
31687
  };
31703
- categorical: {
31704
- type: string;
31705
- };
31706
31688
  center: {
31707
31689
  items: {
31708
31690
  type: string;
@@ -37218,8 +37200,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
37218
37200
  colorLegendTitle: {
37219
37201
  type: string;
37220
37202
  };
37221
- categorical: {
37203
+ scaleType: {
37222
37204
  type: string;
37205
+ enum: string[];
37223
37206
  };
37224
37207
  scale: {
37225
37208
  type: string;
@@ -40413,9 +40396,6 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
40413
40396
  bottomMargin: {
40414
40397
  type: string;
40415
40398
  };
40416
- categorical: {
40417
- type: string;
40418
- };
40419
40399
  center: {
40420
40400
  items: {
40421
40401
  type: string;
@@ -41702,9 +41682,6 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
41702
41682
  bottomMargin: {
41703
41683
  type: string;
41704
41684
  };
41705
- categorical: {
41706
- type: string;
41707
- };
41708
41685
  center: {
41709
41686
  items: {
41710
41687
  type: string;
@@ -42969,9 +42946,6 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
42969
42946
  bottomMargin: {
42970
42947
  type: string;
42971
42948
  };
42972
- categorical: {
42973
- type: string;
42974
- };
42975
42949
  center: {
42976
42950
  items: {
42977
42951
  type: string;
@@ -48550,8 +48524,9 @@ export declare function getSettingsSchema(graph: GraphType | 'allGraphs'): {
48550
48524
  colorLegendTitle: {
48551
48525
  type: string;
48552
48526
  };
48553
- categorical: {
48527
+ scaleType: {
48554
48528
  type: string;
48529
+ enum: string[];
48555
48530
  };
48556
48531
  scale: {
48557
48532
  type: string;
@@ -55703,8 +55678,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
55703
55678
  colorLegendTitle: {
55704
55679
  type: string;
55705
55680
  };
55706
- categorical: {
55681
+ scaleType: {
55707
55682
  type: string;
55683
+ enum: string[];
55708
55684
  };
55709
55685
  scale: {
55710
55686
  type: string;
@@ -62919,8 +62895,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
62919
62895
  colorLegendTitle: {
62920
62896
  type: string;
62921
62897
  };
62922
- categorical: {
62898
+ scaleType: {
62923
62899
  type: string;
62900
+ enum: string[];
62924
62901
  };
62925
62902
  scale: {
62926
62903
  type: string;
@@ -66053,9 +66030,6 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
66053
66030
  bottomMargin: {
66054
66031
  type: string;
66055
66032
  };
66056
- categorical: {
66057
- type: string;
66058
- };
66059
66033
  center: {
66060
66034
  items: {
66061
66035
  type: string;
@@ -67342,9 +67316,6 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
67342
67316
  bottomMargin: {
67343
67317
  type: string;
67344
67318
  };
67345
- categorical: {
67346
- type: string;
67347
- };
67348
67319
  center: {
67349
67320
  items: {
67350
67321
  type: string;
@@ -68609,9 +68580,6 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
68609
68580
  bottomMargin: {
68610
68581
  type: string;
68611
68582
  };
68612
- categorical: {
68613
- type: string;
68614
- };
68615
68583
  center: {
68616
68584
  items: {
68617
68585
  type: string;
@@ -74169,8 +74137,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
74169
74137
  colorLegendTitle: {
74170
74138
  type: string;
74171
74139
  };
74172
- categorical: {
74140
+ scaleType: {
74173
74141
  type: string;
74142
+ enum: string[];
74174
74143
  };
74175
74144
  scale: {
74176
74145
  type: string;
@@ -77345,9 +77314,6 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
77345
77314
  bottomMargin: {
77346
77315
  type: string;
77347
77316
  };
77348
- categorical: {
77349
- type: string;
77350
- };
77351
77317
  center: {
77352
77318
  items: {
77353
77319
  type: string;
@@ -78634,9 +78600,6 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
78634
78600
  bottomMargin: {
78635
78601
  type: string;
78636
78602
  };
78637
- categorical: {
78638
- type: string;
78639
- };
78640
78603
  center: {
78641
78604
  items: {
78642
78605
  type: string;
@@ -79901,9 +79864,6 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
79901
79864
  bottomMargin: {
79902
79865
  type: string;
79903
79866
  };
79904
- categorical: {
79905
- type: string;
79906
- };
79907
79867
  center: {
79908
79868
  items: {
79909
79869
  type: string;
@@ -81098,7 +81058,6 @@ declare interface GraphSettingsDataType {
81098
81058
  highlightedIds?: string[];
81099
81059
  mapProperty?: string;
81100
81060
  showAntarctica?: boolean;
81101
- categorical?: boolean;
81102
81061
  mapStyles?: [string, string];
81103
81062
  center?: [number, number];
81104
81063
  zoomLevel?: number;
@@ -82133,6 +82092,8 @@ declare interface Props_14 {
82133
82092
  zoomTranslateExtend?: [[number, number], [number, number]];
82134
82093
  /** Countries or regions to be highlighted */
82135
82094
  highlightedIds?: string[];
82095
+ /** Scale for the colors */
82096
+ scaleType?: Exclude<ScaleDataType, 'linear'>;
82136
82097
  /** Toggles if the color scaling is categorical or not */
82137
82098
  categorical?: boolean;
82138
82099
  /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */
@@ -84494,6 +84455,8 @@ declare interface Props_47 {
84494
84455
  zoomTranslateExtend?: [[number, number], [number, number]];
84495
84456
  /** Countries or regions to be highlighted */
84496
84457
  highlightedIds?: string[];
84458
+ /** Scale for the colors */
84459
+ scaleType?: Exclude<ScaleDataType, 'linear'>;
84497
84460
  /** Toggles if the color scaling is categorical or not */
84498
84461
  categorical?: boolean;
84499
84462
  /** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */