【问题标题】:how to change the graph title color如何更改图表标题颜色
【发布时间】:2018-02-21 23:47:22
【问题描述】:

我正在使用 core plot 。当我尝试更改图表标题颜色时,我发现它是只读的! 我有一些尝试,但现在我最好问问 stackoverflow。

        CPTMutableTextStyle *titleTextStyle = [CPTMutableTextStyle textStyle];
titleTextStyle.color = COLORBALKEN;
barLineChart.titleTextStyle = titleTextStyle;


#define COLORBALKEN [CPTColor colorWithComponentRed:211.0/255 green:104.0/255 blue:240.0/255 alpha:1]

【问题讨论】:

标签: objective-c core-plot


【解决方案1】:

我发布的这段代码没有任何问题。

我后来在代码中出现了一些错误,将颜色改回了我不想要的领子。真丢人。

可能是一些寻找改变标题颜色的人。此代码有效!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-01-29
    • 2015-01-09
    • 1970-01-01
    • 1970-01-01
    • 2022-10-03
    • 2016-09-13
    • 1970-01-01
    • 2023-03-06
    相关资源
    最近更新 更多