简体   繁体   中英

Space between axis line and axis label ios MPChart

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM