MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

How to add icon and label in xAxis values of the horizontal bar chart?

Open shafayatb opened this issue 3 years ago • 2 comments

Hello, I want to add label and icon to the xAxis values in horizontal bar chart like the following image, Screenshot 2022-02-14 at 9 28 48 PM

So far I have tired by adding a custom bar icon renderer by using this class https://gist.github.com/meyerlasse/d560a7be32dfbcefa457c15f1ea6607f but it doesn't seem to work and it is giving me this error, Attempt to read from null array.

shafayatb avatar Feb 14 '22 15:02 shafayatb

This repository's issue tracker is only for bugs and feature requests. The maintainers ask that you refrain from asking questions about how to use MPAndroidChart through the issue tracker.

Please read the documentation first, then ask all your questions on stackoverflow.com for the fastest answer.

TorkelV avatar Feb 16 '22 13:02 TorkelV

In your scenario, I suggest you can use RecyclerView or other customized views to implement it. Your design has a huge difference from the MPChart default style, so customizing this lib to gratify your design is not easy.

VinsonGuo avatar Feb 17 '22 08:02 VinsonGuo