@undp/data-viz 1.2.2 → 1.2.3
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.cjs +23 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +18170 -18057
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4218,6 +4218,7 @@ declare interface GraphSettingsDataType {
|
|
|
4218
4218
|
atmosphereColor?: string;
|
|
4219
4219
|
lineAxisTitle?: string;
|
|
4220
4220
|
timeline?: TimelineDataType;
|
|
4221
|
+
naLabel?: string;
|
|
4221
4222
|
}
|
|
4222
4223
|
|
|
4223
4224
|
export declare function GraphTitle(props: Props_59): JSX.Element | null;
|
|
@@ -4311,6 +4312,8 @@ declare interface GroupedBarChartProps {
|
|
|
4311
4312
|
showColorScale?: boolean;
|
|
4312
4313
|
/** Title for the bar axis */
|
|
4313
4314
|
barAxisTitle?: string;
|
|
4315
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
4316
|
+
naLabel?: string;
|
|
4314
4317
|
/** Specifies the number of decimal places to display in the value. */
|
|
4315
4318
|
precision?: number;
|
|
4316
4319
|
/** Optional SVG <g> element or function that renders custom content behind or in front of the graph. */
|
|
@@ -4493,7 +4496,7 @@ declare interface MultiLineChartDataType {
|
|
|
4493
4496
|
* numberFormattingFunction(3.14159, '$'); // "$3.14"
|
|
4494
4497
|
* numberFormattingFunction(null); // "NA"
|
|
4495
4498
|
*/
|
|
4496
|
-
export declare function numberFormattingFunction(value: number | undefined | null, precision?: number, prefix?: string, suffix?: string): string;
|
|
4499
|
+
export declare function numberFormattingFunction(value: number | string | undefined | null, naLabel?: string, precision?: number, prefix?: string, suffix?: string): string;
|
|
4497
4500
|
|
|
4498
4501
|
/**
|
|
4499
4502
|
* Represents a parameter to be embedded in a URL.
|
|
@@ -4587,6 +4590,8 @@ declare interface Props {
|
|
|
4587
4590
|
showValues?: boolean;
|
|
4588
4591
|
/** Custom order for labels */
|
|
4589
4592
|
labelOrder?: string[];
|
|
4593
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
4594
|
+
naLabel?: string;
|
|
4590
4595
|
/** Toggle visibility of axis ticks */
|
|
4591
4596
|
showTicks?: boolean;
|
|
4592
4597
|
/** Toggle visibility of color scale. This is only applicable if the data props hae color parameter */
|
|
@@ -4710,6 +4715,8 @@ declare interface Props_10 {
|
|
|
4710
4715
|
showColorScale?: boolean;
|
|
4711
4716
|
/** Toggle visibility of NA color in the color scale. This is only applicable if the data props hae color parameter and showColorScale prop is true */
|
|
4712
4717
|
showNAColor?: boolean;
|
|
4718
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
4719
|
+
naLabel?: string;
|
|
4713
4720
|
/** Data points to highlight. Use the label value from data to highlight the data point */
|
|
4714
4721
|
highlightedLines?: (string | number)[];
|
|
4715
4722
|
/** Defines the opacity of the non-highlighted data */
|
|
@@ -5833,6 +5840,8 @@ declare interface Props_22 {
|
|
|
5833
5840
|
highlightedDataPoints?: (string | number)[];
|
|
5834
5841
|
/** Defines the opacity of the non-highlighted data */
|
|
5835
5842
|
dimmedOpacity?: number;
|
|
5843
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
5844
|
+
naLabel?: string;
|
|
5836
5845
|
/** Title for the bar axis */
|
|
5837
5846
|
barAxisTitle?: string;
|
|
5838
5847
|
/** Sorting order for data. This is overwritten by labelOrder prop. */
|
|
@@ -6328,6 +6337,8 @@ declare interface Props_29 {
|
|
|
6328
6337
|
columnData: DataTableColumnDataType[];
|
|
6329
6338
|
/** Specifies the number of decimal places to display in the value. */
|
|
6330
6339
|
precision?: number;
|
|
6340
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
6341
|
+
naLabel?: string;
|
|
6331
6342
|
/** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
|
|
6332
6343
|
resetSelectionOnDoubleClick?: boolean;
|
|
6333
6344
|
/** Callback for mouse click event */
|
|
@@ -6656,6 +6667,8 @@ declare interface Props_32 {
|
|
|
6656
6667
|
barAxisTitle?: string;
|
|
6657
6668
|
/** Title for the line axis */
|
|
6658
6669
|
lineAxisTitle?: string;
|
|
6670
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
6671
|
+
naLabel?: string;
|
|
6659
6672
|
/** Toggles if the graph animates in when loaded. */
|
|
6660
6673
|
animate?: boolean | AnimateDataType;
|
|
6661
6674
|
/** Specifies the number of decimal places to display in the value. */
|
|
@@ -6753,6 +6766,8 @@ declare interface Props_33 {
|
|
|
6753
6766
|
leftBarTitle?: string;
|
|
6754
6767
|
/** Title for the right bars */
|
|
6755
6768
|
rightBarTitle?: string;
|
|
6769
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
6770
|
+
naLabel?: string;
|
|
6756
6771
|
/** Toggles if the graph animates in when loaded. */
|
|
6757
6772
|
animate?: boolean | AnimateDataType;
|
|
6758
6773
|
/** Specifies the number of decimal places to display in the value. */
|
|
@@ -8158,6 +8173,8 @@ declare interface StackedBarChartProps {
|
|
|
8158
8173
|
showColorScale?: boolean;
|
|
8159
8174
|
/** Title for the bar axis */
|
|
8160
8175
|
barAxisTitle?: string;
|
|
8176
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
8177
|
+
naLabel?: string;
|
|
8161
8178
|
/** 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. */
|
|
8162
8179
|
sortParameter?: number | 'total';
|
|
8163
8180
|
/** Toggles if data points which have all the values as undefined or null are filtered out. */
|