@undp/data-viz 0.0.56 → 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;
@@ -76999,7 +76999,7 @@ declare interface GroupedBarChartProps_2 {
76999
76999
  minHeight?: number;
77000
77000
  /** Relative height scaling factor. This overwrites the height props */
77001
77001
  relativeHeight?: number;
77002
- /** Padding around the graph */
77002
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77003
77003
  padding?: string;
77004
77004
  /** Left margin of the graph */
77005
77005
  leftMargin?: number;
@@ -77247,7 +77247,7 @@ declare interface Props {
77247
77247
  minHeight?: number;
77248
77248
  /** Relative height scaling factor. This overwrites the height props */
77249
77249
  relativeHeight?: number;
77250
- /** Padding around the graph */
77250
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77251
77251
  padding?: string;
77252
77252
  /** Left margin of the graph */
77253
77253
  leftMargin?: number;
@@ -77356,7 +77356,7 @@ declare interface Props_10 {
77356
77356
  minHeight?: number;
77357
77357
  /** Relative height scaling factor. This overwrites the height props */
77358
77358
  relativeHeight?: number;
77359
- /** Padding around the graph */
77359
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77360
77360
  padding?: string;
77361
77361
  /** Left margin of the graph */
77362
77362
  leftMargin?: number;
@@ -77451,7 +77451,7 @@ declare interface Props_11 {
77451
77451
  minHeight?: number;
77452
77452
  /** Relative height scaling factor. This overwrites the height props */
77453
77453
  relativeHeight?: number;
77454
- /** Padding around the graph */
77454
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77455
77455
  padding?: string;
77456
77456
  /** Left margin of the graph */
77457
77457
  leftMargin?: number;
@@ -77526,7 +77526,7 @@ declare interface Props_12 {
77526
77526
  minHeight?: number;
77527
77527
  /** Relative height scaling factor. This overwrites the height props */
77528
77528
  relativeHeight?: number;
77529
- /** Padding around the graph */
77529
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77530
77530
  padding?: string;
77531
77531
  /** Map data as an object in geoJson format */
77532
77532
  mapData?: any;
@@ -77611,7 +77611,7 @@ declare interface Props_13 {
77611
77611
  minHeight?: number;
77612
77612
  /** Relative height scaling factor. This overwrites the height props */
77613
77613
  relativeHeight?: number;
77614
- /** Padding around the graph */
77614
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77615
77615
  padding?: string;
77616
77616
  /** Map data as an object in geoJson format */
77617
77617
  mapData?: any;
@@ -77698,7 +77698,7 @@ declare interface Props_14 {
77698
77698
  minHeight?: number;
77699
77699
  /** Relative height scaling factor. This overwrites the height props */
77700
77700
  relativeHeight?: number;
77701
- /** Padding around the graph */
77701
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77702
77702
  padding?: string;
77703
77703
  /** Maximum radius of the circle */
77704
77704
  radius?: number;
@@ -77775,7 +77775,7 @@ declare interface Props_15 {
77775
77775
  minHeight?: number;
77776
77776
  /** Relative height scaling factor. This overwrites the height props */
77777
77777
  relativeHeight?: number;
77778
- /** Padding around the graph */
77778
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77779
77779
  padding?: string;
77780
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 */
77781
77781
  mapStyle: string | {
@@ -77825,7 +77825,7 @@ declare interface Props_16 {
77825
77825
  minHeight?: number;
77826
77826
  /** Relative height scaling factor. This overwrites the height props */
77827
77827
  relativeHeight?: number;
77828
- /** Padding around the graph */
77828
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77829
77829
  padding?: string;
77830
77830
  /** URLs for mapStyles JSON user wants to compare */
77831
77831
  mapStyles: [string, string];
@@ -77866,7 +77866,7 @@ declare interface Props_17 {
77866
77866
  minHeight?: number;
77867
77867
  /** Relative height scaling factor. This overwrites the height props */
77868
77868
  relativeHeight?: number;
77869
- /** Padding around the graph */
77869
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77870
77870
  padding?: string;
77871
77871
  /** URL for mapStyle JSON */
77872
77872
  mapStyle: string;
@@ -77924,7 +77924,7 @@ declare interface Props_18 {
77924
77924
  minHeight?: number;
77925
77925
  /** Relative height scaling factor. This overwrites the height props */
77926
77926
  relativeHeight?: number;
77927
- /** Padding around the graph */
77927
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
77928
77928
  padding?: string;
77929
77929
  /** Left margin of the graph */
77930
77930
  leftMargin?: number;
@@ -78039,7 +78039,7 @@ declare interface Props_19 {
78039
78039
  minHeight?: number;
78040
78040
  /** Relative height scaling factor. This overwrites the height props */
78041
78041
  relativeHeight?: number;
78042
- /** Padding around the graph */
78042
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78043
78043
  padding?: string;
78044
78044
  /** Left margin of the graph */
78045
78045
  leftMargin?: number;
@@ -78122,7 +78122,7 @@ declare interface Props_2 {
78122
78122
  minHeight?: number;
78123
78123
  /** Relative height scaling factor. This overwrites the height props */
78124
78124
  relativeHeight?: number;
78125
- /** Padding around the graph */
78125
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78126
78126
  padding?: string;
78127
78127
  /** Left margin of the graph */
78128
78128
  leftMargin?: number;
@@ -78205,7 +78205,7 @@ declare interface Props_20 {
78205
78205
  minHeight?: number;
78206
78206
  /** Relative height scaling factor. This overwrites the height props */
78207
78207
  relativeHeight?: number;
78208
- /** Padding around the graph */
78208
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78209
78209
  padding?: string;
78210
78210
  /** Left margin of the graph */
78211
78211
  leftMargin?: number;
@@ -78274,7 +78274,7 @@ declare interface Props_21 {
78274
78274
  backgroundColor?: string | boolean;
78275
78275
  /** Font size of the main text */
78276
78276
  headingFontSize?: string;
78277
- /** Padding around the graph */
78277
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78278
78278
  padding?: string;
78279
78279
  /** Toggle the fill color of the main text. */
78280
78280
  textBackground?: boolean;
@@ -78319,7 +78319,7 @@ declare interface Props_22 {
78319
78319
  backgroundColor?: string | boolean;
78320
78320
  /** Font size of the main text */
78321
78321
  headingFontSize?: string;
78322
- /** Padding around the graph */
78322
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78323
78323
  padding?: string;
78324
78324
  /** Toggle the fill color of the main text. */
78325
78325
  textBackground?: boolean;
@@ -78382,7 +78382,7 @@ declare interface Props_23 {
78382
78382
  minHeight?: number;
78383
78383
  /** Relative height scaling factor. This overwrites the height props */
78384
78384
  relativeHeight?: number;
78385
- /** Padding around the graph */
78385
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78386
78386
  padding?: string;
78387
78387
  /** Left margin of the graph */
78388
78388
  leftMargin?: number;
@@ -78460,7 +78460,7 @@ declare interface Props_24 {
78460
78460
  minHeight?: number;
78461
78461
  /** Relative height scaling factor. This overwrites the height props */
78462
78462
  relativeHeight?: number;
78463
- /** Padding around the graph */
78463
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78464
78464
  padding?: string;
78465
78465
  /** Size of the visualization */
78466
78466
  size?: number;
@@ -78519,7 +78519,7 @@ declare interface Props_25 {
78519
78519
  minHeight?: number;
78520
78520
  /** Relative height scaling factor. This overwrites the height props */
78521
78521
  relativeHeight?: number;
78522
- /** Padding around the graph */
78522
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78523
78523
  padding?: string;
78524
78524
  /** Left margin of the graph */
78525
78525
  leftMargin?: number;
@@ -78597,7 +78597,7 @@ declare interface Props_26 {
78597
78597
  width?: number;
78598
78598
  /** Height of the graph */
78599
78599
  height?: number;
78600
- /** Padding around the graph */
78600
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78601
78601
  padding?: string;
78602
78602
  /** Column settings for each column shown in the table. */
78603
78603
  columnData: DataTableColumnDataType[];
@@ -78638,7 +78638,7 @@ declare interface Props_27 {
78638
78638
  width?: number;
78639
78639
  /** Height of the graph */
78640
78640
  height?: number;
78641
- /** Padding around the graph */
78641
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78642
78642
  padding?: string;
78643
78643
  /** Html for each card based on handlebars template. */
78644
78644
  cardTemplate: string;
@@ -78715,7 +78715,7 @@ declare interface Props_28 {
78715
78715
  minHeight?: number;
78716
78716
  /** Relative height scaling factor. This overwrites the height props */
78717
78717
  relativeHeight?: number;
78718
- /** Padding around the graph */
78718
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78719
78719
  padding?: string;
78720
78720
  /** Left margin of the graph */
78721
78721
  leftMargin?: number;
@@ -78802,7 +78802,7 @@ declare interface Props_29 {
78802
78802
  minHeight?: number;
78803
78803
  /** Relative height scaling factor. This overwrites the height props */
78804
78804
  relativeHeight?: number;
78805
- /** Padding around the graph */
78805
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78806
78806
  padding?: string;
78807
78807
  /** Left margin of the graph */
78808
78808
  leftMargin?: number;
@@ -78891,7 +78891,7 @@ declare interface Props_3 {
78891
78891
  minHeight?: number;
78892
78892
  /** Relative height scaling factor. This overwrites the height props */
78893
78893
  relativeHeight?: number;
78894
- /** Padding around the graph */
78894
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78895
78895
  padding?: string;
78896
78896
  /** Radius of the donut chart */
78897
78897
  radius?: number;
@@ -78974,7 +78974,7 @@ declare interface Props_30 {
78974
78974
  minHeight?: number;
78975
78975
  /** Relative height scaling factor. This overwrites the height props */
78976
78976
  relativeHeight?: number;
78977
- /** Padding around the graph */
78977
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
78978
78978
  padding?: string;
78979
78979
  /** Left margin of the graph */
78980
78980
  leftMargin?: number;
@@ -79065,7 +79065,7 @@ declare interface Props_31 {
79065
79065
  minHeight?: number;
79066
79066
  /** Relative height scaling factor. This overwrites the height props */
79067
79067
  relativeHeight?: number;
79068
- /** Padding around the graph */
79068
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79069
79069
  padding?: string;
79070
79070
  /** Left margin of the graph */
79071
79071
  leftMargin?: number;
@@ -79154,7 +79154,7 @@ declare interface Props_32 {
79154
79154
  minHeight?: number;
79155
79155
  /** Relative height scaling factor. This overwrites the height props */
79156
79156
  relativeHeight?: number;
79157
- /** Padding around the graph */
79157
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79158
79158
  padding?: string;
79159
79159
  /** Left margin of the graph */
79160
79160
  leftMargin?: number;
@@ -79353,7 +79353,7 @@ declare interface Props_4 {
79353
79353
  minHeight?: number;
79354
79354
  /** Relative height scaling factor. This overwrites the height props */
79355
79355
  relativeHeight?: number;
79356
- /** Padding around the graph */
79356
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79357
79357
  padding?: string;
79358
79358
  /** Left margin of the graph */
79359
79359
  leftMargin?: number;
@@ -79468,7 +79468,7 @@ declare interface Props_41 {
79468
79468
  minHeight?: number;
79469
79469
  /** Relative height scaling factor. This overwrites the height props */
79470
79470
  relativeHeight?: number;
79471
- /** Padding around the graph */
79471
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79472
79472
  padding?: string;
79473
79473
  /** Left margin of the graph */
79474
79474
  leftMargin?: number;
@@ -79575,7 +79575,7 @@ declare interface Props_42 {
79575
79575
  minHeight?: number;
79576
79576
  /** Relative height scaling factor. This overwrites the height props */
79577
79577
  relativeHeight?: number;
79578
- /** Padding around the graph */
79578
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79579
79579
  padding?: string;
79580
79580
  /** Left margin of the graph */
79581
79581
  leftMargin?: number;
@@ -79678,7 +79678,7 @@ declare interface Props_43 {
79678
79678
  minHeight?: number;
79679
79679
  /** Relative height scaling factor. This overwrites the height props */
79680
79680
  relativeHeight?: number;
79681
- /** Padding around the graph */
79681
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79682
79682
  padding?: string;
79683
79683
  /** Left margin of the graph */
79684
79684
  leftMargin?: number;
@@ -79790,7 +79790,7 @@ declare interface Props_44 {
79790
79790
  minHeight?: number;
79791
79791
  /** Relative height scaling factor. This overwrites the height props */
79792
79792
  relativeHeight?: number;
79793
- /** Padding around the graph */
79793
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79794
79794
  padding?: string;
79795
79795
  /** Map data as an object in geoJson format */
79796
79796
  mapData?: any;
@@ -79881,7 +79881,7 @@ declare interface Props_45 {
79881
79881
  minHeight?: number;
79882
79882
  /** Relative height scaling factor. This overwrites the height props */
79883
79883
  relativeHeight?: number;
79884
- /** Padding around the graph */
79884
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79885
79885
  padding?: string;
79886
79886
  /** Map data as an object in geoJson format */
79887
79887
  mapData?: any;
@@ -79974,7 +79974,7 @@ declare interface Props_46 {
79974
79974
  minHeight?: number;
79975
79975
  /** Relative height scaling factor. This overwrites the height props */
79976
79976
  relativeHeight?: number;
79977
- /** Padding around the graph */
79977
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
79978
79978
  padding?: string;
79979
79979
  /** Maximum radius of the circle */
79980
79980
  radius?: number;
@@ -80065,7 +80065,7 @@ declare interface Props_47 {
80065
80065
  minHeight?: number;
80066
80066
  /** Relative height scaling factor. This overwrites the height props */
80067
80067
  relativeHeight?: number;
80068
- /** Padding around the graph */
80068
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80069
80069
  padding?: string;
80070
80070
  /** Left margin of the graph */
80071
80071
  leftMargin?: number;
@@ -80207,7 +80207,7 @@ declare interface Props_5 {
80207
80207
  minHeight?: number;
80208
80208
  /** Relative height scaling factor. This overwrites the height props */
80209
80209
  relativeHeight?: number;
80210
- /** Padding around the graph */
80210
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80211
80211
  padding?: string;
80212
80212
  /** Left margin of the graph */
80213
80213
  leftMargin?: number;
@@ -80397,7 +80397,7 @@ declare interface Props_6 {
80397
80397
  minHeight?: number;
80398
80398
  /** Relative height scaling factor. This overwrites the height props */
80399
80399
  relativeHeight?: number;
80400
- /** Padding around the graph */
80400
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80401
80401
  padding?: string;
80402
80402
  /** Left margin of the graph */
80403
80403
  leftMargin?: number;
@@ -80507,7 +80507,7 @@ declare interface Props_7 {
80507
80507
  minHeight?: number;
80508
80508
  /** Relative height scaling factor. This overwrites the height props */
80509
80509
  relativeHeight?: number;
80510
- /** Padding around the graph */
80510
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80511
80511
  padding?: string;
80512
80512
  /** Left margin of the graph */
80513
80513
  leftMargin?: number;
@@ -80610,7 +80610,7 @@ declare interface Props_8 {
80610
80610
  minHeight?: number;
80611
80611
  /** Relative height scaling factor. This overwrites the height props */
80612
80612
  relativeHeight?: number;
80613
- /** Padding around the graph */
80613
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80614
80614
  padding?: string;
80615
80615
  /** Left margin of the graph */
80616
80616
  leftMargin?: number;
@@ -80709,7 +80709,7 @@ declare interface Props_9 {
80709
80709
  minHeight?: number;
80710
80710
  /** Relative height scaling factor. This overwrites the height props */
80711
80711
  relativeHeight?: number;
80712
- /** Padding around the graph */
80712
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80713
80713
  padding?: string;
80714
80714
  /** Left margin of the graph */
80715
80715
  leftMargin?: number;
@@ -80908,7 +80908,7 @@ declare interface StackedBarChartProps {
80908
80908
  minHeight?: number;
80909
80909
  /** Relative height scaling factor. This overwrites the height props */
80910
80910
  relativeHeight?: number;
80911
- /** Padding around the graph */
80911
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
80912
80912
  padding?: string;
80913
80913
  /** Left margin of the graph */
80914
80914
  leftMargin?: number;
@@ -81011,7 +81011,7 @@ declare interface StackedBarChartProps_2 {
81011
81011
  minHeight?: number;
81012
81012
  /** Relative height scaling factor. This overwrites the height props */
81013
81013
  relativeHeight?: number;
81014
- /** Padding around the graph */
81014
+ /** Padding around the graph. Defaults to 0 if no backgroundColor is mentioned else defaults to 1rem */
81015
81015
  padding?: string;
81016
81016
  /** Left margin of the graph */
81017
81017
  leftMargin?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/data-viz",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "browser": "./dist/index.umd.js",
package/readme.md CHANGED
@@ -1,6 +1,8 @@
1
- # Getting Started
1
+ # UNDP data viz library ![npm](https://img.shields.io/npm/v/@undp/data-viz)
2
2
 
3
- UNDP visualization library is dedicated to providing a good development experience for data visualization specialists. Before starting, it is recommended to learn React first, and correctly install and configure Node.js v18 or above.
3
+ ## Getting Started
4
+
5
+ UNDP data viz library is dedicated to providing a good development experience for data visualization specialists. Before starting, it is recommended to learn React first, and correctly install and configure Node.js v18 or above.
4
6
 
5
7
  We also assumes that you have intermediate knowledge about HTML, CSS, and JavaScript/TypeScript, and React. Starting out is straightforward.
6
8