vico icon indicating copy to clipboard operation
vico copied to clipboard

Data Labels for Stacked bar chart have wrong position and value

Open marks-kr opened this issue 11 months ago • 2 comments

How to reproduce

Make a bar chart with a single series and a merge mode of Stacked, and data labels set to a position of Top.

I initially saw this problem with a 2-series Stacked bar chart, but found that the labels were the exact same if I replaced them with a single series of their sum.

Attached below is a code snippet that produces the attached graphs with vico 2.0.0 alpha 12 CodeSnippet.txt

Observed behavior

Labels are displayed overlapping the bars, and showing values that do not match the vertical axis. image

Expected behavior

The data labels for a single series should have the same position as a Grouped bar chart. image

Vico version(s)

Latest unstable version

Android version(s)

SDK 30

Additional information

No response

marks-kr avatar Mar 27 '24 20:03 marks-kr

Hello! Thanks for the report. We’ll look into it.

patrickmichalik avatar Mar 27 '24 21:03 patrickmichalik

Vico 2.0.0 Alpha 13 fixes this. Cheers!

patrickmichalik avatar Mar 28 '24 16:03 patrickmichalik