[英]Space between axis line and axis label ios MPChart
在我的Objective-C iOS應用程序中,我使用了Charts庫來實現圖表,但是我需要增加x軸線和標簽(在圖像上用紅線標記)之間的間距,以及如何增加它。 請幫忙。
對於上面的XAxis和leftAxis您需要如下所述更改axis的offset屬性:
XAxis
leftAxis
offset
//For left Axis lineChartView.leftAxis.xOffset = 20.0; //For XAxis lineChartView.xAxis.yOffset = 20.0;
這樣,您可以在Axis實現偏移。
Axis
使用20.0偏移值檢查此圖像:
希望這會有所幫助。
[英]Line chart with fix X axis label like healthkit graph in iOS
[英]lineChartView axis label add extra line on the label
[英]CorePlot 1.3: setting space between axis and labels
[英]Reduce space between barchart and x-axis
[英]Setting axis line in core plot in ios
[英]Axis label modification in Coreplot
[英]How to set a custom x axis 0 label in charts ios
[英]iOS Core Plot: Adjust y axis padding to label size
[英]iOS Charts extra space and adding x-axis labels
[英]Core Plot: Increase space between ticks on the x-axis?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.