You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/04/02 06:12:47 UTC

[GitHub] [incubator-echarts] zl7261 opened a new issue #12369: tooltip.formatter 回调函数 传入的param参数 color颜色不对

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:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] 100pah commented on issue #12369: tooltip.formatter 回调函数 传入的param参数 color颜色不对

Posted by GitBox <gi...@apache.org>.
100pah commented on issue #12369: tooltip.formatter 回调函数 传入的param参数 color颜色不对
URL: https://github.com/apache/incubator-echarts/issues/12369#issuecomment-608046427
 
 
   In the current version of echarts, the highlighted color can only be calculated manually by:
   ```js
   var normalColor = '#0188fb';
   var emphasisColor = echarts.color.lift(normalColor, -0.1);
   ```

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12369: tooltip.formatter 回调函数 传入的param参数 color颜色不对

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12369: tooltip.formatter 回调函数 传入的param参数 color颜色不对
URL: https://github.com/apache/incubator-echarts/issues/12369#issuecomment-607642460
 
 
   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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