zl7261 opened a new issue #12369: tooltip.formatter 回调函数 传入的param参数 color颜色不对
URL: https://github.com/apache/incubator-echarts/issues/12369
 
 
   ### Version
   4.6.0
   
   ### Reproduction link
   
[https://gallery.echartsjs.com/editor.html?c=xdAVdxqNMj&v=2](https://gallery.echartsjs.com/editor.html?c=xdAVdxqNMj&v=2)
   
   ### Steps to reproduce
   emphasis会自动高亮了series Data的颜色
   
   导致tooltip传入的param color属性是 高亮之前的属性
   
   在默认启用emphasis的情况下,应该是传入高亮后的color值吧?
   
   导致我有个自定义tooltip的需求找到当前series对应的颜色没办法准确实现
   
   ### What is expected?
   tooltip 回调函数传入的 param.color 为emphasis高亮之前的颜色
   在这个例子里面,param.color希望是 #0188fb
   
   ### What is actually happening?
   tooltip 回调函数传入的 param.color 为emphasis高亮之后的颜色
   在这个例子里面,param.color希望是 #0195ff
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   
   需求如下,可以看到高亮后的seriesData和param.color不是同一个颜色,
   
![image](https://user-images.githubusercontent.com/27967791/78216210-e49f4080-74eb-11ea-8d0b-5593345769b1.png)
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to