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

selectorLabel 是否支持 修改emphasis样式? #11623

Closed
55cc opened this issue Nov 12, 2019 · 4 comments
Closed

selectorLabel 是否支持 修改emphasis样式? #11623

55cc opened this issue Nov 12, 2019 · 4 comments

Comments

@55cc
Copy link

55cc commented Nov 12, 2019

Version

4.4.0

Steps to reproduce

echarts自带的 selector: [
{
type: 'all',
title: '全选',
},
{
type: 'inverse',
title: '反选'
}
],
修改selectorLabel样式, 但是鼠标悬浮时,会有灰色的背景色, 无法更改

What is expected?

目前是否支持修改selectorLabel在鼠标悬浮状态下的样式?
是否有相关说明?

What is actually happening?

尝试过修改emphasis等属性,均未实现修改背景色样式.

@echarts-bot
Copy link

echarts-bot bot commented Nov 12, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 12, 2019
@deqingli deqingli added duplicate and removed pending We are not sure about whether this is a bug/new feature. waiting-for: community labels Nov 12, 2019
@deqingli
Copy link
Member

deqingli commented Nov 12, 2019

Is your problem the same as #11480?

@deqingli deqingli self-assigned this Nov 12, 2019
@55cc
Copy link
Author

55cc commented Nov 13, 2019

Is your problem the same as #11480?

no, different problems.

@deqingli
Copy link
Member

It supports, you can modify it like below:

legend: {
    selector: true,
    selectorLabel: {
        color: 'yellow',
        borderColor: 'green',
        backgroundColor: 'blue'                  
    },
    emphasis: {
         selectorLabel: {
             backgroundColor: 'red'
         }
    },
}                    

I am so sorry, I forget to add it to the doc.

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

No branches or pull requests

3 participants