gpt4 book ai didi

iphone - CorePlot - X 轴 - iPhone

转载 作者:行者123 更新时间:2023-12-03 21:20:51 27 4
gpt4 key购买 nike

我正在使用 coreplot 在 iPhone 中显示图表。我想在绘图区域中正确显示标签(10,20,30 ..)。目前,条形图和标签以不均匀的格式显示。如何解决这个问题?

代码:

x.axisLineStyle = nil;
x.majorTickLineStyle = nil;
x.minorTickLineStyle = nil;
x.majorIntervalLength = CPDecimalFromString(@"10");
x.orthogonalCoordinateDecimal = CPDecimalFromString(@"0");
x.title = @"Age Limit";
x.titleLocation = CPDecimalFromFloat(30.0f);
x.titleOffset = 35.0f;
x.labelRotation = M_PI/2;![enter image description here][1]
x.labelOffset = 5.0f;

enter image description here

最佳答案

我要检查的两件事:

  1. 确保条形图的 barOffset 属性为零 (0)。

  2. 验证数据源返回的位置是否符合您的预期(0、10、20 等)。

埃里克

关于iphone - CorePlot - X 轴 - iPhone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5001523/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com