We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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设置normal不显示 emphasis显示时,当鼠标在矩形中浮动时,任然不显示文本。
1.label: { normal: { show: false,//正常状态下 不显示文本
}, emphasis: { show: true,//鼠标经过时 显示文本 textStyle:{ color:'#fff', fontWeight:'bold', fontSize:40 } } },
正常状态下不显示文本,当鼠标经过时显示文本
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 } } }, }, ] }
The text was updated successfully, but these errors were encountered:
152c7e3
No branches or pull requests
问题简述 (One-line summary)
当在treemap中label设置normal不显示 emphasis显示时,当鼠标在矩形中浮动时,任然不显示文本。
版本及环境 (Version & Environment)
重现步骤 (Steps to reproduce)
1.label: {
normal: {
show: false,//正常状态下 不显示文本
期望结果 (Expected behaviour)
正常状态下不显示文本,当鼠标经过时显示文本
可能哪里有问题 (What went wrong)
ECharts配置项 (ECharts option)
其他信息 (Other comments)
The text was updated successfully, but these errors were encountered: