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

Comments

Projects
None yet
2 participants
@flicker85

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

This comment has been minimized.

Show comment
Hide comment
@100pah

100pah Aug 23, 2017

Member

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

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

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

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

This comment has been minimized.

Show comment
Hide comment
@flicker85

flicker85 Aug 23, 2017

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

flicker85 commented Aug 23, 2017

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

@100pah 100pah closed this in c76fb43 Aug 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment