convertFromPixel(coordinate, finder?) â
convertFromPixel
convert coordinates to values.
Reference â
typescript
(
coordinate: {
x?: number
y?: number
} | Array<{
x?: number
y?: number
},
finder?: {
paneId?: string
absolute?: boolean
}
) => {
dataIndex?: number
timestamp?: number
value?: number
} | Array<{
dataIndex?: number
timestamp?: number
value?: number
}>
Parameters â
coordinate
The coordinates to be converted can be an object or an array.x
The x-axis value.y
The y-axis value.
finder
Filter conditions.paneId
Pane id.absolute
Whether it is an absolute coordinate, only applies to the y-axis.
Returns â
convertFromPixel
returns { timestamp?: number, dataIndex?: number, value?: number }
or Array<{ timestamp?: number, dataIndex?: number, value?: number }>
.