Skip to content

Commit

Permalink
Completed changes required by Matiss
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazypkr1099 committed Sep 18, 2023
1 parent 56282ae commit 11b6a53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 2 additions & 5 deletions packages/desktop-client/src/components/reports/NetWorth.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,8 @@ export default function NetWorth() {
start={start}
end={end}
graphData={data.graphData}
domainMinMax={{
y: [
data.lowestNetWorth * 0.99,
data.highestNetWorth * 1.01,
],
domain={{
y: [data.lowestNetWorth * 0.99, data.highestNetWorth * 1.01],
}}
/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ import Tooltip from '../Tooltip';

import { Area } from './common';

type domainProp = [number, number];

type NetWorthGraphProps = {
style?: CSSProperties;
graphData;
compact: boolean;
domainMinMax;
domain: domainProp;
};
function NetWorthGraph({
style,
graphData,
compact,
domainMinMax,
domain,
}: NetWorthGraphProps) {
const Chart = compact ? VictoryGroup : VictoryChart;

Expand All @@ -44,7 +46,7 @@ function NetWorthGraph({
scale={{ x: 'time', y: 'linear' }}
theme={chartTheme}
domainPadding={{ x: 0, y: 10 }}
domain={domainMinMax}
domain={domain}
width={width}
height={height}
containerComponent={
Expand Down

0 comments on commit 11b6a53

Please sign in to comment.