@undp/data-viz 0.0.55 → 0.0.57

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
@@ -76900,7 +76900,7 @@ declare interface GroupedBarChartProps {
76900
76900
  minHeight?: number;
76901
76901
  /** Relative height scaling factor. This overwrites the height props */
76902
76902
  relativeHeight?: number;
76903
- /** Padding around the graph */
76903
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
76904
76904
  padding?: string;
76905
76905
  /** Left margin of the graph */
76906
76906
  leftMargin?: number;
@@ -76924,6 +76924,8 @@ declare interface GroupedBarChartProps {
76924
76924
  minValue?: number;
76925
76925
  /** Truncate labels by specified length */
76926
76926
  truncateBy?: number;
76927
+ /** Toggles if data points which have all the values as undefined or null are filtered out. */
76928
+ filterNA?: boolean;
76927
76929
  /** Reference values for comparison */
76928
76930
  refValues?: ReferenceDataType[];
76929
76931
  /** Number of ticks on the axis */
@@ -76997,7 +76999,7 @@ declare interface GroupedBarChartProps_2 {
76997
76999
  minHeight?: number;
76998
77000
  /** Relative height scaling factor. This overwrites the height props */
76999
77001
  relativeHeight?: number;
77000
- /** Padding around the graph */
77002
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77001
77003
  padding?: string;
77002
77004
  /** Left margin of the graph */
77003
77005
  leftMargin?: number;
@@ -77245,7 +77247,7 @@ declare interface Props {
77245
77247
  minHeight?: number;
77246
77248
  /** Relative height scaling factor. This overwrites the height props */
77247
77249
  relativeHeight?: number;
77248
- /** Padding around the graph */
77250
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77249
77251
  padding?: string;
77250
77252
  /** Left margin of the graph */
77251
77253
  leftMargin?: number;
@@ -77354,7 +77356,7 @@ declare interface Props_10 {
77354
77356
  minHeight?: number;
77355
77357
  /** Relative height scaling factor. This overwrites the height props */
77356
77358
  relativeHeight?: number;
77357
- /** Padding around the graph */
77359
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77358
77360
  padding?: string;
77359
77361
  /** Left margin of the graph */
77360
77362
  leftMargin?: number;
@@ -77449,7 +77451,7 @@ declare interface Props_11 {
77449
77451
  minHeight?: number;
77450
77452
  /** Relative height scaling factor. This overwrites the height props */
77451
77453
  relativeHeight?: number;
77452
- /** Padding around the graph */
77454
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77453
77455
  padding?: string;
77454
77456
  /** Left margin of the graph */
77455
77457
  leftMargin?: number;
@@ -77524,7 +77526,7 @@ declare interface Props_12 {
77524
77526
  minHeight?: number;
77525
77527
  /** Relative height scaling factor. This overwrites the height props */
77526
77528
  relativeHeight?: number;
77527
- /** Padding around the graph */
77529
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77528
77530
  padding?: string;
77529
77531
  /** Map data as an object in geoJson format */
77530
77532
  mapData?: any;
@@ -77609,7 +77611,7 @@ declare interface Props_13 {
77609
77611
  minHeight?: number;
77610
77612
  /** Relative height scaling factor. This overwrites the height props */
77611
77613
  relativeHeight?: number;
77612
- /** Padding around the graph */
77614
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77613
77615
  padding?: string;
77614
77616
  /** Map data as an object in geoJson format */
77615
77617
  mapData?: any;
@@ -77696,7 +77698,7 @@ declare interface Props_14 {
77696
77698
  minHeight?: number;
77697
77699
  /** Relative height scaling factor. This overwrites the height props */
77698
77700
  relativeHeight?: number;
77699
- /** Padding around the graph */
77701
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77700
77702
  padding?: string;
77701
77703
  /** Maximum radius of the circle */
77702
77704
  radius?: number;
@@ -77773,7 +77775,7 @@ declare interface Props_15 {
77773
77775
  minHeight?: number;
77774
77776
  /** Relative height scaling factor. This overwrites the height props */
77775
77777
  relativeHeight?: number;
77776
- /** Padding around the graph */
77778
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77777
77779
  padding?: string;
77778
77780
  /** URL for mapStyle JSON. If the type is string, otherwise it creates and dropdown and provide end user to select the map style they would like to */
77779
77781
  mapStyle: string | {
@@ -77823,7 +77825,7 @@ declare interface Props_16 {
77823
77825
  minHeight?: number;
77824
77826
  /** Relative height scaling factor. This overwrites the height props */
77825
77827
  relativeHeight?: number;
77826
- /** Padding around the graph */
77828
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77827
77829
  padding?: string;
77828
77830
  /** URLs for mapStyles JSON user wants to compare */
77829
77831
  mapStyles: [string, string];
@@ -77864,7 +77866,7 @@ declare interface Props_17 {
77864
77866
  minHeight?: number;
77865
77867
  /** Relative height scaling factor. This overwrites the height props */
77866
77868
  relativeHeight?: number;
77867
- /** Padding around the graph */
77869
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77868
77870
  padding?: string;
77869
77871
  /** URL for mapStyle JSON */
77870
77872
  mapStyle: string;
@@ -77922,7 +77924,7 @@ declare interface Props_18 {
77922
77924
  minHeight?: number;
77923
77925
  /** Relative height scaling factor. This overwrites the height props */
77924
77926
  relativeHeight?: number;
77925
- /** Padding around the graph */
77927
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77926
77928
  padding?: string;
77927
77929
  /** Left margin of the graph */
77928
77930
  leftMargin?: number;
@@ -78037,7 +78039,7 @@ declare interface Props_19 {
78037
78039
  minHeight?: number;
78038
78040
  /** Relative height scaling factor. This overwrites the height props */
78039
78041
  relativeHeight?: number;
78040
- /** Padding around the graph */
78042
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78041
78043
  padding?: string;
78042
78044
  /** Left margin of the graph */
78043
78045
  leftMargin?: number;
@@ -78120,7 +78122,7 @@ declare interface Props_2 {
78120
78122
  minHeight?: number;
78121
78123
  /** Relative height scaling factor. This overwrites the height props */
78122
78124
  relativeHeight?: number;
78123
- /** Padding around the graph */
78125
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78124
78126
  padding?: string;
78125
78127
  /** Left margin of the graph */
78126
78128
  leftMargin?: number;
@@ -78203,7 +78205,7 @@ declare interface Props_20 {
78203
78205
  minHeight?: number;
78204
78206
  /** Relative height scaling factor. This overwrites the height props */
78205
78207
  relativeHeight?: number;
78206
- /** Padding around the graph */
78208
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78207
78209
  padding?: string;
78208
78210
  /** Left margin of the graph */
78209
78211
  leftMargin?: number;
@@ -78272,7 +78274,7 @@ declare interface Props_21 {
78272
78274
  backgroundColor?: string | boolean;
78273
78275
  /** Font size of the main text */
78274
78276
  headingFontSize?: string;
78275
- /** Padding around the graph */
78277
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78276
78278
  padding?: string;
78277
78279
  /** Toggle the fill color of the main text. */
78278
78280
  textBackground?: boolean;
@@ -78317,7 +78319,7 @@ declare interface Props_22 {
78317
78319
  backgroundColor?: string | boolean;
78318
78320
  /** Font size of the main text */
78319
78321
  headingFontSize?: string;
78320
- /** Padding around the graph */
78322
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78321
78323
  padding?: string;
78322
78324
  /** Toggle the fill color of the main text. */
78323
78325
  textBackground?: boolean;
@@ -78380,7 +78382,7 @@ declare interface Props_23 {
78380
78382
  minHeight?: number;
78381
78383
  /** Relative height scaling factor. This overwrites the height props */
78382
78384
  relativeHeight?: number;
78383
- /** Padding around the graph */
78385
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78384
78386
  padding?: string;
78385
78387
  /** Left margin of the graph */
78386
78388
  leftMargin?: number;
@@ -78458,7 +78460,7 @@ declare interface Props_24 {
78458
78460
  minHeight?: number;
78459
78461
  /** Relative height scaling factor. This overwrites the height props */
78460
78462
  relativeHeight?: number;
78461
- /** Padding around the graph */
78463
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78462
78464
  padding?: string;
78463
78465
  /** Size of the visualization */
78464
78466
  size?: number;
@@ -78517,7 +78519,7 @@ declare interface Props_25 {
78517
78519
  minHeight?: number;
78518
78520
  /** Relative height scaling factor. This overwrites the height props */
78519
78521
  relativeHeight?: number;
78520
- /** Padding around the graph */
78522
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78521
78523
  padding?: string;
78522
78524
  /** Left margin of the graph */
78523
78525
  leftMargin?: number;
@@ -78595,7 +78597,7 @@ declare interface Props_26 {
78595
78597
  width?: number;
78596
78598
  /** Height of the graph */
78597
78599
  height?: number;
78598
- /** Padding around the graph */
78600
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78599
78601
  padding?: string;
78600
78602
  /** Column settings for each column shown in the table. */
78601
78603
  columnData: DataTableColumnDataType[];
@@ -78636,7 +78638,7 @@ declare interface Props_27 {
78636
78638
  width?: number;
78637
78639
  /** Height of the graph */
78638
78640
  height?: number;
78639
- /** Padding around the graph */
78641
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78640
78642
  padding?: string;
78641
78643
  /** Html for each card based on handlebars template. */
78642
78644
  cardTemplate: string;
@@ -78713,7 +78715,7 @@ declare interface Props_28 {
78713
78715
  minHeight?: number;
78714
78716
  /** Relative height scaling factor. This overwrites the height props */
78715
78717
  relativeHeight?: number;
78716
- /** Padding around the graph */
78718
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78717
78719
  padding?: string;
78718
78720
  /** Left margin of the graph */
78719
78721
  leftMargin?: number;
@@ -78800,7 +78802,7 @@ declare interface Props_29 {
78800
78802
  minHeight?: number;
78801
78803
  /** Relative height scaling factor. This overwrites the height props */
78802
78804
  relativeHeight?: number;
78803
- /** Padding around the graph */
78805
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78804
78806
  padding?: string;
78805
78807
  /** Left margin of the graph */
78806
78808
  leftMargin?: number;
@@ -78889,7 +78891,7 @@ declare interface Props_3 {
78889
78891
  minHeight?: number;
78890
78892
  /** Relative height scaling factor. This overwrites the height props */
78891
78893
  relativeHeight?: number;
78892
- /** Padding around the graph */
78894
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78893
78895
  padding?: string;
78894
78896
  /** Radius of the donut chart */
78895
78897
  radius?: number;
@@ -78972,7 +78974,7 @@ declare interface Props_30 {
78972
78974
  minHeight?: number;
78973
78975
  /** Relative height scaling factor. This overwrites the height props */
78974
78976
  relativeHeight?: number;
78975
- /** Padding around the graph */
78977
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78976
78978
  padding?: string;
78977
78979
  /** Left margin of the graph */
78978
78980
  leftMargin?: number;
@@ -79063,7 +79065,7 @@ declare interface Props_31 {
79063
79065
  minHeight?: number;
79064
79066
  /** Relative height scaling factor. This overwrites the height props */
79065
79067
  relativeHeight?: number;
79066
- /** Padding around the graph */
79068
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79067
79069
  padding?: string;
79068
79070
  /** Left margin of the graph */
79069
79071
  leftMargin?: number;
@@ -79152,7 +79154,7 @@ declare interface Props_32 {
79152
79154
  minHeight?: number;
79153
79155
  /** Relative height scaling factor. This overwrites the height props */
79154
79156
  relativeHeight?: number;
79155
- /** Padding around the graph */
79157
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79156
79158
  padding?: string;
79157
79159
  /** Left margin of the graph */
79158
79160
  leftMargin?: number;
@@ -79351,7 +79353,7 @@ declare interface Props_4 {
79351
79353
  minHeight?: number;
79352
79354
  /** Relative height scaling factor. This overwrites the height props */
79353
79355
  relativeHeight?: number;
79354
- /** Padding around the graph */
79356
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79355
79357
  padding?: string;
79356
79358
  /** Left margin of the graph */
79357
79359
  leftMargin?: number;
@@ -79401,6 +79403,8 @@ declare interface Props_4 {
79401
79403
  axisTitle?: string;
79402
79404
  /** Sorting order for data. If this is a number then data is sorted by value at that index x array in the data props. If this is diff then data is sorted by the difference of the last and first element in the x array in the data props. This is overwritten by labelOrder prop */
79403
79405
  sortParameter?: number | 'diff';
79406
+ /** Toggles if data points which have all the values as undefined or null are filtered out. */
79407
+ filterNA?: boolean;
79404
79408
  /** Enable graph download option as png */
79405
79409
  graphDownload?: boolean;
79406
79410
  /** Enable data download option as a csv */
@@ -79464,7 +79468,7 @@ declare interface Props_41 {
79464
79468
  minHeight?: number;
79465
79469
  /** Relative height scaling factor. This overwrites the height props */
79466
79470
  relativeHeight?: number;
79467
- /** Padding around the graph */
79471
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79468
79472
  padding?: string;
79469
79473
  /** Left margin of the graph */
79470
79474
  leftMargin?: number;
@@ -79571,7 +79575,7 @@ declare interface Props_42 {
79571
79575
  minHeight?: number;
79572
79576
  /** Relative height scaling factor. This overwrites the height props */
79573
79577
  relativeHeight?: number;
79574
- /** Padding around the graph */
79578
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79575
79579
  padding?: string;
79576
79580
  /** Left margin of the graph */
79577
79581
  leftMargin?: number;
@@ -79674,7 +79678,7 @@ declare interface Props_43 {
79674
79678
  minHeight?: number;
79675
79679
  /** Relative height scaling factor. This overwrites the height props */
79676
79680
  relativeHeight?: number;
79677
- /** Padding around the graph */
79681
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79678
79682
  padding?: string;
79679
79683
  /** Left margin of the graph */
79680
79684
  leftMargin?: number;
@@ -79786,7 +79790,7 @@ declare interface Props_44 {
79786
79790
  minHeight?: number;
79787
79791
  /** Relative height scaling factor. This overwrites the height props */
79788
79792
  relativeHeight?: number;
79789
- /** Padding around the graph */
79793
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79790
79794
  padding?: string;
79791
79795
  /** Map data as an object in geoJson format */
79792
79796
  mapData?: any;
@@ -79877,7 +79881,7 @@ declare interface Props_45 {
79877
79881
  minHeight?: number;
79878
79882
  /** Relative height scaling factor. This overwrites the height props */
79879
79883
  relativeHeight?: number;
79880
- /** Padding around the graph */
79884
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79881
79885
  padding?: string;
79882
79886
  /** Map data as an object in geoJson format */
79883
79887
  mapData?: any;
@@ -79970,7 +79974,7 @@ declare interface Props_46 {
79970
79974
  minHeight?: number;
79971
79975
  /** Relative height scaling factor. This overwrites the height props */
79972
79976
  relativeHeight?: number;
79973
- /** Padding around the graph */
79977
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79974
79978
  padding?: string;
79975
79979
  /** Maximum radius of the circle */
79976
79980
  radius?: number;
@@ -80061,7 +80065,7 @@ declare interface Props_47 {
80061
80065
  minHeight?: number;
80062
80066
  /** Relative height scaling factor. This overwrites the height props */
80063
80067
  relativeHeight?: number;
80064
- /** Padding around the graph */
80068
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80065
80069
  padding?: string;
80066
80070
  /** Left margin of the graph */
80067
80071
  leftMargin?: number;
@@ -80203,7 +80207,7 @@ declare interface Props_5 {
80203
80207
  minHeight?: number;
80204
80208
  /** Relative height scaling factor. This overwrites the height props */
80205
80209
  relativeHeight?: number;
80206
- /** Padding around the graph */
80210
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80207
80211
  padding?: string;
80208
80212
  /** Left margin of the graph */
80209
80213
  leftMargin?: number;
@@ -80393,7 +80397,7 @@ declare interface Props_6 {
80393
80397
  minHeight?: number;
80394
80398
  /** Relative height scaling factor. This overwrites the height props */
80395
80399
  relativeHeight?: number;
80396
- /** Padding around the graph */
80400
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80397
80401
  padding?: string;
80398
80402
  /** Left margin of the graph */
80399
80403
  leftMargin?: number;
@@ -80503,7 +80507,7 @@ declare interface Props_7 {
80503
80507
  minHeight?: number;
80504
80508
  /** Relative height scaling factor. This overwrites the height props */
80505
80509
  relativeHeight?: number;
80506
- /** Padding around the graph */
80510
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80507
80511
  padding?: string;
80508
80512
  /** Left margin of the graph */
80509
80513
  leftMargin?: number;
@@ -80606,7 +80610,7 @@ declare interface Props_8 {
80606
80610
  minHeight?: number;
80607
80611
  /** Relative height scaling factor. This overwrites the height props */
80608
80612
  relativeHeight?: number;
80609
- /** Padding around the graph */
80613
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80610
80614
  padding?: string;
80611
80615
  /** Left margin of the graph */
80612
80616
  leftMargin?: number;
@@ -80705,7 +80709,7 @@ declare interface Props_9 {
80705
80709
  minHeight?: number;
80706
80710
  /** Relative height scaling factor. This overwrites the height props */
80707
80711
  relativeHeight?: number;
80708
- /** Padding around the graph */
80712
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80709
80713
  padding?: string;
80710
80714
  /** Left margin of the graph */
80711
80715
  leftMargin?: number;
@@ -80904,7 +80908,7 @@ declare interface StackedBarChartProps {
80904
80908
  minHeight?: number;
80905
80909
  /** Relative height scaling factor. This overwrites the height props */
80906
80910
  relativeHeight?: number;
80907
- /** Padding around the graph */
80911
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80908
80912
  padding?: string;
80909
80913
  /** Left margin of the graph */
80910
80914
  leftMargin?: number;
@@ -80946,6 +80950,8 @@ declare interface StackedBarChartProps {
80946
80950
  barAxisTitle?: string;
80947
80951
  /** Parameter to sort the data. If a number is provided, it refers to the index of the size array to determine which value to sort by. If set to total, it sorts by the sum of all the values. */
80948
80952
  sortParameter?: number | 'total';
80953
+ /** Toggles if data points which have all the values as undefined or null are filtered out. */
80954
+ filterNA?: boolean;
80949
80955
  /** Enable graph download option as png */
80950
80956
  graphDownload?: boolean;
80951
80957
  /** Enable data download option as a csv */
@@ -81005,7 +81011,7 @@ declare interface StackedBarChartProps_2 {
81005
81011
  minHeight?: number;
81006
81012
  /** Relative height scaling factor. This overwrites the height props */
81007
81013
  relativeHeight?: number;
81008
- /** Padding around the graph */
81014
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
81009
81015
  padding?: string;
81010
81016
  /** Left margin of the graph */
81011
81017
  leftMargin?: number;