Skip to content

Commit 972ee49

Browse files
fix(Charts): apply dimension formatter to zooming tool (#663)
1 parent 7753cbf commit 972ee49

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

packages/charts/src/components/BarChart/BarChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ const BarChart: FC<BarChartProps> = forwardRef((props: BarChartProps, ref: Ref<H
273273
<Brush
274274
y={10}
275275
dataKey={primaryDimensionAccessor}
276+
tickFormatter={primaryDimension.formatter}
276277
stroke={ThemingParameters.sapObjectHeader_BorderColor}
277278
travellerWidth={10}
278279
height={20}

packages/charts/src/components/ColumnChart/ColumnChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ const ColumnChart: FC<ColumnChartProps> = forwardRef((props: ColumnChartProps, r
292292
<Brush
293293
y={10}
294294
dataKey={primaryDimensionAccessor}
295+
tickFormatter={primaryDimension.formatter}
295296
stroke={ThemingParameters.sapObjectHeader_BorderColor}
296297
travellerWidth={10}
297298
height={20}

packages/charts/src/components/ComposedChart/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ const ComposedChart: FC<ComposedChartProps> = forwardRef((props: ComposedChartPr
403403
<Brush
404404
y={10}
405405
dataKey={primaryDimensionAccessor}
406+
tickFormatter={primaryDimension.formatter}
406407
stroke={ThemingParameters.sapObjectHeader_BorderColor}
407408
travellerWidth={10}
408409
height={20}

packages/charts/src/components/LineChart/LineChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ const LineChart: FC<LineChartProps> = forwardRef((props: LineChartProps, ref: Re
269269
<Brush
270270
y={10}
271271
dataKey={primaryDimensionAccessor}
272+
tickFormatter={primaryDimension.formatter}
272273
stroke={ThemingParameters.sapObjectHeader_BorderColor}
273274
travellerWidth={10}
274275
height={20}

0 commit comments

Comments
 (0)