Skip to content

Commit

Permalink
fix chart
Browse files Browse the repository at this point in the history
  • Loading branch information
naueramant committed Jul 27, 2024
1 parent efa6174 commit f1fe192
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/views/Game/components/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const Chart: FunctionComponent = () => {
d.data.push(...Array(maxLength - d.data.length).fill(null));
});

console.log(data);

return data;
}, [playerMetrics, settings.themeMode]);

Expand Down Expand Up @@ -91,12 +93,18 @@ const Chart: FunctionComponent = () => {
},
},
xaxis: {
min: 0,
max: game.numberOfRounds,
title: {
text: "Round",
},
min: 1,
max: game.numberOfRounds + 1,
labels: {
style: {
colors: theme.palette.text.primary,
},
formatter: (val: string) => {
return `${parseInt(val) - 1}`;
},
},
axisBorder: {
show: false,
Expand Down

0 comments on commit f1fe192

Please sign in to comment.