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 2021/05/17 07:57:15 UTC

[GitHub] [echarts] plainheart commented on issue #14952: Can't disable emphasis state in Echarts 5.x ?

plainheart commented on issue #14952:
URL: https://github.com/apache/echarts/issues/14952#issuecomment-842102758


   Do you mean you hope to keep the area color unchanged when hovering on the chart?
   If so, unfortunately, there is currently no option to configure it, you have to set a specific value for area style.
   For example,
   ```
   areaStyle: {
       color: '#5470c6'
       opacity: 0.1
   },
   emphasis: {
       areaStyle: {
           color: '#5470c6'
           opacity: 0.1
       }
   }
   ```
   
   **About color**
   
   By default, the emphasized color is calculated by
   ```js
   echarts.color.lift(normalColor, -0.1)
   ```
   If you want to get the emphasized color, you could use the above code.
   
   Related issue: #12369
   
   **About lineWidth**
   
   Since v5.0.0, the line width will be bolder by 1px in emphasis state than the normal state.
   This feature may be removed or changed in the future.
   For now, you will have to set `emphasis.lineStyle.width` to be identical to `lineStyle.width`.
   
   


-- 
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



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