2 Commits

Author SHA1 Message Date
832f4eebe5 fix rank format on player graph
All checks were successful
deploy / deploy (push) Successful in 56s
2023-11-05 13:42:54 +00:00
3967ea76e0 make grid lines more visible on graphs 2023-11-05 13:40:51 +00:00
3 changed files with 19 additions and 3 deletions

View File

@ -43,11 +43,19 @@ export const options: any = {
maxTicksLimit: 8, maxTicksLimit: 8,
stepSize: 1, stepSize: 1,
}, },
grid: {
// gray grid lines
color: "#252525",
},
}, },
x: { x: {
ticks: { ticks: {
autoSkip: true, autoSkip: true,
}, },
grid: {
// gray grid lines
color: "#252525",
},
}, },
}, },
elements: { elements: {

View File

@ -41,12 +41,20 @@ export const options: any = {
maxTicksLimit: 8, maxTicksLimit: 8,
stepSize: 1, stepSize: 1,
}, },
grid: {
// gray grid lines
color: "#252525",
},
reverse: true, reverse: true,
}, },
x: { x: {
ticks: { ticks: {
autoSkip: true, autoSkip: true,
}, },
grid: {
// gray grid lines
color: "#252525",
},
}, },
}, },
elements: { elements: {
@ -69,7 +77,7 @@ export const options: any = {
label(context: any) { label(context: any) {
switch (context.dataset.label) { switch (context.dataset.label) {
case "Rank": { case "Rank": {
return `Rank #${formatNumber(context.parsed.y.toFixed(0))}`; return `Rank #${formatNumber(Number(context.parsed.y))}`;
} }
} }
}, },

View File

@ -91,10 +91,10 @@ export default function Score({
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent> <TooltipContent>
<div> <>
<p className="font-bold">Difficulty</p> <p className="font-bold">Difficulty</p>
<p>{diffName}</p> <p>{diffName}</p>
</div> </>
</TooltipContent> </TooltipContent>
</Tooltip> </Tooltip>
) : ( ) : (