echarts-bot[bot] commented on issue #19225:
URL: https://github.com/apache/echarts/issues/19225#issuecomment-1771986783
@apankun It seems you are not using English, I've helped translate the
content automatically. To make your issue understood by more people and get
helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Feature] Can the labelLayout callback provide the real dataindex of the
data?
**BODY**
### What problem does this feature solve?
labelLayout: (params) => {
const key = `${params.seriesIndex}-${params.dataIndex}`
const value = this.labelPos?. get(key)
return {
y: value?. y ?? params.labelRect.y,
x: value?. x ?? params.labelRect.x,
draggable: true
}
}
At this point, if I have a zoom axis in the axis, the dataindex can only
fetch the index of that data in the current viewport, but I want to know his
index in the entire seires, otherwise the position of draggable cannot be
recorded.
Or is there any other way to save the draggable location every time?
### What does the proposed API look like?
Params should provide more parameters, or provide a way to customize the
callback
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]