I'm using echarts 5.4.0 I want to use echarts bar chart as a historical chart, meaning the x-axis data should change on every 5 seconds. The x-axis data consists of dates
The issue I'm facing is that every time when the x-axis data is changing the bars are getting filled from the beginning. What I would expect is their filled part to be changed, not starting from zero every time, but from the value it's been before the change. I've checked how it's been working on v4 and it seemed to not have this problem. Please see the attached gif, paying attention on the changing x-axis data and the way the bars are drawn from 0.
I'm using the very basic echarts bar chart example:
option = {
xAxis: {
type: 'category',
data: ['14:57:51', '17:57:51', '20:57:51', '23:57:51', '02:57:51', '05:57:51', '08:57:51', '11:57:51']
},
yAxis: {
type: 'value'
},
series: [
{
data: [120, 200, 150, 80, 70, 110, 130, 90],
type: 'bar'
}
]
};
I will be very thankful for any suggestions or advise on how I can achieve the behavior I want and the bars values are not reset from zero every time.