ITchenjian opened a new issue #16663:
URL: https://github.com/apache/echarts/issues/16663
### Version
5.3.0
### Link to Minimal Reproduction
_No response_
### Steps to Reproduce
option = {
title: {
text: 'World Population'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
legend: {},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: {
type: 'time',
minInterval: 3600 * 24 * 1000,
axisLabel : {
color:'#3D3F4B',
interval: 0,
formatter: (value, index) => {
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
return texts.join('-');
}
},
axisLine:{
show:true,
},
},
yAxis: {
type: 'category',
data: ['Brazil', 'Indonesia', 'USA', 'India', 'China', 'World']
},
series: [
{
name: '2011',
type: 'bar',
label: {
show: true,
position: "right",
formatter: function(params) {
return '测试1';
},
color: '#000',
},
data: ['2021/12/16', '2021/12/16', '2021/12/16', '2021/12/16',
'2021/12/16', '2021/12/16']
},
{
name: '2012',
type: 'bar',
label: {
show: true,
position: "right",
formatter: function(params) {
return '测试2';
},
color: '#000',
},
data: ['2021/12/15', '2021/12/15', '2021/12/16', '2021/12/16',
'2021/12/16', '2021/12/16']
}
]
};
### Current Behavior
x轴为time轴,y为category轴时有如下问题:
x轴的axisLabel,最后一个不显示;
series的label为 '2021/12/15' 也不显示 (更改grid可能会出现,单有些情况也没用)
### Expected Behavior
x轴的axisLabel 和 series的label 正确显示
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]