-
Notifications
You must be signed in to change notification settings - Fork 19.8k
[Bug] 时间轴-series-bar. label显示问题 #16666
Copy link
Copy link
Closed as not planned
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Description
Version
5.3.1
Link to Minimal Reproduction
No response
Steps to Reproduce
option = {
yAxis: {
type: 'category',
data: ['Mon', 'Tue']
},
xAxis: {
type: 'time',
minInterval: 3600 * 24 * 1000,
axisLabel : {
color: '#3D3F4B',
interval: 0,
showMaxLabel: true,
formatter: (value, index) => {
var date = new Date(value);
var texts = [(date.getMonth() + 1), date.getDate()];
return texts.join('-');
}
},
},
series: [
{
data: ['2021/12/15', '2021/12/16'],
type: 'bar',
label: {
show: true,
position: "right",
formatter: function(params) {
return '测试' + params.name;
},
color: '#000',
},
}
]
};Current Behavior
series-bar. label不显示(奇怪的是,将X轴于Y轴互换就可显示)
如图

X轴于Y轴互换后

Expected Behavior
series-bar. label显示问题
Environment
- OS:
- Browser:
- Framework:Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.