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 = {
|
||||
type: 'PIE',
|
||||
type: 'pie',
|
||||
data: data,
|
||||
options: {
|
||||
plugins: {
|
||||
|
|
|
@ -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: {
|
||||
|
|
Reference in a new issue