Skip to content

Commit c8328d5

Browse files
committed
disable chart labels in StatsBoxGrid
1 parent f6a10bb commit c8328d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/StatsBoxGrid/GridItem.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ export const GridItem = ({ metric }: GridItemProps) => {
117117
title: {
118118
display: false, // hide titles
119119
},
120+
// force disabling chart labels because when the user do an internal
121+
// navigation, labels are displayed incorrectly (probably a bug in
122+
// chart.js or the react wrapper)
123+
datalabels: {
124+
display: false,
125+
},
120126
},
121127
// chart labels config
122128
scales: {

0 commit comments

Comments
 (0)