Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColumnChart: Data with only negative values has misplaced bars #8854

Open
DavidMoerman opened this issue Jun 26, 2024 · 0 comments
Open

ColumnChart: Data with only negative values has misplaced bars #8854

DavidMoerman opened this issue Jun 26, 2024 · 0 comments
Labels
type: bug 🐛 [2] Velocity rating (Fibonacci)

Comments

@DavidMoerman
Copy link

DavidMoerman commented Jun 26, 2024

Describe the bug
I have modified the example-negative-value.html file from the demo, to a dataset with just two negative values:

    var negativedataset = [{
            data: [{
                name: 'Automotive',
                shortName: 'Auto',
                abbrName: 'A',
                value: -7
            }, {
                name: 'Distribution',
                shortName: 'Dist',
                abbrName: 'D',
                value: -5
            }
          ]
          }];
 
    $('#column-bar-example').chart({type: 'column', dataset: negativedataset});

image

If I alter the dataset slightly by adding a third bar that has a zero value, the chart looks like this:

image

This last chart is how I would expect the first one to look like as well (but then just with two bars, of course).

@tmcconechy tmcconechy changed the title Column chart with only negative values has misplaced bars ColumnChart: Data with only negative values has misplaced bars Jun 26, 2024
@tmcconechy tmcconechy added type: bug 🐛 [2] Velocity rating (Fibonacci) labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 [2] Velocity rating (Fibonacci)
Projects
Status: Groomed
Development

No branches or pull requests

2 participants