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

version3.4.0 change series label color not work #6637

Closed
xiyuyizhi opened this issue Sep 11, 2017 · 2 comments
Closed

version3.4.0 change series label color not work #6637

xiyuyizhi opened this issue Sep 11, 2017 · 2 comments

Comments

@xiyuyizhi
Copy link

xiyuyizhi commented Sep 11, 2017

One-line summary [问题简述]

when i use the version of 3.4.0, i appoint the series label property to change the label color,it not work,i update the versions ,it ok.

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:v3.4.0
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {
    "toolbox": {
        "show": true,
        "top": "12%",
        "right": "5%"
    },
    "tooltip": {
        "trigger": "item",
        "confine": true
    },
    "legend": {
        "right": "center",
        "width": "90%",
        "itemWidth": 10,
        "data": [{
            "name": "推送比"
        }, {
            "name": "推送量"
        }],
        "align": "left",
        "selectedMode": false
    },
    "grid": {
        "bottom": "5%",
        "top": "20%",
        "containLabel": true
    },
    "xAxis": [{
        "type": "category",
        "data": ["Loreal"],
        "axisLabel": {
            "textStyle": {
                "color": "#424648"
            }
        },
        "axisLine": {
            "lineStyle": {
                "color": "#B1B1B1"
            }
        }
    }],
    "yAxis": [{
        "type": "value",
        "axisLine": {
            "lineStyle": {
                "color": "#B1B1B1"
            }
        },
        "axisLabel": {
            "textStyle": {
                "color": "#424648"
            },
            "formatter": "{value}"
        }
    }],
    "series": [{
        "name": "推送比",
        "type": "bar",
        "data": [1.6],
        "yAxisIndex": 0,
        "barGap": "30%",
        "markLine": {
            "symbol": ["image://data:image/png;base64,", "image://data:image/png;base64,"],
            "data": []
        },
        "label": {
            "normal": {
                "show": true,
                "color": "#666",
                "position": "top"
            }
        }
    }, {
        "name": "推送量",
        "type": "bar",
        "data": [1905910842],
        "yAxisIndex": 0,
        "barGap": "30%",
        "markLine": {
            "symbol": ["image://data:image/png;base64,", "image://data:image/png;base64,"],
            "data": []
        },
        "label": {
            "normal": {
                "show": true,
                "color": "#666",
                "position": "top"
            }
        }
    }],
    "color": ["#8CB700", "#F3D485"]
}

Other comments [其他信息]

@Ovilia
Copy link
Contributor

Ovilia commented Sep 11, 2017

It works on the latest version. So can you upgrade your version?

@pissang pissang closed this as completed Sep 14, 2017
@SuperAL
Copy link

SuperAL commented Apr 9, 2018

FYI, When I use echarts@3.4.0, all the textStyle colors are not working, it's all black. Then I install echarts@3.7.0, and it's normal again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants