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

[Dumbbell chart] plotting null values at the top of the chart #4458

Open
bcldvd opened this issue May 10, 2024 · 0 comments
Open

[Dumbbell chart] plotting null values at the top of the chart #4458

bcldvd opened this issue May 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bcldvd
Copy link

bcldvd commented May 10, 2024

Description

Steps to Reproduce

  1. Take the basic dumbbell chart demo : https://apexcharts.com/javascript-chart-demos/column-charts/dumbbell-chart/
  2. Change the series to the following:
[
    {
      data: [
        {
          x: '2008',
          y: null
        },
        {
          x: '2009',
          y: [3200, 4100]
        }
      ]
    },
       {
      data: [
        {
          x: '2008',
          y: [2800, 4500]
        }
      ]
    }
  ]

I'm setting the value of y to null, because I'm using multiple series. If I remove 2008 from the first series, then 2008 from the second series gets plotted in 2009 🤯

Expected Behavior

image

Actual Behavior

image

Alternate wrong usecase

If we remove the 2008 from the first series:

[
    {
      data: [
        {
          x: '2009',
          y: [3200, 4100]
        }
      ]
    },
       {
      data: [
        {
          x: '2008',
          y: [2800, 4500]
        }
      ]
    }
  ]

image

The second series gets wrongly plotted against 2009 instead of 2008

Reproduction Link

@bcldvd bcldvd added the bug Something isn't working label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant