You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "YornQiu (via GitHub)" <gi...@apache.org> on 2024/11/26 10:09:54 UTC

Re: [I] [Bug] tooltip.formatter option is not typed correctly [echarts]

YornQiu commented on issue #19064:
URL: https://github.com/apache/echarts/issues/19064#issuecomment-2500196465

   In the charts which have axis, there are fields `axisDim`, `axisId`, `axisIndex`, `axisType`, `axisValue` and `axisValueLabel` in tooltip formatter callback params.
   
   But they did not be defined in the type declaration. So I am destined to see typescript errors.
   
   How to fix it?
   
   This is what I get in console
   <img width="980" alt="image" src="https://github.com/user-attachments/assets/d7363675-d327-4d31-aa07-7788aa3ba8ec">
   
   This is the declaration in echarts.d.ts
   <img width="780" alt="image" src="https://github.com/user-attachments/assets/7c2f5286-0b12-4803-b950-762a4215c32b">
   
   


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org