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

axisLabel使用rotate参数时文本颜色发生改变 #3394

Closed
AtlasLiao opened this issue Jun 10, 2016 · 1 comment
Closed

axisLabel使用rotate参数时文本颜色发生改变 #3394

AtlasLiao opened this issue Jun 10, 2016 · 1 comment

Comments

@AtlasLiao
Copy link

问题简述 (One-line summary)

axisLabel使用rotate参数时文本颜色发生改变,文字从设置好的颜色变回默认颜色

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):3.1.7
  • 浏览器类型和版本 (Browser version):chrome 50.0.2661.102 m (64-bit)
  • 操作系统类型和版本 (OS Version):windows 7

重现步骤 (Steps to reproduce)

1.由于axisLabel.textStyle.color默认颜色为‘#333’,我更改为‘#000000’
2.当在axisLabel使用rotate参数时,发现文本颜色变回‘#333

期望结果 (Expected behaviour)

axisLabel使用rotate参数时文本颜色不要发生改变

ECharts配置项 (ECharts option)

option = {
backgroundColor:'#FFFFFF',
              tooltip: {
                trigger: 'axis',
                    axisPointer : {    
                      type : 'shadow'     
                      }
              },
              calculable: true,
              grid: {
              y2:120
            },
              xAxis: [{
                type: 'category',
                axisLabel: {
                                rotate: 30,
                                interval:0,
                                textStyle:{
                                    color:'#000000'
                                }
                            },
                            axisTick:{
                                interval:0
                            },
                data: []
              }],
              yAxis: [{
                type: 'value'
              }],
              series: [{
                type: 'bar',
                data: [32, 30, 30, 33, 39, 33, 32, 33, 39, 33]
              }]
}

其他信息 (Other comments)

image
image

@100pah
Copy link
Member

100pah commented Jun 12, 2016

可能是字体有点变虚,把字体调大些试试?

@pissang pissang closed this as completed Jun 23, 2016
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

3 participants