diff --git a/frontend/components/tierlist/Chart.vue b/frontend/components/tierlist/Chart.vue index d2cbf08..6363564 100644 --- a/frontend/components/tierlist/Chart.vue +++ b/frontend/components/tierlist/Chart.vue @@ -68,6 +68,24 @@ const chartOptions = ref({ ticks: { callback: () => '' } + }, + y: { + title: { + display: true, + text: props.metric === 'winrate' ? 'Winrate (%)' : 'Pickrate (%)' + }, + ...(props.metric === 'winrate' + ? { + min: 40, + max: 60, + grid: { + color: (context: { tick: { value: number } }) => + context.tick.value === 50 ? '#666' : 'rgba(0, 0, 0, 0.1)', + lineWidth: (context: { tick: { value: number } }) => + context.tick.value === 50 ? 2 : 1 + } + } + : {}) } }, plugins: {