-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Stacked Area Charts Don't Stack #4132
Labels
Comments
The issue is being addressed. Meanwhile, you can fix this by setting options = {
chart: {
stacked: true,
stackOnlyBar: false
}
} |
If the type is removed from both series they will stack, even though stackOnlyBar is true (by default). This shouldn't happen. |
rosco54
added a commit
to rosco54/apexcharts.js
that referenced
this issue
Mar 13, 2024
The default type for chart is "line" and the default for series is the chart type, therefore, if the types of all series match the chart type, this should not be considered a combo chart.
6 tasks
rosco54
added a commit
to rosco54/apexcharts.js
that referenced
this issue
Mar 18, 2024
The default type for chart is "line" and the default for series is the chart type, therefore, if the types of all series match the chart type, this should not be considered a combo chart.
This was referenced May 20, 2024
This was referenced May 26, 2024
This was referenced Jul 4, 2024
This was referenced Jul 11, 2024
This was referenced Jul 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Prior to 3.44.1, stacked area charts would stack, even with a combo chart. I have a combo chart that has used stacked bars, stacked areas and a single line for over a year. But as of 3.44.1, the bars stack, but the areas do not stack. Even after removing all other series except for the areas and they still won't stack. Even Apexchart's website's demo for stacked areas doesn't stack now.
Steps to Reproduce
Expected Behavior
In the codepen/reproduction link, I would expect the values to stack and plot on the Y value at the sum of all values. For example, the last values in 1999 are 125 and 100, which, stacked, should plot at 225.
In the screenshot of the apex charts website, the values are 20, 11, 10, which stacked would plot at 41.
Actual Behavior
"Stacked" areas (in codepen and apex charts website screenshot) are overlapping, not stacking.
Screenshots
This is from the apex charts website to show even the demo is not functioning properly
Reproduction Link
https://codepen.io/krcoats/pen/OJdrLKW
Thank you for the help.
The text was updated successfully, but these errors were encountered: