mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
build(dev-deps, deps): upgrade major versions for FE deps (#29963)
Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user