@undp/data-viz 0.0.53 → 0.0.55

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.
@@ -77092,7 +77065,7 @@ export declare function GroupedBarGraph(props: GroupedBarChartProps): JSX_2.Elem
77092
77065
 
77093
77066
  declare interface GroupedBarGraphDataType {
77094
77067
  label: string | number;
77095
- size: (number | undefined | null)[];
77068
+ size: (number | null)[];
77096
77069
  data?: object;
77097
77070
  }
77098
77071
 
@@ -77194,7 +77167,7 @@ export declare function MultiLineChart(props: Props_9): JSX_2.Element;
77194
77167
 
77195
77168
  declare interface MultiLineChartDataType {
77196
77169
  date: number | string;
77197
- y: (number | undefined | null)[];
77170
+ y: (number | null)[];
77198
77171
  data?: object;
77199
77172
  }
77200
77173