Skip to content

Commit

Permalink
divide percentage by 100
Browse files Browse the repository at this point in the history
  • Loading branch information
aiim-mi committed Apr 4, 2016
1 parent adc113b commit a57df55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/de/linearbits/subframe/graph/Series2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Series2D(CSVFile file,
}

/**
* Creates a series by selecting rows and combining some values (x = x1 - x2)
* Creates a series by selecting rows and combining some values (x = (x1 - x2) / 100)
*
* @param file
* @param selector
Expand All @@ -82,7 +82,7 @@ public Series2D(CSVFile file,
if (selector.isSelected(line)) {
String x1 = csvline.get(x1Field.category, x1Field.measure);
String x2 = csvline.get(x2Field.category, x2Field.measure);
Double x = Double.parseDouble(x1)- Double.parseDouble(x2);
Double x = (Double.parseDouble(x1)- Double.parseDouble(x2)) / 100d;
String y = csvline.get(yField.category, yField.measure);
if (!Double.isInfinite(Double.parseDouble(y)))
data.add(new Point2D(x.toString(), y));
Expand Down

0 comments on commit a57df55

Please sign in to comment.