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.

Missing bar for values

See original GitHub issue

Hello there

I have a simple horizontal bar chart with the dataset values [3, 4, 4, 3, 3] however I only see the bars for values 4 and 4. I’ve attached a screen shot of the chart I’m seeing screen shot 2017-02-27 at 15 01 29

I’m using the following configuration

var data = {
            labels: [
                "One star",
                "Two star",
                ....],
            datasets: [
                {
                    label: 'Ratings',
                    backgroundColor: 'rgba(24, 168, 159, 0.4)',
                    borderColor: 'rgba(0,0,0,0)',
                    hoverBackgroundColor: 'rgba(24, 168, 159, 0.9)',
                    hoverBorderColor: 'rgba(24, 168, 159, 1)',
                    data: [3, 4, 4, 3, 3]
                }
            ]
        };

Has anyone see this before?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
OmarZayed77commented, Oct 6, 2019

I had the same issue and it was resolved by adding (stacked: true) to xAxes and yAxes (for example as shown below) inside the options object. image

0reactions
Pringelscommented, Dec 11, 2019

Closing for now. Please supply a sandbox or code example with the latest versions of both libraries. If the problem persists, feel free to open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MissingValues Bar — Yellowbrick v1.5 documentation
The MissingValues Bar visualizer creates a bar graph that counts the number of missing values per feature column. If the target y is...
Read more >
Displaying Missing Data Values in a Graph
The following image illustrates how missing values are represented in a bar graph when designated to appear as a gap. The percent value...
Read more >
Why is .bar() missing values - python - Stack Overflow
I have a dataset being plotted. One function is a line graph and the other is a bar, the points on the line...
Read more >
Displaying Missing Data Values in a Graph
You can display missing data values (in a bar graph, line graph, ... In all graph types (bar, line, or area), missing values...
Read more >
Missing bars in my bar chart | Power BI Exchange
Hello, It's driving me crazy, but I have missing bars in my bar chart where I know there should be a bar. ......
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