@@ -29,6 +29,7 @@ type ChooseGraphProps = {
29
29
style ?: CSSProperties ;
30
30
showHiddenCategories ?: boolean ;
31
31
showOffBudget ?: boolean ;
32
+ showTooltip ?: boolean ;
32
33
intervalsCount : number ;
33
34
} ;
34
35
@@ -46,6 +47,7 @@ export function ChooseGraph({
46
47
style,
47
48
showHiddenCategories = false ,
48
49
showOffBudget = false ,
50
+ showTooltip = true ,
49
51
intervalsCount,
50
52
} : ChooseGraphProps ) {
51
53
const graphStyle = compact
@@ -102,6 +104,7 @@ export function ChooseGraph({
102
104
data = { data }
103
105
balanceTypeOp = { balanceTypeOp }
104
106
viewLabels = { viewLabels }
107
+ showTooltip = { showTooltip }
105
108
/>
106
109
) ;
107
110
}
@@ -117,11 +120,19 @@ export function ChooseGraph({
117
120
viewLabels = { viewLabels }
118
121
showHiddenCategories = { showHiddenCategories }
119
122
showOffBudget = { showOffBudget }
123
+ showTooltip = { showTooltip }
120
124
/>
121
125
) ;
122
126
}
123
127
if ( graphType === 'BarLineGraph' ) {
124
- return < BarLineGraph style = { graphStyle } compact = { compact } data = { data } /> ;
128
+ return (
129
+ < BarLineGraph
130
+ style = { graphStyle }
131
+ compact = { compact }
132
+ data = { data }
133
+ showTooltip = { showTooltip }
134
+ />
135
+ ) ;
125
136
}
126
137
if ( graphType === 'DonutGraph' ) {
127
138
return (
@@ -149,6 +160,7 @@ export function ChooseGraph({
149
160
balanceTypeOp = { balanceTypeOp }
150
161
showHiddenCategories = { showHiddenCategories }
151
162
showOffBudget = { showOffBudget }
163
+ showTooltip = { showTooltip }
152
164
interval = { interval }
153
165
/>
154
166
) ;
@@ -165,6 +177,7 @@ export function ChooseGraph({
165
177
groupBy = { groupBy }
166
178
showHiddenCategories = { showHiddenCategories }
167
179
showOffBudget = { showOffBudget }
180
+ showTooltip = { showTooltip }
168
181
interval = { interval }
169
182
/>
170
183
) ;
0 commit comments