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

Reversed stacked bar chart fails to load with all -ve data points #4630

Closed
antshpra opened this issue Aug 10, 2024 · 2 comments · Fixed by #4637
Closed

Reversed stacked bar chart fails to load with all -ve data points #4630

antshpra opened this issue Aug 10, 2024 · 2 comments · Fixed by #4637
Labels
bug Something isn't working

Comments

@antshpra
Copy link

Description

Stacked bar chart with negative series data fails to render when reversed.

Steps to Reproduce

var options = {
  chart: {
    type: 'bar',
    stacked: true
  },
  series: [{
    name: 'sales',
    data: [-30,-40,-45,-50,-49,-60,-70,-91,-125]
  }],
  xaxis: {
    categories: [1991,1992,1993,1994,1995,1996,1997, 1998,1999]
  },
  yaxis: {
    reversed: true
  }
}

var chart = new ApexCharts(document.querySelector("#chart"), options);

chart.render();

Screenshots

image

Reproduction Link

https://codepen.io/xplkbmga-the-reactor/pen/dyBVOOZ

@antshpra antshpra added the bug Something isn't working label Aug 10, 2024
@antshpra
Copy link
Author

It works as expected if I switch to version 3.48.0 or older.

@rosco54
Copy link
Contributor

rosco54 commented Aug 13, 2024

@junedchhipa I will take a look at this.

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

Successfully merging a pull request may close this issue.

2 participants