iOS Core Plot CPTAxisLabel alignment to CPTPlot

眉间皱痕 提交于 2019-12-01 21:54:59

Either set the barOffset to zero (0) and make the bar locations the same as the tick locations or adjust the bar locations returned by the datasource to account for the barOffset.

The CPTAxis class has a property labelOffset which, according to the documentation, is "The offset distance between the tick marks and labels. "

There are a lot of ways to custom labeling from the CPTAxis class, you should check : https://core-plot.googlecode.com/hg-history/efa73ee50d8edfd0e1d4294cf4bd2c07d9f8af77/documentation/html/iOS/interface_c_p_t_axis.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!