Skip to content

Commit

Permalink
time (seconds)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 23, 2024
1 parent 1bea247 commit f3af6b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/UsageGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContai

const UsageGraph = ({ data }) => {
const parsedData = Object.entries(data).map(([time, mem]) => ({
time: parseInt(time),
time: parseInt(time.split(' ')[0]),
mem: parseInt((mem as string).split(' ')[0])
}));

Expand All @@ -14,7 +14,7 @@ const UsageGraph = ({ data }) => {
<CartesianGrid strokeDasharray="3 3" />
<XAxis
dataKey="time"
label={{ value: 'Time', position: 'insideBottomRight', offset: -10 }}
label={{ value: 'Time (Seconds)', position: 'insideBottomRight', offset: -10 }}
tick={{ fontSize: 12 }}
interval={'preserveStartEnd'}
/>
Expand Down

0 comments on commit f3af6b4

Please sign in to comment.