Chore: line chart adjustments

This commit is contained in:
csrapr 2021-02-10 17:35:15 +00:00 committed by Josh Harvey
parent fca38a5636
commit d3cd5f08f1
2 changed files with 56 additions and 7 deletions

View file

@ -157,8 +157,6 @@ const SystemPerformance = () => {
const percentChange = getPercentChange()
console.log(percentChange)
const percentageClasses = {
[classes.percentDown]: percentChange < 0,
[classes.percentUp]: percentChange > 0,
@ -216,7 +214,12 @@ const SystemPerformance = () => {
{`${percentChange}%`}
</div>
</div>
<LineChart timeFrame={selectedRange} data={transactionsToShow} />
<LineChart
timeFrame={selectedRange}
data={transactionsToShow}
previousTimeData={transactionsLastTimePeriod}
previousProfit={getProfit(transactionsLastTimePeriod)}
/>
</Grid>
<Grid item xs={4}>
<Grid container>