Version
5.0.2
Steps to reproduce
option = {
tooltip: {
trigger: 'axis'
},
legend: {top:30},
xAxis: {
type: 'time'
},
yAxis: {
type: 'value'
},
stack:true,
series: [
{
name: 'Remaining',
data: [
["2021-03-01 00:00:00",100],
["2021-03-02 00:00:00",90],
["2021-03-10 00:00:00",70],
["2021-03-11 00:00:00",60]
],
type: 'line',
step: 'end',
//stack: 'IN'
},
{
name: 'Deposited',
data: [
["2021-03-03 00:00:00",20],
["2021-03-07 00:00:00",50],
["2021-03-08 00:00:00",65],
["2021-03-12 00:00:00",70]
],
type: 'line',
step: 'end',
//stack: 'IN'
}
]
};
What is expected?
The first 'Deposited' value is not 110.
What is actually happening?
Stack over time
5条答案
按热度按时间mum43rcc1#
Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.
In the meanwhile, please make sure thatyou have posted enough image to demo your request. You may also check out the API and chart option to get the answer.
If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.
If you are interested in the project, you may also subscribe our mailing list .
Have a nice day! 🍵
kyvafyod2#
Time axis doesn't support stacking yet.
hrysbysz3#
@pissang Looks like stacking is only supported for
category
type axes. Is there a simple workaround to make it possible forvalue
type axes?oaxa6hgo4#
Link: https://echarts.apache.org/examples/en/editor.html?c=line-stack
Go to the above link, and put the following code. You'll see the weird result.
dpiehjr45#
@pissang@Ovilia
If I flip x, y axis, it seems to be working.
Link: https://echarts.apache.org/examples/en/editor.html?c=line-stack
Go to the above link, and put the following code.