While writing Quotes, I was very unsatisfied with the options available for Android chart views. A lot of them are very feature rich, but cumbersome and broken. When I say broken, I’m referring to the guidelines set out by Google for custom views:
- Conform to Android standards
- Provide custom styleable attributes that work with Android XML layouts
- Send accessibility events
- Be compatible with multiple Android platforms.
Instead of settling for what was out there, I wrote a custom chart view to do what I wanted while conforming to Google’s standards. It’s not as full featured as other chart views out there, but it has all the features I needed at the time I wrote it. It’s meant to be customizable and extended, and I think the result was quite nice.
I just pushed the code for ChartView to my AndroidUtils library on Github, so go check it out!
Update: A few have asked for an example of how to use ChartView, so I’ve added one to the wiki.