apankun opened a new issue, #19225:
URL: https://github.com/apache/echarts/issues/19225
### 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
}
}
此时如果我在坐标轴有缩放轴,dataindex只能取到当前viewport中该数据的index,但是我想知道他在整个seires里面的index,否则无法记录draggable的位置。
或者有没有什么其他方法,可以保存每次draggable的位置?
### What does the proposed API look like?
params应提供更多的参数,或者提供可以自定义回调的方式
--
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]