@undp/data-viz 0.0.5 → 0.0.52

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
@@ -422,6 +422,7 @@ declare interface ConfigObject_3 {
422
422
  debugMode?: boolean;
423
423
  dataSelectionOptions?: DataSelectionDataType[];
424
424
  advancedDataSelectionOptions?: AdvancedDataSelectionDataType[];
425
+ highlightDataPointSettings?: HighlightDataPointSettingsDataType;
425
426
  readableHeader?: {
426
427
  value: string;
427
428
  label: string;
@@ -8809,6 +8810,9 @@ export declare const getDashboardJSONSchema: (columnList?: string[]) => {
8809
8810
  yPrefix: {
8810
8811
  type: string;
8811
8812
  };
8813
+ filterNA: {
8814
+ type: string;
8815
+ };
8812
8816
  uiMode: {
8813
8817
  type: string;
8814
8818
  enum: string[];
@@ -10079,6 +10083,9 @@ export declare const getDashboardJSONSchema: (columnList?: string[]) => {
10079
10083
  yPrefix: {
10080
10084
  type: string;
10081
10085
  };
10086
+ filterNA: {
10087
+ type: string;
10088
+ };
10082
10089
  uiMode: {
10083
10090
  type: string;
10084
10091
  enum: string[];
@@ -11327,6 +11334,9 @@ export declare const getDashboardJSONSchema: (columnList?: string[]) => {
11327
11334
  yPrefix: {
11328
11335
  type: string;
11329
11336
  };
11337
+ filterNA: {
11338
+ type: string;
11339
+ };
11330
11340
  uiMode: {
11331
11341
  type: string;
11332
11342
  enum: string[];
@@ -20157,6 +20167,9 @@ export declare const getDataSelectionSchema: (columnList?: string[]) => {
20157
20167
  yPrefix: {
20158
20168
  type: string;
20159
20169
  };
20170
+ filterNA: {
20171
+ type: string;
20172
+ };
20160
20173
  uiMode: {
20161
20174
  type: string;
20162
20175
  enum: string[];
@@ -28526,6 +28539,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
28526
28539
  yPrefix: {
28527
28540
  type: string;
28528
28541
  };
28542
+ filterNA: {
28543
+ type: string;
28544
+ };
28529
28545
  uiMode: {
28530
28546
  type: string;
28531
28547
  enum: string[];
@@ -29796,6 +29812,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
29796
29812
  yPrefix: {
29797
29813
  type: string;
29798
29814
  };
29815
+ filterNA: {
29816
+ type: string;
29817
+ };
29799
29818
  uiMode: {
29800
29819
  type: string;
29801
29820
  enum: string[];
@@ -31044,6 +31063,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
31044
31063
  yPrefix: {
31045
31064
  type: string;
31046
31065
  };
31066
+ filterNA: {
31067
+ type: string;
31068
+ };
31047
31069
  uiMode: {
31048
31070
  type: string;
31049
31071
  enum: string[];
@@ -39246,6 +39268,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
39246
39268
  yPrefix: {
39247
39269
  type: string;
39248
39270
  };
39271
+ filterNA: {
39272
+ type: string;
39273
+ };
39249
39274
  uiMode: {
39250
39275
  type: string;
39251
39276
  enum: string[];
@@ -40516,6 +40541,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
40516
40541
  yPrefix: {
40517
40542
  type: string;
40518
40543
  };
40544
+ filterNA: {
40545
+ type: string;
40546
+ };
40519
40547
  uiMode: {
40520
40548
  type: string;
40521
40549
  enum: string[];
@@ -41764,6 +41792,9 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
41764
41792
  yPrefix: {
41765
41793
  type: string;
41766
41794
  };
41795
+ filterNA: {
41796
+ type: string;
41797
+ };
41767
41798
  uiMode: {
41768
41799
  type: string;
41769
41800
  enum: string[];
@@ -55209,6 +55240,38 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
55209
55240
  classNames: {
55210
55241
  type: string;
55211
55242
  };
55243
+ highlightDataPointSettings: {
55244
+ type: string;
55245
+ properties: {
55246
+ column: {
55247
+ type: string;
55248
+ };
55249
+ label: {
55250
+ type: string;
55251
+ };
55252
+ defaultValues: {
55253
+ oneOf: {
55254
+ type: string;
55255
+ items: {
55256
+ type: string;
55257
+ };
55258
+ }[];
55259
+ };
55260
+ excludeValues: {
55261
+ type: string;
55262
+ items: {
55263
+ type: string;
55264
+ };
55265
+ };
55266
+ allowSelectAll: {
55267
+ type: string;
55268
+ };
55269
+ width: {
55270
+ type: string;
55271
+ };
55272
+ };
55273
+ required: string[];
55274
+ };
55212
55275
  styles: {
55213
55276
  type: string;
55214
55277
  };
@@ -63321,6 +63384,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
63321
63384
  yPrefix: {
63322
63385
  type: string;
63323
63386
  };
63387
+ filterNA: {
63388
+ type: string;
63389
+ };
63324
63390
  uiMode: {
63325
63391
  type: string;
63326
63392
  enum: string[];
@@ -64591,6 +64657,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
64591
64657
  yPrefix: {
64592
64658
  type: string;
64593
64659
  };
64660
+ filterNA: {
64661
+ type: string;
64662
+ };
64594
64663
  uiMode: {
64595
64664
  type: string;
64596
64665
  enum: string[];
@@ -65839,6 +65908,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
65839
65908
  yPrefix: {
65840
65909
  type: string;
65841
65910
  };
65911
+ filterNA: {
65912
+ type: string;
65913
+ };
65842
65914
  uiMode: {
65843
65915
  type: string;
65844
65916
  enum: string[];
@@ -65886,6 +65958,38 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
65886
65958
  classNames: {
65887
65959
  type: string;
65888
65960
  };
65961
+ highlightDataPointSettings: {
65962
+ type: string;
65963
+ properties: {
65964
+ column: {
65965
+ type: string;
65966
+ };
65967
+ label: {
65968
+ type: string;
65969
+ };
65970
+ defaultValues: {
65971
+ oneOf: {
65972
+ type: string;
65973
+ items: {
65974
+ type: string;
65975
+ };
65976
+ }[];
65977
+ };
65978
+ excludeValues: {
65979
+ type: string;
65980
+ items: {
65981
+ type: string;
65982
+ };
65983
+ };
65984
+ allowSelectAll: {
65985
+ type: string;
65986
+ };
65987
+ width: {
65988
+ type: string;
65989
+ };
65990
+ };
65991
+ required: string[];
65992
+ };
65889
65993
  styles: {
65890
65994
  type: string;
65891
65995
  };
@@ -74032,6 +74136,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
74032
74136
  yPrefix: {
74033
74137
  type: string;
74034
74138
  };
74139
+ filterNA: {
74140
+ type: string;
74141
+ };
74035
74142
  uiMode: {
74036
74143
  type: string;
74037
74144
  enum: string[];
@@ -75302,6 +75409,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
75302
75409
  yPrefix: {
75303
75410
  type: string;
75304
75411
  };
75412
+ filterNA: {
75413
+ type: string;
75414
+ };
75305
75415
  uiMode: {
75306
75416
  type: string;
75307
75417
  enum: string[];
@@ -76550,6 +76660,9 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
76550
76660
  yPrefix: {
76551
76661
  type: string;
76552
76662
  };
76663
+ filterNA: {
76664
+ type: string;
76665
+ };
76553
76666
  uiMode: {
76554
76667
  type: string;
76555
76668
  enum: string[];
@@ -76590,6 +76703,38 @@ export declare const getSingleGraphJSONSchema: (columnList?: string[], graphType
76590
76703
  type: string;
76591
76704
  enum: string[];
76592
76705
  };
76706
+ highlightDataPointSettings: {
76707
+ type: string;
76708
+ properties: {
76709
+ column: {
76710
+ type: string;
76711
+ };
76712
+ label: {
76713
+ type: string;
76714
+ };
76715
+ defaultValues: {
76716
+ oneOf: {
76717
+ type: string;
76718
+ items: {
76719
+ type: string;
76720
+ };
76721
+ }[];
76722
+ };
76723
+ excludeValues: {
76724
+ type: string;
76725
+ items: {
76726
+ type: string;
76727
+ };
76728
+ };
76729
+ allowSelectAll: {
76730
+ type: string;
76731
+ };
76732
+ width: {
76733
+ type: string;
76734
+ };
76735
+ };
76736
+ required: string[];
76737
+ };
76593
76738
  uiMode: {
76594
76739
  type: string;
76595
76740
  enum: string[];
@@ -76866,6 +77011,7 @@ declare interface GraphSettingsDataType {
76866
77011
  styles?: StyleObject;
76867
77012
  classNames?: ClassNameObject;
76868
77013
  mapProjection?: 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
77014
+ filterNA?: boolean;
76869
77015
  }
76870
77016
 
76871
77017
  export declare function GraphTitle(props: Props_61): JSX_2.Element;
@@ -77120,6 +77266,14 @@ declare interface HighlightAreaSettingsForScatterPlotDataType {
77120
77266
  strokeWidth?: number;
77121
77267
  }
77122
77268
 
77269
+ declare type HighlightDataPointSettingsDataType = {
77270
+ column: string;
77271
+ label?: string;
77272
+ defaultValues?: (string | number)[];
77273
+ excludeValues?: (string | number)[];
77274
+ width?: string;
77275
+ };
77276
+
77123
77277
  export declare function Histogram(props: Props_31): JSX_2.Element;
77124
77278
 
77125
77279
  declare interface HistogramDataType {
@@ -77302,8 +77456,10 @@ declare interface Props {
77302
77456
  highlightedDataPoints?: (string | number)[];
77303
77457
  /** Title for the bar axis */
77304
77458
  barAxisTitle?: string;
77305
- /** Sorting order for data. This is overwritten by labelOrder prop */
77459
+ /** Sorting order for data. This is overwritten by labelOrder prop. */
77306
77460
  sortData?: 'asc' | 'desc';
77461
+ /** Toggles if data point which are undefined or has value null are filtered out. */
77462
+ filterNA?: boolean;
77307
77463
  /** Enable graph download option as png */
77308
77464
  graphDownload?: boolean;
77309
77465
  /** Enable data download option as a csv */
@@ -79264,6 +79420,7 @@ declare interface Props_35 {
79264
79420
  }[];
79265
79421
  dataSettings?: DataSettingsDataType;
79266
79422
  filters?: FilterUiSettingsDataType[];
79423
+ highlightDataPointSettings?: HighlightDataPointSettingsDataType;
79267
79424
  noOfFiltersPerRow?: number;
79268
79425
  graphType: GraphType;
79269
79426
  dataTransform?: {