add a ":" to the chart tooltip to split name and value
All checks were successful
Deploy Website / deploy (push) Successful in 5m31s

This commit is contained in:
Lee 2024-10-15 04:11:48 +01:00
parent 9d38e095fe
commit 80c1c95014
2 changed files with 6 additions and 6 deletions

@ -30,7 +30,7 @@ const datasetConfig: DatasetConfig[] = [
return value.toFixed(1); return value.toFixed(1);
}, },
}, },
labelFormatter: (value: number) => `Average Ranked Accuracy ${value.toFixed(3)}%`, labelFormatter: (value: number) => `Average Ranked Accuracy: ${value.toFixed(3)}%`,
}, },
]; ];

@ -24,7 +24,7 @@ const datasetConfig: DatasetConfig[] = [
displayName: "Rank", displayName: "Rank",
position: "left", position: "left",
}, },
labelFormatter: (value: number) => `Rank #${formatNumberWithCommas(value)}`, labelFormatter: (value: number) => `Rank: #${formatNumberWithCommas(value)}`,
}, },
{ {
title: "Country Rank", title: "Country Rank",
@ -37,7 +37,7 @@ const datasetConfig: DatasetConfig[] = [
displayName: "Country Rank", displayName: "Country Rank",
position: "left", position: "left",
}, },
labelFormatter: (value: number) => `Country Rank #${formatNumberWithCommas(value)}`, labelFormatter: (value: number) => `Country Rank: #${formatNumberWithCommas(value)}`,
}, },
{ {
title: "PP", title: "PP",
@ -57,7 +57,7 @@ const datasetConfig: DatasetConfig[] = [
return value.toFixed(1); return value.toFixed(1);
}, },
}, },
labelFormatter: (value: number) => `PP ${formatNumberWithCommas(value)}pp`, labelFormatter: (value: number) => `PP: ${formatNumberWithCommas(value)}pp`,
}, },
{ {
title: "Ranked Scores", title: "Ranked Scores",
@ -71,7 +71,7 @@ const datasetConfig: DatasetConfig[] = [
position: "left", position: "left",
}, },
type: "bar", type: "bar",
labelFormatter: (value: number) => `Ranked Scores ${formatNumberWithCommas(value)}`, labelFormatter: (value: number) => `Ranked Scores: ${formatNumberWithCommas(value)}`,
}, },
{ {
title: "Unranked Scores", title: "Unranked Scores",
@ -85,7 +85,7 @@ const datasetConfig: DatasetConfig[] = [
position: "left", position: "left",
}, },
type: "bar", type: "bar",
labelFormatter: (value: number) => `Unranked Scores ${formatNumberWithCommas(value)}`, labelFormatter: (value: number) => `Unranked Scores: ${formatNumberWithCommas(value)}`,
}, },
]; ];