Skip to content

Commit

Permalink
calcYValueSum should not be ABS (Fixes #604)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Dec 17, 2015
1 parent 9942aee commit 3e9c260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Charts/Classes/Data/ChartData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public class ChartData: NSObject

for (var i = 0; i < _dataSets.count; i++)
{
_yValueSum += fabs(_dataSets[i].yValueSum)
_yValueSum += _dataSets[i].yValueSum
}
}

Expand Down
2 changes: 1 addition & 1 deletion Charts/Classes/Data/ChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public class ChartDataSet: NSObject

for var i = 0; i < _yVals.count; i++
{
_yValueSum += fabs(_yVals[i].value)
_yValueSum += _yVals[i].value
}
}

Expand Down

0 comments on commit 3e9c260

Please sign in to comment.