1
0
Fork 0

Hide datalabels on radar chart and lowecase pie chart type

This commit is contained in:
Neshura 2023-06-02 09:44:34 +02:00
parent 7c3ba29316
commit d159239ccb
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 5 additions and 2 deletions

View file

@ -54,7 +54,7 @@ export const PopChart = () => {
const config = { const config = {
type: 'PIE', type: 'pie',
data: data, data: data,
options: { options: {
plugins: { plugins: {

View file

@ -97,7 +97,10 @@ export const RadarChart = (props: { weighted: boolean }) => {
callbacks: { callbacks: {
label: (ctx: any) => (`${ctx.dataset.label}: ${ctx.dataset.data[ctx.dataIndex]} ${props.weighted ? "Points" : "Picks"}`) label: (ctx: any) => (`${ctx.dataset.label}: ${ctx.dataset.data[ctx.dataIndex]} ${props.weighted ? "Points" : "Picks"}`)
} }
} },
datalabels: {
display: false,
},
}, },
legend: { display: true }, legend: { display: true },
elements: { elements: {