Apexcharts.js: Stacked bar charts display NaN when value is 0 and stackType is 100%

Created on 11 Jun 2019  路  3Comments  路  Source: apexcharts/apexcharts.js

When using the following chart options a large "NaN" is displayed in place of the bar when the data in the series array is 0. The "NaN" disappears when the stackType option is removed so potentially a divide by 0 error.

{ height: 450, type: 'bar', stacked: true, stackType: '100%' }"

bug

All 3 comments

Can you please create a simple codepen demo (without Angular integration)?

Sure thing, with a bit more investigation it seems to be caused by having the dropShadow property enabled on the dataLabels.

https://codepen.io/Drummad/pen/orNMej

Thanks for the codepen. Will fix soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drew-dulgar picture drew-dulgar  路  3Comments

cstlaurent picture cstlaurent  路  3Comments

tcarlsen picture tcarlsen  路  3Comments

EroTiXx picture EroTiXx  路  3Comments

piyushSinghalDemo picture piyushSinghalDemo  路  3Comments