Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit a1e638b

Browse files
committed
use abs for plus value, too
1 parent 03c08be commit a1e638b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ const ErrorBarsPlugin = {
215215
const errorBarLineWidth = errorBarLineWidths[ei % errorBarLineWidths.length];
216216
const errorBarWidth = errorBarWidths[ei % errorBarWidths.length];
217217

218-
const plusValue = options.absoluteValues ? errorBar.plus : (value + errorBar.plus);
218+
const plusValue = options.absoluteValues ? errorBar.plus : (value + Math.abs(errorBar.plus));
219219
const minusValue = options.absoluteValues ? errorBar.minus : (value - Math.abs(errorBar.minus));
220220

221221
const plus = vScale.getPixelForValue(plusValue);

0 commit comments

Comments
 (0)