I am trying to create a chart like below, For my android application using MPAndroidChart. I am unable to figure out, how to make the bar chart's edges as round edged. It always comes as square edge.
So can you please suggest me what I should do?
In advance thanks for your help.
I've implemented a solution to achieve that straight on the library itself.
Firstly create an attrs.xml adding a new attribute to use on your chart view. Something like this:
Then edit the method called drawDataSet on the BarChartRenderer:
By doing this you're changing the rectangle but not its highlight, so change this bit of code on the drawHighlighted method:
To get the attribute from the xml file onto this render you need to add a set method as well:
Finally create a new constructor on the BarChart object to grab the radius attribute:
And voila! Happy coding :)