Skip to content

ThresholdArea

ThresholdArea is an visual chart component, useful to indicate an important range on a given domain. For example, business hours vs non, or some arbitrary known range prior to plotting.

Prop ControlsSHOW

Props

nametypedefaultrequireddescription
domainDomainN/A🗹min or max should be inside the domain in order to see anything
maxnumberN/A🗹maximum data-space value for this threshold
minnumberN/A🗹minimum data-space value for this threshold
scalerLinearScalerN/A🗹scaling function for dataspace to screenspace
colorstringnullOverrides this threshold's region color. Accepts HTML codes like "red" or "#F90"
isXbooleanfalsetrue if this is an x-axis threshold value
labelstringnullan optional label for this threshold
nearestPointNearestPointnullNOT USED
patternRotationnumber0angle in degrees to rotate the region's pattern
patternThicknessnumber1ratio of line:whitespace in the fill pattern

Slots

None

Released under the MIT License.