File tree 1 file changed +5
-8
lines changed
site/src/pages/TemplatePage/TemplateSummaryPage
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export const DAUChart: FC<DAUChartProps> = ({
71
71
defaults . font . family = theme . typography . fontFamily as string
72
72
defaults . color = theme . palette . text . secondary
73
73
74
- const options = {
74
+ const options : ChartOptions < "line" > = {
75
75
responsive : true ,
76
76
plugins : {
77
77
legend : {
@@ -95,7 +95,7 @@ export const DAUChart: FC<DAUChartProps> = ({
95
95
} ,
96
96
} ,
97
97
aspectRatio : 10 / 1 ,
98
- } as ChartOptions
98
+ }
99
99
100
100
return (
101
101
< >
@@ -119,16 +119,13 @@ export const DAUChart: FC<DAUChartProps> = ({
119
119
{
120
120
label : "Daily Active Users" ,
121
121
data : data ,
122
- lineTension : 1 / 4 ,
122
+ tension : 1 / 4 ,
123
123
backgroundColor : theme . palette . secondary . dark ,
124
124
borderColor : theme . palette . secondary . dark ,
125
125
} ,
126
- // There are type bugs in chart.js that force us to use any.
127
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
128
- ] as any ,
126
+ ] ,
129
127
} }
130
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
131
- options = { options as any }
128
+ options = { options }
132
129
height = { 400 }
133
130
/>
134
131
</ WorkspaceSection >
You can’t perform that action at this time.
0 commit comments