Compare commits
2 Commits
59c3b7a421
...
832f4eebe5
Author | SHA1 | Date | |
---|---|---|---|
832f4eebe5 | |||
3967ea76e0 |
@ -43,11 +43,19 @@ export const options: any = {
|
||||
maxTicksLimit: 8,
|
||||
stepSize: 1,
|
||||
},
|
||||
grid: {
|
||||
// gray grid lines
|
||||
color: "#252525",
|
||||
},
|
||||
},
|
||||
x: {
|
||||
ticks: {
|
||||
autoSkip: true,
|
||||
},
|
||||
grid: {
|
||||
// gray grid lines
|
||||
color: "#252525",
|
||||
},
|
||||
},
|
||||
},
|
||||
elements: {
|
||||
|
@ -41,12 +41,20 @@ export const options: any = {
|
||||
maxTicksLimit: 8,
|
||||
stepSize: 1,
|
||||
},
|
||||
grid: {
|
||||
// gray grid lines
|
||||
color: "#252525",
|
||||
},
|
||||
reverse: true,
|
||||
},
|
||||
x: {
|
||||
ticks: {
|
||||
autoSkip: true,
|
||||
},
|
||||
grid: {
|
||||
// gray grid lines
|
||||
color: "#252525",
|
||||
},
|
||||
},
|
||||
},
|
||||
elements: {
|
||||
@ -69,7 +77,7 @@ export const options: any = {
|
||||
label(context: any) {
|
||||
switch (context.dataset.label) {
|
||||
case "Rank": {
|
||||
return `Rank #${formatNumber(context.parsed.y.toFixed(0))}`;
|
||||
return `Rank #${formatNumber(Number(context.parsed.y))}`;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -91,10 +91,10 @@ export default function Score({
|
||||
</div>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent>
|
||||
<div>
|
||||
<>
|
||||
<p className="font-bold">Difficulty</p>
|
||||
<p>{diffName}</p>
|
||||
</div>
|
||||
</>
|
||||
</TooltipContent>
|
||||
</Tooltip>
|
||||
) : (
|
||||
|
Reference in New Issue
Block a user