Skip to content

Commit fac84bf

Browse files
wirew0rmRalphSteinhagen
authored andcommitted
LimitedIndexedTreeDataSet: fix yErrors
Fixes a small typo bug that would initialize tze yErrors with the yValues instead of the supplied yValues. Thanks to @zanzica for finding and repoting this.
1 parent ed86318 commit fac84bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chartfx-dataset/src/main/java/io/fair_acc/dataset/spi/LimitedIndexedTreeDataSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ public LimitedIndexedTreeDataSet set(final double[] xValues, final double[] yVal
447447
final double x = xValues[i];
448448
final double y = yValues[i];
449449
final double dx = xErrors[i];
450-
final double dy = yValues[i];
450+
final double dy = yErrors[i];
451451
getAxisDescription(DIM_X).add(x - dx);
452452
getAxisDescription(DIM_X).add(x + dx);
453453
getAxisDescription(DIM_Y).add(y - dy);

0 commit comments

Comments
 (0)