-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Description
Version
5.5.1
Link to Minimal Reproduction
Steps to Reproduce
When the X-axis type is time, the Echats column graph is out of range
`const data = {
option: {
animation: false,
animationDuration: 0,
animationThreshold: 1,
title: { text: '' },
grid: { show: true, left: 75, right: 32, bottom: 85 },
legend: {
data: [{ name: 'Count' }],
type: 'scroll',
selected: { 'Count': true }
},
tooltip: {
trigger: 'axis',
axisPointer: { type: 'cross', animation: false, snap: true },
borderWidth: 1,
borderColor: '#ccc',
backgroundColor: 'rgba(50,50,50,0.7)',
textStyle: { color: '#fff' },
padding: 10
},
dataZoom: [
{
type: 'inside',
zoomLock: false,
throttle: 100,
realtime: false,
filterMode: 'none'
},
{
type: 'slider',
zoomLock: false,
throttle: 100,
realtime: false,
filterMode: 'none',
height: 16,
handleSize: 20
},
{
yAxisIndex: [0],
realtime: false,
filterMode: 'none',
width: 16,
type: 'slider',
handleSize: 20
}
],
xAxis: {
type: 'time',
boundaryGap: true,
silent: false,
axisLine: { onZero: true },
min: 'dataMin',
max: 'dataMax',
interval: 'auto',
nameGap: 30,
axisLabel: { margin: 10, hideOverlap: true },
axisPointer: { show: true, label: {} }
},
yAxis: [
{
type: 'value',
position: 'left',
name: 'Count ',
nameLocation: 'middle',
nameGap: 50,
nameRotate: 90,
scale: true,
show: true,
nameTextStyle: { color: '#C65454' },
splitLine: { show: true },
axisTick: { show: true },
axisLabel: {
margin: 5,
rotate: 0,
color: '#C65454',
showMinLabel: true,
showMaxLabel: true
},
color: '#C65454',
large: false,
offset: 0,
axisLine: { onZeroAxisIndex: [], show: true },
axisPointer: { show: true, label: {} },
silent: false
}
],
series: [
{
name: 'Count',
type: 'bar',
data: [
{
name: 1718717518864,
value: [
1718717518864,
36,
{
key: 'count',
chartDef: { graphVisualization: 'COLUMN', color: '#C65454' }
}
],
event: {
'count': 36,
'timestamp': 1718717518864,
format: 'MMM DD HH:mm:ss',
timePre: 1718717518864
},
key: {
key: 'count',
chartDef: { graphVisualization: 'COLUMN', color: '#C65454' }
},
timePre: 1718717518864
},
{
name: 1728717518864,
value: [
1728717518864,
72,
{
key: 'count',
chartDef: { graphVisualization: 'COLUMN', color: '#C65454' }
}
],
event: {
'count': 72,
'timestamp': 1728717518864,
format: 'MMM DD HH:mm:ss',
timePre: 1728717518864
},
key: {
key: 'count',
chartDef: { graphVisualization: 'COLUMN', color: '#C65454' }
},
timePre: 1728717518864
},
{
name: 1738717518864,
value: [
1738717518864,
54,
{
key: 'count',
chartDef: { graphVisualization: 'COLUMN', color: '#C65454' }
}
],
event: {
'count': 54,
'timestamp': 1738717518864,
format: 'MMM DD HH:mm:ss',
timePre: 1738717518864
},
key: {
key: 'count',
chartDef: { graphVisualization: 'COLUMN', color: '#C65454' }
},
timePre: 1738717518864
}
],
yAxisIndex: 0,
showSymbol: true,
symbolSize: 3,
emphasis: { disabled: true },
barGap: '30%',
animation: false,
animationThreshold: 1,
itemStyle: { color: '#C65454', opacity: 0.5 },
connectNulls: true,
large: true,
markLine: {},
progressiveThreshold: 20000,
step: null
}
]
}
};
option = data.option;
`
Current Behavior
[Bug] When the X-axis type is time, the Echats column graph is out of range
Expected Behavior
When the X-axis type is time, the Echats column graph should not be out of range
Environment
- OS:windows
- Browser:Chrome 129.0.6668.90
- Framework:react16Any additional comments?
No response