Skip to content

Commit 5fec9f7

Browse files
committed
fix faulty values
1 parent 889af5d commit 5fec9f7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/charts/src/components/PieChart/PieChart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ const PieChart = forwardRef<HTMLDivElement, PieChartProps>((props, ref) => {
320320
dataset.map((data, index) => (
321321
<Cell
322322
key={index}
323-
name={dimension.formatter(getValueByDataKey(data, dimension.accessor, ''))}
323+
name={`${dimension.formatter(getValueByDataKey(data, dimension.accessor, ''))}`}
324324
fill={measure.colors?.[index] ?? `var(--sapChart_OrderedColor_${(index % 12) + 1})`}
325325
/>
326326
))}

packages/charts/src/components/ScatterChart/ScatterChart.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ const ScatterChart = forwardRef<HTMLDivElement, ScatterChartProps>((props, ref)
256256
label={
257257
yMeasure?.label
258258
? { value: yMeasure?.label, angle: -90, position: isRTL ? 'insideRight' : 'insideLeft' }
259-
: false
259+
: null
260260
}
261261
type={'number'}
262262
name={yMeasure?.label}
@@ -267,7 +267,6 @@ const ScatterChart = forwardRef<HTMLDivElement, ScatterChartProps>((props, ref)
267267
interval={0}
268268
tick={<YAxisTicks formatter={yMeasure?.formatter} />}
269269
width={yMeasure?.label ? yAxisWidth + 10 : yAxisWidth}
270-
margin={yMeasure?.label ? { left: 200 } : 0}
271270
orientation={isRTL === true ? 'right' : 'left'}
272271
/>
273272
<ZAxis

0 commit comments

Comments
 (0)