Skip to content

Commit

Permalink
fix(core, react, angular, vue, svelte): render both vertical and hori…
Browse files Browse the repository at this point in the history
…zontal thresholds (carbon-design-system#706)
  • Loading branch information
theiliad authored Jul 14, 2020
1 parent 2dd58fc commit 4767a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/essentials/threshold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4767a10

Please sign in to comment.