mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 03:32:23 +03:00
use all y values as the limits
This commit is contained in:
parent
5973e59a4d
commit
675a9f4718
@ -600,9 +600,13 @@ const createNewFilterNode = () => {
|
||||
const xItems = data.value.data.map((d) => d.x)
|
||||
const minX = Math.min(...xItems)
|
||||
const maxX = Math.max(...xItems)
|
||||
const yItems = data.value.data.map((d) => d.y)
|
||||
const minY = Math.min(...yItems)
|
||||
const maxY = Math.max(...yItems)
|
||||
const yItems = data.value.data.map((d) => {
|
||||
const { x, label, color, shape, size, row_number, series, ...rest } = d
|
||||
return rest
|
||||
})
|
||||
const yItemsVal = yItems.map((k) => Object.values(k)).flat(1)
|
||||
const minY = Math.min(...yItemsVal)
|
||||
const maxY = Math.max(...yItemsVal)
|
||||
const pattern = getAstPatternFilterAndSort(seriesLabels, xColName, minX, maxX, minY, maxY)
|
||||
if (pattern) {
|
||||
config.createNodes({
|
||||
|
Loading…
Reference in New Issue
Block a user