-
-
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 text over bar chart. #84
Comments
Waiting for positive reply |
Use a custom number formatter |
I think you didn't get my point. Data values are something like this : 105,115,120,129,154 etc. I have type against every data value i.e. Walking,Running,Cycling etc. I want to draw graph on the bases of values and draw my type over each bar. I think I have explained much. |
I didn't quite understand you. |
Still you can use a custom NSNumberFormatter. You will receive the value On Fri, May 15, 2015 at 12:51 PM, BurhanMughal notifications@github.com
|
I think I can only pass two arrays i.e. xAxis and yAxis containing numbers. How can I pas number and string simultaneously ? |
Well you do not pass a String. You said you do not want the value to show, On Fri, May 15, 2015 at 12:54 PM, BurhanMughal notifications@github.com
|
Sorry I couldn't quite get your idea, If it will return my custom string not value then how the graph will be populated ? |
The charts are populated with real values. The NSNumberFormatter is used to On Fri, May 15, 2015 at 1:10 PM, BurhanMughal notifications@github.com
|
Neither. When I say custom NSNumberFormatter, I mean custom On Fri, May 15, 2015 at 1:36 PM, BurhanMughal notifications@github.com
|
Subclass the damn thing. You should really read some of Apple's On Fri, May 15, 2015 at 1:53 PM, BurhanMughal notifications@github.com
|
I solved it.. Thanks for your support. I just made changes in swift code and it works fine :) 👍 |
That is not the correct approach, as updated to the project will keep coming. There are APIs for almost anything, and standard ways to customize things. |
Yes you are right, It will take some time to apply your suggested approach and I can't afford time loss at this moment that's y I did this. Thanks anyway for suggestion I will eventually apply that one. Regards. |
I found it ultimately Daniel, there are two methods for init the BarDataEntry object one is without data and other one with additional (id) data __nullable parameter. I just populate my custom text in that parameter against each data entry and use it in drawText method in BarChartRenderer :). |
Hi BurhanMughal..please send your Applied code ..i want to show as it is your functionalities.. |
hello Sir |
hey, can you please share the solution. I'm facing the same problem. i have grouped bar with budget and actual expenses but i want to show custom data (subcategory of budget and actual) in the marker view. please help. |
Hi Daniel,
Hope you are doing good.
Can we show our custom value/Text over every bar in Bar chart ?
Currently : Bar value is shown above bar.
Expected Behavior: Show custom value/text over every bar.
Thanks.
The text was updated successfully, but these errors were encountered: