Skip to content

Commit 36cc8e5

Browse files
authored
Feature/fix scatter plot 2 (#2155)
* Revert "[DEV-10856a] add data transform to initial load (#2120)" This reverts commit 735a60e. * remove null values
1 parent 9a06d36 commit 36cc8e5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/chart/src/components/ScatterPlot/ScatterPlot.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ const ScatterPlot = ({ xScale, yScale }) => {
5959
opacity: 1,
6060
stroke: displayArea ? 'black' : ''
6161
}
62+
if (item[s]==='') {
63+
return <> </>
64+
}
65+
66+
6267

6368
return (
6469
<circle

packages/chart/src/hooks/useMinMax.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ const useMinMax = ({ config, minValue, maxValue, existPositiveValue, data, isAll
4646

4747
min = enteredMinValue && isMinValid ? Number(enteredMinValue) : minValue
4848
max = enteredMaxValue && isMaxValid ? Number(enteredMaxValue) : Number.MIN_VALUE
49-
5049
const { lower, upper } = config?.confidenceKeys || {}
5150

5251
if (lower && upper && config.visualizationType === 'Bar') {
@@ -234,6 +233,7 @@ const useMinMax = ({ config, minValue, maxValue, existPositiveValue, data, isAll
234233

235234
if (config.visualizationType === 'Scatter Plot') {
236235
max = max * 1.1
236+
min = min / 1.1
237237
}
238238

239239
return { min, max, leftMax, rightMax }

0 commit comments

Comments
 (0)