-
-
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
custom string value at top of bar. #1109
Comments
Also I have noticed that the same can be done in android as the CustomerFormatter. String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) . where the formatter has the access to the "entry" which is same as the "data" in swift method BarChartDataEntry(value: value, xIndex: index, data: displayValue). |
Did you manage to solve it? |
@arjenbolten No ..had to move to other alternative, I am using the ChartMarker to show the information as bubbles on top of it. |
Just use |
I have gone through the issue: How to let the Y axis shows is not only a number, but the custom string #1003
whose solution states that I should set valueFormatter in ChartDataSet.
My Problem is that I need to set the values on top of these bar with a custom stringvalue coming from webService. From the implementation I see that the value formatter is being applied to the "values" of the chartDataEntry.
Can't we some how use the DataValue as provided in the chartDataEntry init method.
BarChartDataEntry(value: value, xIndex: index, data: displayValue)
I need to set this "displayValue" on top the barChart.
The text was updated successfully, but these errors were encountered: