From d159239ccb8368f7fe79c77be6d784ed25179dad Mon Sep 17 00:00:00 2001 From: Neshura Date: Fri, 2 Jun 2023 09:44:34 +0200 Subject: [PATCH] Hide datalabels on radar chart and lowecase pie chart type --- components/charts/pops.tsx | 2 +- components/charts/radar.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/components/charts/pops.tsx b/components/charts/pops.tsx index 2491841..28cdc6c 100644 --- a/components/charts/pops.tsx +++ b/components/charts/pops.tsx @@ -54,7 +54,7 @@ export const PopChart = () => { const config = { - type: 'PIE', + type: 'pie', data: data, options: { plugins: { diff --git a/components/charts/radar.tsx b/components/charts/radar.tsx index 43704e8..5603b58 100644 --- a/components/charts/radar.tsx +++ b/components/charts/radar.tsx @@ -97,7 +97,10 @@ export const RadarChart = (props: { weighted: boolean }) => { callbacks: { label: (ctx: any) => (`${ctx.dataset.label}: ${ctx.dataset.data[ctx.dataIndex]} ${props.weighted ? "Points" : "Picks"}`) } - } + }, + datalabels: { + display: false, + }, }, legend: { display: true }, elements: {