Skip to content

Commit 583f9ca

Browse files
committed
chore: Fix custom footer text in error bars dev page
1 parent 35cb589 commit 583f9ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/01-cartesian-chart/error-bars.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ function tooltipContent(settings: ThisPageSettings): CartesianChartProps.Tooltip
213213
items.some((item) => item.errorRanges.length > 0) ? (
214214
<Box fontSize="body-s">
215215
{settings.errorsGroupedInFooter
216-
? `Error range: ±${moneyFormatter(items[0].errorRanges[0].high - items[0].errorRanges[0].low)}`
216+
? `Error range: ±${moneyFormatter((items[0].errorRanges[0].high - items[0].errorRanges[0].low) / 2)}`
217217
: "*Error range"}
218218
</Box>
219219
) : null,

0 commit comments

Comments
 (0)