Types
import type { HistogramState, BarCreatedFunction, DataLineCreatedFunction, DataLineInfos } from "@arcgis/core/widgets/Histogram/types.js";Type definitions
BarCreatedFunction
Type definition
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Function used to style or attach custom interaction to histogram bars. This function should be set to the Histogram.barCreatedFunction property. It fires for each bar when it is created.
DataLineCreatedFunction
Type definition
- Since
- ArcGIS Maps SDK for JavaScript 5.0
Function used to style Histogram.dataLines. This function should be set to the Histogram.dataLineCreatedFunction property. It fires when each data line is created.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| lineElement | The SVG element representing the data line rendered on the histogram. | | |
| labelElement | SVGElement | null | undefined | The SVG element representing the label rendered on the histogram for the associated line element. | |
| index | The index of the data line. | |
- Returns
- void
DataLineInfos
Type definition
- Since
- ArcGIS Maps SDK for JavaScript 5.0
value
Property
- Type
- number
- Since
- ArcGIS Maps SDK for JavaScript 5.0
The value on the data axis of the histogram where a line will be rendered.