@undp/data-viz 0.0.53 → 0.0.56

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
@@ -636,13 +636,13 @@ declare interface DualAxisLineChartDataType {
636
636
  export declare function DumbbellChart(props: Props_4): JSX_2.Element;
637
637
 
638
638
  declare interface DumbbellChartDataType {
639
- x: (number | undefined | null)[];
639
+ x: (number | null)[];
640
640
  label: string;
641
641
  data?: object;
642
642
  }
643
643
 
644
644
  declare interface DumbbellChartWithDateDataType {
645
- x: (number | undefined | null)[];
645
+ x: (number | null)[];
646
646
  date: string | number;
647
647
  label: string;
648
648
  data?: object;
@@ -18621,28 +18621,6 @@ export declare function getDataSchema(graph: GraphType): {
18621
18621
  };
18622
18622
  required: string[];
18623
18623
  };
18624
- } | {
18625
- type: string;
18626
- items: {
18627
- type: string;
18628
- properties: {
18629
- x: {
18630
- type: string;
18631
- items: {
18632
- type: string;
18633
- };
18634
- };
18635
- label: {
18636
- oneOf: {
18637
- type: string;
18638
- }[];
18639
- };
18640
- data: {
18641
- type: string;
18642
- };
18643
- };
18644
- required: string[];
18645
- };
18646
18624
  } | {
18647
18625
  type: string;
18648
18626
  items: {
@@ -18661,11 +18639,6 @@ export declare function getDataSchema(graph: GraphType): {
18661
18639
  type: string;
18662
18640
  }[];
18663
18641
  };
18664
- date: {
18665
- oneOf: {
18666
- type: string;
18667
- }[];
18668
- };
18669
18642
  data: {
18670
18643
  type: string;
18671
18644
  };
@@ -41777,7 +41750,7 @@ export declare const getGriddedGraphJSONSchema: (columnList?: string[], graphTyp
41777
41750
  * @example
41778
41751
  * getJenks([1, 2, 3, 10, 20, 30], 3); // e.g., [3, 10]
41779
41752
  */
41780
- export declare function getJenks(data: number[], noOfSteps: number): number[];
41753
+ export declare function getJenks(data: (number | null | undefined)[], noOfSteps: number): number[];
41781
41754
 
41782
41755
  /**
41783
41756
  * Returns the value at the given percentile from a numeric dataset.
@@ -76951,6 +76924,8 @@ declare interface GroupedBarChartProps {
76951
76924
  minValue?: number;
76952
76925
  /** Truncate labels by specified length */
76953
76926
  truncateBy?: number;
76927
+ /** Toggles if data points which have all the values as undefined or null are filtered out. */
76928
+ filterNA?: boolean;
76954
76929
  /** Reference values for comparison */
76955
76930
  refValues?: ReferenceDataType[];
76956
76931
  /** Number of ticks on the axis */
@@ -77092,7 +77067,7 @@ export declare function GroupedBarGraph(props: GroupedBarChartProps): JSX_2.Elem
77092
77067
 
77093
77068
  declare interface GroupedBarGraphDataType {
77094
77069
  label: string | number;
77095
- size: (number | undefined | null)[];
77070
+ size: (number | null)[];
77096
77071
  data?: object;
77097
77072
  }
77098
77073
 
@@ -77194,7 +77169,7 @@ export declare function MultiLineChart(props: Props_9): JSX_2.Element;
77194
77169
 
77195
77170
  declare interface MultiLineChartDataType {
77196
77171
  date: number | string;
77197
- y: (number | undefined | null)[];
77172
+ y: (number | null)[];
77198
77173
  data?: object;
77199
77174
  }
77200
77175
 
@@ -79428,6 +79403,8 @@ declare interface Props_4 {
79428
79403
  axisTitle?: string;
79429
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 */
79430
79405
  sortParameter?: number | 'diff';
79406
+ /** Toggles if data points which have all the values as undefined or null are filtered out. */
79407
+ filterNA?: boolean;
79431
79408
  /** Enable graph download option as png */
79432
79409
  graphDownload?: boolean;
79433
79410
  /** Enable data download option as a csv */
@@ -80973,6 +80950,8 @@ declare interface StackedBarChartProps {
80973
80950
  barAxisTitle?: string;
80974
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. */
80975
80952
  sortParameter?: number | 'total';
80953
+ /** Toggles if data points which have all the values as undefined or null are filtered out. */
80954
+ filterNA?: boolean;
80976
80955
  /** Enable graph download option as png */
80977
80956
  graphDownload?: boolean;
80978
80957
  /** Enable data download option as a csv */