Closed xianghongai closed 5 years ago
yAxis nameTextStyle
align
is not working, color
property in working.
option = {
xAxis: {
type: 'category',
name: `xAxis very very very very very very very very long`,
nameGap: 35,
nameLocation: 'end',
nameTextStyle: {
color: '#00f',
fontWeight: 'bolder',
align: 'left',
verticalAlign: 'left'
},
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value',
name: `yAxis very very very very very very very very long`,
nameGap: 35,
nameLocation: 'end',
nameTextStyle: {
color: '#f00',
fontWeight: 'bolder',
align: 'right'
}
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
smooth: true
}]
};
请问解决了吗? 我也是这个问题yAxis.nameTextStyle.align不生效, 但是低版本的echarts却可以
@yangchao35071 Not yet. Scheduled in v4.3.0.
我也遇到这个问题了,大家解决了吗
我也遇到了这个问题,把y轴的name替换成title去设置或者用grid.left去调整。
General Questions
Issue Type
Issue Details
Expected Behavior
Current Behavior
If the axis name too long, it will overflow the canvas.
Online Example
Topics
Anything Else We Need to Know
PS: This issue template, the
Issue Details
section,<!-- DESCRIBE_HERE} -->
tips message missing{
chart.Environment
ECharts version;ECharts 版本: {DESCRIBE_HERE} 4.2.0
[x] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE} All Browser, All OS