import { formatDateLabel, formatNumberLabel, getDeviationValues } from "@arcgis/core/widgets/smartMapping/support/utils.js";const { formatDateLabel, formatNumberLabel, getDeviationValues } = await $arcgis.import("@arcgis/core/widgets/smartMapping/support/utils.js");- Since
- ArcGIS Maps SDK for JavaScript 4.12
Various utils for tying Smart Mapping renderers to the Smart Mapping slider widgets.
Functions
| Name | Return Type | Object |
|---|---|---|
| | ||
| | ||
number[] | |
formatDateLabel
Function
- Since
- ArcGIS Maps SDK for JavaScript 4.14
Formats a UNIX timestamp to a basic date string. This function is only intended for convenience in formatting thumb values in slider widgets and does not include additional formatting options.
- Signature
-
formatDateLabel (value: number): string
formatNumberLabel
Function
- Since
- ArcGIS Maps SDK for JavaScript 4.19
Formats a numeric value for display as a label based on the current locale.
- Signature
-
formatNumberLabel (value: number): string
getDeviationValues
Function
Computes and returns standard deviation values based on the given average and standard deviation.
- Signature
-
getDeviationValues (standardDeviation: number | null | undefined, average: number | null | undefined, count: number): number[]
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| standardDeviation | The standard deviation from the given | | |
| average | The average of the dataset from which to compute standard deviation values. | | |
| count | The number of standard deviations from the mean to compute. | |
- Returns
- number[]
Returns the standard deviation values from the given average.