apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.37k stars 19.61k forks source link

valueAxis.splitLine.lineStyle.opacity control axisLabel opaicty when using theme in 4.2.0-rc.2 #9570

Closed hhshii closed 5 years ago

hhshii commented 5 years ago

General Questions

In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:

Issue Type

Issue Details

I use ecahrts theme in my work,and when I set valueAxis.splitLine.lineStyle.opacity,this allows axisLabel to have transparency

Expected Behavior

like old version,splitline does not control axisLabel opaicty

Current Behavior

set splitLine opaicty will change axisLabel opaicty

Online Example

https://codepen.io/gfwer/pen/maJGNz

Topics

Anything Else We Need to Know

Environment

Ovilia commented 5 years ago

Hi. According to the doc, axisLabel doesn't have an option for opacity and that's why splitLine.opacity can set axisLabel's. On the other hand, axisLabel color should not be bound to splitLine. If you wish them to be the same, just set them to be the same color.

hhshii commented 5 years ago

I see,Thx .And it was added to echarts in 4.2.0? I found in 4.1.0,splitLine.opaicty can not control axisLabel 's opacity.

Ovilia commented 5 years ago

I'm not sure. But it's recommended not to rely on splitLine.opaicty if you wish to change axisLabel.