apexcharts / ng-apexcharts

ng-apexcharts is an implementation of apexcharts for angular. It comes with one simple component that enables you to use apexcharts in an angular project.
MIT License
325 stars 81 forks source link

Stacked Bars 100% does not calculate the percentage #345

Open JMMFIRE opened 4 months ago

JMMFIRE commented 4 months ago

When using a stacked 100% bar chart, the percentage is not calculated. Instead, the labels are just rendered with a '%' after the number.

chart: { type: "bar", height: 350, stacked: true, stackType: "100%" },

This can even be seen in the demo: https://apexcharts.com/angular-chart-demos/bar-charts/stacked-bars-100/

Note that adding the '2013' row does not equal 100%.

Javiervinus commented 3 months ago

any solution to this issue?

Javiervinus commented 3 months ago

running angular 18.1.2 apexcharts: "^3.51.0", ng-apexcharts: "^1.11.0"