Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

echarts 3.7.0 座标轴文字颜色异常 #6491

Closed
flicker85 opened this issue Aug 23, 2017 · 2 comments
Closed

echarts 3.7.0 座标轴文字颜色异常 #6491

flicker85 opened this issue Aug 23, 2017 · 2 comments
Labels

Comments

@flicker85
Copy link

flicker85 commented Aug 23, 2017

version: 3.7.0

"valueAxis": {
    "axisLine": {
        "show": false,
        "lineStyle": {
            "color": "#666"
        }
    },
    "axisTick": {
        "show": false,
        "lineStyle": {
            "color": "#333"
        }
    },
    "axisLabel": {
        "show": true,
        "textStyle": {
            "color": "#999999"
        }
    },
    "splitLine": {
        "show": true,
        "lineStyle": {
            "color": [
                "#eee"
            ]
        }
    },
    "splitArea": {
        "show": false,
        "areaStyle": {
            "color": [
                "rgba(250,250,250,0.3)",
                "rgba(200,200,200,0.3)"
            ]
        }
    }
},

axisLabel color设置无效,所有的color都使用的是axisLine的color

@100pah
Copy link
Member

100pah commented Aug 23, 2017

不知你这段代码,是否是 theme?
如果是的话,那么可以把 axisLabel 改成:

"axisLabel": {
    "show": true,
    "color": "#999999"
}

因为 3.7.0 版本去掉了 label 中的 textStyle 层级。虽然,也兼容了老了 textStyle 写法,但是没有兼容 theme。这个兼容会马上修复。

@100pah 100pah added the bug label Aug 23, 2017
@flicker85
Copy link
Author

flicker85 commented Aug 23, 2017

对,是theme文件,去掉textStyle 层级就好啦,3q

@100pah 100pah closed this as completed in c76fb43 Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants