question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stacked bar chart is not showing all series

See original GitHub issue

Version

4.5.0

Steps to reproduce

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]
        }
    ]
};

What is expected?

There should be a stacked bar that shows the 3 series with the values 4 - 2 - 4

What is actually happening?

There is only one stacked bar with the value 4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yufeng04commented, Dec 3, 2019

@susiwen8 Because the type of yAxis is category, the yAixs.data is needed.

1reaction
yufeng04commented, Dec 3, 2019

It’s not very clear what you expected!May you can add yAxis.data: ["Geschlossen","Neu","Zugewiesen"] and hope this example helps you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stacked bar chart not showing all data
I am trying to display data in a stacked bar chart like below that shows the count of incidents by product and application...
Read more >
Some data series missing from stacked bar chart - Mr. Excel
I have stacked bar charts in Workbook 1 that show all data plotted correctly. (Even the same data that ends up not showing...
Read more >
How to Make Excel Clustered Stacked Column Chart - Data Fix
Right-click on one of the columns, and click Format Data Series · The Format Data Series pane opens, usually at the right side...
Read more >
A Complete Guide to Stacked Bar Charts | Tutorial by Chartio
Stacked bar charts extend the standard bar chart by dividing each bar into multiple subcategories. Learn how to best use this chart type...
Read more >
Stacked Bar Chart not showing all series in Kendo UI for jQuery
Hi, I am building a stacked bar chart with three series. I am fetching the data from a remote service and binding to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found