1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-02 20:28:38 -04:00

Basic Report UI complete!

This commit is contained in:
2017-06-17 10:28:50 -04:00
parent 5dff27e7f7
commit 9844785b8d
10 changed files with 331 additions and 75 deletions

View File

@ -135,12 +135,12 @@ class StackedBarChart extends React.Component {
if (value == 0)
continue;
if (value > 0) {
rectHeight = y(value) - y(0);
var rectHeight = y(value) - y(0);
positiveSum[j] += rectHeight;
rectY = height - y(0) - positiveSum[j];
var rectY = height - y(0) - positiveSum[j];
} else {
rectHeight = y(0) - y(value);
rectY = height - y(0) + negativeSum[j];
var rectHeight = y(0) - y(value);
var rectY = height - y(0) + negativeSum[j];
negativeSum[j] += rectHeight;
}