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

series[i].markArea.itemStyle.emphasis 无效 #5245

Closed
j1ng opened this issue Mar 11, 2017 · 1 comment
Closed

series[i].markArea.itemStyle.emphasis 无效 #5245

j1ng opened this issue Mar 11, 2017 · 1 comment

Comments

@j1ng
Copy link

j1ng commented Mar 11, 2017

One-line summary [问题简述]

设置 series[i].markArea.itemStyle.emphasis 不起作用

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 3.4.0
  • Browser version [浏览器类型和版本]: Chrome 56.0.2924.87 (64-bit)
  • OS Version [操作系统类型和版本]: MacOS Sierra 10.12.3

Expected behaviour [期望结果]

鼠标指到 markArea 时改变样式

ECharts option [ECharts配置项]

option = {      //精简后的例子
    xAxis:{max:5},
    yAxis:{max:5},
    series:[
        {
            type:'line',
            data:[[1,2],[4,3]],
            markArea: {
                itemStyle:{
                    normal:{color:'yellow', opacity:0.2},
                    emphasis:{      //随便写啥..反正没卵用 ㄟ( ▔, ▔ )ㄏ
                        color:'red', 
                        borderColor:'red', 
                        opacity:1
                    }
                },
                label:{
                    normal:{show:false},
                    emphasis:{      //这边写的就管用 (╯‵□′)╯︵┻━┻
                        show:true,  //受 itemStyle 影响, label 显示半透明
                        textStyle:{fontSize:20}
                    }
                },
                data: [[{yAxis:1,name:echarts.version},{yAxis:4}]]
            }
        }
    ]
};

Other comments [其他信息]

_(:з」∠)_

@qk44077907
Copy link

一样,我也设置这个属性无效

@100pah 100pah closed this as completed in 47bbcc5 Sep 25, 2017
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

2 participants