Skip to content

Commit

Permalink
feat: 🧐 pad linegraph to prevent occlusion
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWarrenUK committed Dec 12, 2024
1 parent e24cb8b commit 2127020
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/app/insights/components/LineGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ export default function LineGraph({
}
})();

const yMax = Math.max(
...dopamineValues,
...serotoninValues,
...adrenalineValues
);

const yMin = Math.min(
...dopamineValues,
...serotoninValues,
...adrenalineValues
);

return (
<>
<div className="bg-twd-graph-background mt-10 w-11/12 m-auto rounded-lg">
Expand Down

0 comments on commit 2127020

Please sign in to comment.