diff --git a/packages/core/src/components/essentials/threshold.ts b/packages/core/src/components/essentials/threshold.ts index 0e175a794a..a977317a63 100644 --- a/packages/core/src/components/essentials/threshold.ts +++ b/packages/core/src/components/essentials/threshold.ts @@ -90,7 +90,7 @@ export class Threshold extends Component { orientation ); - if (orientation === CartesianOrientations.VERTICAL) { + if (axisPosition === AxisPositions.TOP || axisPosition === AxisPositions.BOTTOM) { const position = getXValue(value) + (isScaleTypeLabels ? scale.step() / 2 : 0); // Position the threshold on the x scale value