Hide datalabels on radar chart and lowecase pie chart type
This commit is contained in:
parent
7c3ba29316
commit
d159239ccb
2 changed files with 5 additions and 2 deletions
|
@ -54,7 +54,7 @@ export const PopChart = () => {
|
||||||
|
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
type: 'PIE',
|
type: 'pie',
|
||||||
data: data,
|
data: data,
|
||||||
options: {
|
options: {
|
||||||
plugins: {
|
plugins: {
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Reference in a new issue