-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
StackedBarChart Value on middle of each stacked bar chart #3162
Comments
To clarify, are you asking how to draw a bar's value label in the middle of the bar OR are you asking how to draw all the value labels in the middle of the chart? |
hi, what I mean is how to draw a bar's value label in the middle of a bar. so if there is 5 bars in 1 bar chart, the value of 5 bars will be drawn in the middle of each bar. thanks! |
I think you already found the right place to override. Just pass the desired y position to draw the labels. use barRect calculation to calculate where is your half bar y position. |
Hi, very great library!
Btw, how can I set the chart value position on the middle of it?
i try to dig and found this code, but i dont know how to make it appear on the middle of the each barchart. Currently, the value will be displayed on the top of the chart (still inside the chart)
barChartView.drawValueAboveBarEnabled = false
The text was updated successfully, but these errors were encountered: