@undp/data-viz 1.2.1 → 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 +20 -1
- package/dist/index.js +17895 -17725
- 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 */
|
|
@@ -5270,6 +5277,8 @@ declare interface Props_16 {
|
|
|
5270
5277
|
showColorScale?: boolean;
|
|
5271
5278
|
/** Property in the property object in mapData geoJson object is used to match to the id in the data object */
|
|
5272
5279
|
mapProperty?: string;
|
|
5280
|
+
/** Countries or regions to be highlighted */
|
|
5281
|
+
highlightedIds?: string[];
|
|
5273
5282
|
/** Enable data download option as a csv */
|
|
5274
5283
|
dataDownload?: boolean;
|
|
5275
5284
|
/** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
|
|
@@ -5831,6 +5840,8 @@ declare interface Props_22 {
|
|
|
5831
5840
|
highlightedDataPoints?: (string | number)[];
|
|
5832
5841
|
/** Defines the opacity of the non-highlighted data */
|
|
5833
5842
|
dimmedOpacity?: number;
|
|
5843
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
5844
|
+
naLabel?: string;
|
|
5834
5845
|
/** Title for the bar axis */
|
|
5835
5846
|
barAxisTitle?: string;
|
|
5836
5847
|
/** Sorting order for data. This is overwritten by labelOrder prop. */
|
|
@@ -6326,6 +6337,8 @@ declare interface Props_29 {
|
|
|
6326
6337
|
columnData: DataTableColumnDataType[];
|
|
6327
6338
|
/** Specifies the number of decimal places to display in the value. */
|
|
6328
6339
|
precision?: number;
|
|
6340
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
6341
|
+
naLabel?: string;
|
|
6329
6342
|
/** Reset selection on double-click. Only applicable when used in a dashboard context with filters. */
|
|
6330
6343
|
resetSelectionOnDoubleClick?: boolean;
|
|
6331
6344
|
/** Callback for mouse click event */
|
|
@@ -6654,6 +6667,8 @@ declare interface Props_32 {
|
|
|
6654
6667
|
barAxisTitle?: string;
|
|
6655
6668
|
/** Title for the line axis */
|
|
6656
6669
|
lineAxisTitle?: string;
|
|
6670
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
6671
|
+
naLabel?: string;
|
|
6657
6672
|
/** Toggles if the graph animates in when loaded. */
|
|
6658
6673
|
animate?: boolean | AnimateDataType;
|
|
6659
6674
|
/** Specifies the number of decimal places to display in the value. */
|
|
@@ -6751,6 +6766,8 @@ declare interface Props_33 {
|
|
|
6751
6766
|
leftBarTitle?: string;
|
|
6752
6767
|
/** Title for the right bars */
|
|
6753
6768
|
rightBarTitle?: string;
|
|
6769
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
6770
|
+
naLabel?: string;
|
|
6754
6771
|
/** Toggles if the graph animates in when loaded. */
|
|
6755
6772
|
animate?: boolean | AnimateDataType;
|
|
6756
6773
|
/** Specifies the number of decimal places to display in the value. */
|
|
@@ -8156,6 +8173,8 @@ declare interface StackedBarChartProps {
|
|
|
8156
8173
|
showColorScale?: boolean;
|
|
8157
8174
|
/** Title for the bar axis */
|
|
8158
8175
|
barAxisTitle?: string;
|
|
8176
|
+
/** Defines how “NA” values should be displayed/labelled in the graph */
|
|
8177
|
+
naLabel?: string;
|
|
8159
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. */
|
|
8160
8179
|
sortParameter?: number | 'total';
|
|
8161
8180
|
/** Toggles if data points which have all the values as undefined or null are filtered out. */
|