ZoomCharts Documentation

Version: 1.21.1 (2024-11-08)
Switch to Version 2.0 (BETA)

ZoomCharts.Configuration.BaseSettingsValueAxisThreshold

Methods

This type does not define any methods.

Properties

from: number

Specifies the bottom bound of the threshold area.

fromType: "constant" | "first" | "last" | "minimum" | "maximum" | "median" | "average" | "percentile"

How the from value should be determined

Valid values:
  • constant - Use the from constant given
  • first - Use the first value in range
  • last - Use the last value in range
  • minimum - Use the minimum value in the series
  • maximum - Use the maximum value in the series
  • median - Use the median value in the series
  • average - Use the average value in the series
  • percentile - Use a percentile value in the series
label: string
labelDecimals: number
labelDisplayUnits: string
labelHorizontalPadding: number
labelHorizontalPosition: "center" | "right" | "left"
labelType: "text" | "fromValue" | "toValue" | "textFromValue" | "textToValue"

Whether to use the line value as the label text

labelVerticalPadding: number
labelVerticalPosition: "center" | "above" | "under"
percentileFrom: number

Specifies a percentile to use when percentile is selected. Range 0 to 100, must be integer.

percentileTo: number

Specifies a percentile to use when percentile is selected. Range 0 to 100, must be integer.

position: "above" | "under"

Threshold placement in relation to series data.

Valid values:
  • above - denote threshold location over series data
  • under - denote threshold location under series data
seriesID: string

Which series to use for non-constant values

Describes the visual style for the threshold guidelines and area.

Properties
fillColor: string

Specifies the fill color for the threshold area. If multiple areas overlap, this should specify an rgba() color with transparency. If 'null' fill color will not be applied.

lineColor: string

Specifies the line color for the upper and lower bounds. If null, the lines will not be drawn.

lineDash: Array<number>

Array of line dash pattern to have a dashed line. The array contains length of dash followed by length of space in pixels. A sequence of multiple dash-space values is supported. In case you want to set a solid line, pass empty array: []

lineWidth: number

Specifies the width of the boundary lines.

to: number

Specifies the upper bound of the threshold area.

toType: "constant" | "first" | "last" | "minimum" | "maximum" | "median" | "average" | "percentile"

How the from value should be determined

Valid values:
  • constant - Use the from constant given
  • first - Use the first value in range
  • last - Use the last value in range
  • minimum - Use the minimum value in the series
  • maximum - Use the maximum value in the series
  • median - Use the median value in the series
  • average - Use the average value in the series
  • percentile - Use a percentile value in the series
valueFunction: (from: number, to: number, settings: BaseSettingsValueAxisThreshold) => { fromLabel: string; toLabel: string; }
Parameters
Return value
Data type: anonymous type
Properties
fromLabel: string
toLabel: string
X