ThresholdLine
constructor(thresholdValue: Float, thresholdLabel: CharSequence = decimalFormat.format(thresholdValue), lineComponent: ShapeComponent = ShapeComponent(), minimumLineThicknessDp: Float = DefaultDimens.THRESHOLD_LINE_THICKNESS, labelComponent: TextComponent = textComponent(), labelHorizontalPosition: ThresholdLine.LabelHorizontalPosition = LabelHorizontalPosition.Start, labelVerticalPosition: ThresholdLine.LabelVerticalPosition = LabelVerticalPosition.Top, labelRotationDegrees: Float = 0.0f)
An alternative constructor that accepts a single y-axis value as opposed to a range.
constructor(thresholdRange: ClosedFloatingPointRange<Float>, thresholdLabel: CharSequence = RANGE_FORMAT.format(
decimalFormat.format(thresholdRange.start),
decimalFormat.format(thresholdRange.endInclusive),
), lineComponent: ShapeComponent = ShapeComponent(), minimumLineThicknessDp: Float = DefaultDimens.THRESHOLD_LINE_THICKNESS, labelComponent: TextComponent = textComponent(), labelHorizontalPosition: ThresholdLine.LabelHorizontalPosition = LabelHorizontalPosition.Start, labelVerticalPosition: ThresholdLine.LabelVerticalPosition = LabelVerticalPosition.Top, labelRotationDegrees: Float = 0.0f)