File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/chart/src/components/BarChart/components Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -244,6 +244,8 @@ export const BarChartVertical = () => {
244
244
)
245
245
// End Confidence Interval Variables
246
246
247
+ const BAR_LABEL_PADDING = 10
248
+
247
249
return (
248
250
< Group key = { `${ barGroup . index } --${ index } ` } >
249
251
< Group key = { `bar-sub-group-${ barGroup . index } -${ barGroup . x0 } -${ barY } --${ index } ` } >
@@ -325,7 +327,7 @@ export const BarChartVertical = () => {
325
327
display = { displayBar ? 'block' : 'none' }
326
328
opacity = { transparentBar ? 0.5 : 1 }
327
329
x = { hasConfidenceInterval ? barX + barWidth : barX + barWidth / 2 }
328
- y = { barY - 5 }
330
+ y = { barY - BAR_LABEL_PADDING }
329
331
fill = { labelColor }
330
332
textAnchor = 'middle'
331
333
>
@@ -335,7 +337,7 @@ export const BarChartVertical = () => {
335
337
display = { displayBar ? 'block' : 'none' }
336
338
opacity = { transparentBar ? 0.5 : 1 }
337
339
x = { barX + barWidth / 2 }
338
- y = { barY - 5 }
340
+ y = { barY - BAR_LABEL_PADDING }
339
341
fill = { labelColor }
340
342
textAnchor = 'middle'
341
343
fontSize = { config . isLollipopChart ? null : barWidth / 2 }
You can’t perform that action at this time.
0 commit comments