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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -