You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@aqnghu 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. 🤗
TRANSLATED
TITLE
[Feature] Add dataIndex to the parameter of valueFormatter callback function
BODY
What problem does this feature solve?
`tooltip. valueFormatter' callback function '(value: number | string) => string ' can only get data, can not get other related information of the data, hope to increase the dataIndex parameter
What does the proposed API look like?
Add callback function parameter '(value: number | string, dataIndex: number) => string '
Activity
echarts-bot commentedon Aug 16, 2023
@aqnghu 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. 🤗
TRANSLATED
TITLE
[Feature] Add dataIndex to the parameter of valueFormatter callback function
BODY
What problem does this feature solve?
`tooltip. valueFormatter' callback function '(value: number | string) => string ' can only get data, can not get other related information of the data, hope to increase the dataIndex parameter
What does the proposed API look like?
Add callback function parameter '(value: number | string, dataIndex: number) => string '
theDoinb commentedon Aug 25, 2023
dataIndex是确是有用的, 例如我的图表只想体现变换率,同时想在tooltip展示原值,我就可以用dataIndex去取值并格式化,如果同时展示两组数据的话,变化率很小,原值却很大,会导致Y轴的最大值并不是我所期望的。ChepteaCatalin commentedon Sep 17, 2023
I'm interested in fixing this issue.
Merge pull request #19123 from ChepteaCatalin/fix-18997