Version
5.3.3
Link to Minimal Reproduction
Steps to Reproduce
Just a regular bar chart with 2 stacked series using dates as axis points and type "time" for the X axis.
Using category
type of X axis renders correctly. To observe that, in the provided demo simply replace:
"xAxis": [{"gridIndex": 0,"type": "time"}],
with
"xAxis": [{"gridIndex": 0, data: ["2022-05-18T00:00:00.000Z","2022-05-19T00:00:00.000Z"]}],
Current Behavior
Stacking items are rendered taking wrong series point as a base.
Expected Behavior
Stacking items should be rendered taking the corresponding point value from the other series.
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
4条答案
按热度按时间r8uurelv1#
Sorry echarts does not support
stack
ontime
axis now. Please see #16766 , and a reminder has been added to the documentaion. I would suggest you usecategory
axis to do the job.pxyaymoc2#
I see, thanks for the quick response
t1rydlwq3#
@jiawulin001 could you/some else point me at a place where I could make a start on a solution for this?
vktxenjb4#
@jiawulin001 could you/some else point me at a place where I could make a start on a solution for this?
I needed stack with time axis, solution for me was to have data on all series for every X value.
In your example, by adding