4.5.0
Go to https://echarts.apache.org/examples/en/editor.html and use this options:
option = {
"legend": {
"data": ["Geschlossen","Neu","Zugewiesen"]
},
"xAxis": {
"type":"value"
},
"yAxis": {
"type": "category"
},
"series": [
{
"name": "Geschlossen",
"stack": "stack",
"type": "bar",
"data": [4]
},
{
"name": "Neu",
"stack": "stack",
"type": "bar",
"data": [2]
},
{
"name": "Zugewiesen",
"stack": "stack",
"type":"bar",
"data":[4]
}
]
};
There should be a stacked bar that shows the 3 series with the values 4 - 2 - 4
There is only one stacked bar with the value 4
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 that you 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 [email protected]. Please attach the issue link if it's a technical questions.
If you are interested in the project, you may also subscribe our mail list.
Have a nice day! 🍵
It seems that you need to set yAxis data value, and it's length cannot be 0.
data: ['']
I'm not sure that data of yAixs is necessary for stack. Let me check.
For the time being, you can use this workaround to solve this problem.
It's not very clear what you expected!May you can add yAxis.data: ["Geschlossen","Neu","Zugewiesen"] and hope this example helps you!
@yufeng04 The example Kaljak provides was clearly wrong. Does yAixs.data is needed for stacked charts?
@susiwen8 Because the type of yAxis is category, the yAixs.data is needed.
@yufeng04 Thanks.
Thank you very much