【问题标题】:Weird border on Core Plot Pie Chart核心图饼图上的奇怪边框
【发布时间】:2012-06-02 18:46:17
【问题描述】:

Core Plot 为什么要画这两条线?

这就是我设置图表的方式:

// setup the pie chart
graph = [[CPTXYGraph alloc] initWithFrame:[_pieView bounds]];
[_pieView setHostedGraph:graph];

CPTPieChart *pieChart = [[CPTPieChart alloc] init];
[pieChart setDataSource:self];
[pieChart setPieRadius:75.0];
[pieChart setIdentifier:@"PieChart1"];
[pieChart setStartAngle:M_PI_4];
[pieChart setSliceDirection:CPTPieDirectionClockwise];

[graph addPlot:pieChart];

_pieViewCPTGraphHostingView*

如何去除两条黑线?我尝试做How do remove the border around a core-plot graph 中描述的操作,但无济于事。

【问题讨论】:

    标签: ios core-plot pie-chart


    【解决方案1】:

    这不是边框,而是CPTXYGraph 附带的默认坐标区。删除它们只需一行代码:

    graph.axisSet = nil;
    

    【讨论】:

    • 啊,我想这很有道理......我不知何故忘记了我使用CPTXYGraph 来保存饼图。无论如何,谢谢:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-12-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多