ios - 核心剧情: Two color axis label

标签 ios core-plot axis-labels

我们如何使用 Core Plot 获得两个颜色轴的标题。 例如:

CPTXYAxis *y = [[CPTXYAxis alloc] init];
y.title = @"Amount [Million $]";

我希望 Million $ 文本的颜色与 Amount 文本的颜色不同。

最佳答案

使用 attributedTitle 属性代替 title。这需要一个 NSAttributedString,它可以按照您想要的任何方式进行格式化。

关于ios - 核心剧情: Two color axis label,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22568610/

相关文章:

javascript - iOS 上的 Safari 涉及陈旧的 $http.get 结果

ios - 如何在每个具有唯一数据源的 UICollectionView 单元格中放置不同的 UITableView?

iphone - 如何启用 Core Plot 饼图中部分的触摸选择?

ios - 来自 NSMutableURLRequest 的 CSV 解析丢失了前 150 行

r - 使用 R 的 ggplot2 定义日期时间的第一个轴断点

ios - 避免 AVPlayer 和 UIWebView 同时播放音乐

ios - NSRangeException - 无法删除观察者

ios - 如何访问核心图中单个条的CALayer?

java - JFreeChart 自定义 x 轴标签

python - Matplotlib - 日期之间的间隔更大