build(dev-deps, deps): upgrade major versions for FE deps (#29963)

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Đỗ Trọng Hải
2024-09-07 00:44:22 +07:00
committed by GitHub
parent 4d1db9e32c
commit aa50eb3b03
12 changed files with 648 additions and 1049 deletions

View File

@@ -42,12 +42,12 @@ function normalizeSymbolSize(
nodes: ScatterSeriesOption[],
maxBubbleValue: number,
) {
const [bubbleMinValue, bubbleMaxValue] = extent(nodes, x => x.data![0][2]);
const [bubbleMinValue, bubbleMaxValue] = extent(nodes, x => x.data?.[0]?.[2]);
const nodeSpread = bubbleMaxValue - bubbleMinValue;
nodes.forEach(node => {
// eslint-disable-next-line no-param-reassign
node.symbolSize =
(((node.data![0][2] - bubbleMinValue) / nodeSpread) *
(((node.data?.[0]?.[2] - bubbleMinValue) / nodeSpread) *
(maxBubbleValue * 2) || 0) + MINIMUM_BUBBLE_SIZE;
});
}

View File

@@ -157,7 +157,7 @@ export default function transformProps(
label: {
show: showValues,
formatter: (params: CallbackDataParams) =>
valueFormatter(params.value[2]),
valueFormatter(params.value?.[2]),
},
},
];
@@ -178,9 +178,9 @@ export default function transformProps(
yAxisLabel,
metricLabel,
);
const x = params.value[0];
const y = params.value[1];
const value = params.value[2];
const x = params.value?.[0];
const y = params.value?.[1];
const value = params.value?.[2];
const formattedX = xAxisFormatter(x);
const formattedY = yAxisFormatter(y);
const formattedValue = valueFormatter(value);