Apexcharts.js: dataLabels are not working properly on bar charts with negative values

Created on 19 Apr 2020  路  6Comments  路  Source: apexcharts/apexcharts.js

When you create a bar chart with data labels and (partly) negative data the data labels are expected to be in the middle of each bar, but the data labels of the negative values are under the bar. The data labels on the positive values have the correct placement.

Codepen: https://codepen.io/thimows/pen/pojbOEp

bar bug

Most helpful comment

@Steven1284 Yeah, I confirm the issue.
It will be addressed very soon as it is a major bug.

All 6 comments

I have the exact issue. Really weird. Is there a way to solve this @junedchhipa? For now I think it is the best not use data labels with bar charts.

Yeah, I noticed that this also happens with charts with multiple bars ):

@Steven1284 Yeah, I confirm the issue.
It will be addressed very soon as it is a major bug.

You are the best! Hope the update gets released soon.

Thank you again!

@Steven1284 Yeah, I confirm the issue.
It will be addressed very soon as it is a major bug.

https://codepen.io/niravpatel2008/pen/dyNmQJK

can you please check this codepan ? its not working for negative value can you please help?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ismaildervisoglu picture ismaildervisoglu  路  3Comments

tcarlsen picture tcarlsen  路  3Comments

EroTiXx picture EroTiXx  路  3Comments

jlil picture jlil  路  3Comments

cstlaurent picture cstlaurent  路  3Comments