Skip to content

ThresholdLine

ThresholdLine is an visual chart component, useful to indicate an important value on a given domain. For example, combustion point, store closing time, etc...

Threshold Demo
Prop ControlsSHOW

Props

nametypedefaultrequireddescription
domainNumericDomainN/A🗹value should be inside the domain in order to see anything
scalerLinearScalerN/A🗹scaling function for dataspace to screenspace
valuenumberN/A🗹data-space value for this threshold
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

Released under the MIT License.