android - MPAndroidChart BarChart bars getting cut off -


i using mpandroidchart drawing chart in android app.

one requirement need bar chart starting non-zero y position, suggested in this. had using candlestickchart same. bars getting cut off @ start , end.

is there way give padding @ start , end of graph not cut off.

note: xaxis values "4nov", "5nov"...

after trying many things, found out solution,

graph.getxaxis().setaxismaximum(candledata.getxmax() + 0.25f); graph.getxaxis().setaxisminimum(candledata.getxmin() - 0.25f);


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -