Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9302349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:14:07+00:00 2026-06-18T23:14:07+00:00

CPTXYGraph *graph = [[CPTXYGraph alloc]initWithFrame:self.hostingView.frame]; graph.borderColor = [CPTColor whiteColor].cgColor; graph.paddingTop = 0.0f; graph.paddingRight =

  • 0
CPTXYGraph *graph   = [[CPTXYGraph alloc]initWithFrame:self.hostingView.frame];
graph.borderColor   = [CPTColor whiteColor].cgColor;
graph.paddingTop    = 0.0f;
graph.paddingRight  = 0.0f;
graph.paddingLeft   = 0.0f;
graph.paddingBottom = 0.0f;
self.hostingView.hostedGraph = graph;
graph.axisSet = nil;


//Apply for theme to graph
self.graphTheme = [CPTTheme themeNamed:kCPTPlainWhiteTheme];
[graph applyTheme:self.graphTheme];
[graph release];

CPTPieChart *pieChart = [[CPTPieChart alloc]init];
pieChart.identifier = @"OverView";
pieChart.dataSource = self;
pieChart.sliceDirection = CPTPieDirectionClockwise;
pieChart.pieRadius = ((self.hostingView.frame.size.height  / 2) - 5);
pieChart.startAngle = M_PI;
CPTGraph *tempGraph = self.hostingView.hostedGraph;
    [tempGraph addPlot:pieChart];
[pieChart release];

For this code i am getting black colored border ,i thought that is due to graph axisSet but i don’t how to remove.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T23:14:08+00:00Added an answer on June 18, 2026 at 11:14 pm

    If what you’re talking about is the border box that appears around the entire graph, I would say use this code after the statement [graph applyTheme:self.graphTheme];:

    graph.plotAreaFrame.borderLineStyle = nil;
    

    This removes the border completely from the graph area.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

- (void)viewDidLoad { graph = [[CPTXYGraph alloc] initWithFrame: self.view.bounds]; CPTGraphHostingView *hostingView = (CPTGraphHostingView *)self.view;
Does anybody know a way to make the axis fixed on a CPTXYGraph when
I'm building a graph with core plot, that works fine except that I do
I'm using coreplot on IOS. I'm displaying in the same graph a scatter plot
I'm making a graph for my iOS app, using the Core Plot library However
I am using core plot frame work ,i am refresh the view after some
I am using the Coreplot API to create a bar graph. When I try
I'm making a graph for an iOS app, using Core Plot 1.0 and iOS
The bars on my barplots aren't spread out across the whole graph, rather they
I am working with the core-plot framework to create a bar graph with a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.