In my iOS app in Objective-C I used Charts library for implementing chart, but I need to increase the space between x-axis line and label (marked in red line on image) how to increase it. please help.
For above XAxis
and leftAxis
you need to change offset
property of axis as mention below :
//For left Axis
lineChartView.leftAxis.xOffset = 20.0;
//For XAxis
lineChartView.xAxis.yOffset = 20.0;
By this you can achieve offset in your Axis
.
Check this image with 20.0 offset value:
Hope this will helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.