File tree 1 file changed +8
-4
lines changed
frontend/src/lib/components/charts
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ export const colors = [
24
24
export const tooltipProps = {
25
25
root : {
26
26
variant : 'none' ,
27
- class : 'text-small bg-neutral-200 border border-neutral-400 rounded-md shadow-lg'
28
- // motion: false,
27
+ class : 'text-small bg-neutral-200 border border-neutral-400 rounded-md shadow-lg' ,
28
+ motion : false
29
29
} ,
30
30
header : {
31
31
class : 'text-neutral-700 bg-neutral-300 px-3 py-1'
@@ -41,6 +41,10 @@ export const tooltipProps = {
41
41
}
42
42
} satisfies NonNullable < ComponentProps < typeof LineChart > [ 'props' ] > [ 'tooltip' ] ;
43
43
44
+ export const highlightProps = {
45
+ motion : false
46
+ } satisfies NonNullable < ComponentProps < typeof LineChart > [ 'props' ] > [ 'highlight' ] ;
47
+
44
48
export const barChartProps = {
45
49
props : {
46
50
tooltip : tooltipProps
@@ -54,8 +58,8 @@ export const lineChartProps = {
54
58
} ,
55
59
props : {
56
60
spline : { class : 'stroke-1' } ,
57
- tooltip : tooltipProps
58
- // highlight: { motion: false }
61
+ tooltip : tooltipProps ,
62
+ highlight : highlightProps
59
63
}
60
64
} satisfies NonNullable < ComponentProps < typeof LineChart > > ;
61
65
You can’t perform that action at this time.
0 commit comments