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

treemap中label的emphasis 与 normal 显示有问题 #2975

Closed
ASenBoy opened this issue Apr 11, 2016 · 0 comments
Closed

treemap中label的emphasis 与 normal 显示有问题 #2975

ASenBoy opened this issue Apr 11, 2016 · 0 comments
Milestone

Comments

@ASenBoy
Copy link

ASenBoy commented Apr 11, 2016

问题简述 (One-line summary)

当在treemap中label设置normal不显示 emphasis显示时,当鼠标在矩形中浮动时,任然不显示文本。

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):3.1.6
  • 浏览器类型和版本 (Browser version):chrome 49.0.2623.110 m IE 11
  • 操作系统类型和版本 (OS Version): win7 专业版

重现步骤 (Steps to reproduce)

1.label: {
normal: {
show: false,//正常状态下 不显示文本

                    },
                    emphasis: {
                        show: true,//鼠标经过时 显示文本
                        textStyle:{
                            color:'#fff',
                            fontWeight:'bold',
                            fontSize:40
                        }
                    }
                },

期望结果 (Expected behaviour)

正常状态下不显示文本,当鼠标经过时显示文本

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {

                tooltip : {
                    trigger: 'item',
                    formatter: "{b}: {c}"
                },





                dataRange: {
                    orient:'horizontal',
                    x:'center',
                    itemHeight:800,

                    min: -5,
                    max: 5,                 
                    calculable: true,
                    color:['#0fe600','#0b9e00','#054d00','#000','#520000','#b80000','#ff0000'],
                    textStyle: {
                        color: '#fff'
                    }
                },

                series:[
                {
                    type:'treemap',
                    data:stockdata,
                    width:'100%',
                    roam:false,

                    levels:[
                    {
                        visualDimension:1,
                        colorMappingBy:'value',
                        itemStyle:{
                            normal:{
                                borderColor:"#000",
                                gapWidth:-1
                            }
                        },  
                    }
                    ],

                    label: {
                        normal: {
                            show: false,

                        },
                        emphasis: {
                            show: true,
                            textStyle:{
                                color:'#fff',
                                fontWeight:'bold',
                                fontSize:40
                            }
                        }
                    },

                },  
                ]




            }

其他信息 (Other comments)

@100pah 100pah closed this as completed in 152c7e3 May 5, 2016
@pissang pissang added this to the 3.1.8 milestone May 5, 2016
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

2 participants