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 6851959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:18:45+00:00 2026-05-27T01:18:45+00:00

I want to draw a pie chart with some thickness. I have generated simple

  • 0

I want to draw a pie chart with some thickness. I have generated simple 2D pie chart. is there any way to make it 3D using some concepts of CALayer and then rotating in some direction.

-(void)CreatePieChart
{

  graph = [[CPXYGraph alloc] initWithFrame: CGRectZero];    
  //CPGraphHostingView *hostingView = (CPGraphHostingView *)self.view;
  viewGraphHostingPie.hostedGraph=graph;

  CPPieChart *pieChart = [[CPPieChart alloc] init];
  pieChart.dataSource = self;
  pieChart.delegate = self;
  pieChart.pieRadius = 100.0;
  pieChart.identifier = @"PieChart1";
  pieChart.startAngle=0;

  pieChart.sliceDirection = CPPieDirectionCounterClockwise;

  NSMutableArray *ValueArray = [[NSMutableArray alloc]init];
  ValueArray = [NSArray arrayWithObjects:[NSNumber numberWithDouble:57.03],[NSNumber numberWithDouble:66.00],[NSNumber numberWithDouble:77.03],nil];
  self.pieData = ValueArray;

  CPTheme *theme = [CPTheme themeNamed:kCPDarkGradientTheme];
  [graph applyTheme:theme];

  [graph addPlot:pieChart];
  [pieChart release];

}
  • 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-05-27T01:18:46+00:00Added an answer on May 27, 2026 at 1:18 am

    It’s not clear to me what you mean by “concepts of CALayer”.

    Have you considered using a free third party solution which will give you various charts, including pie charts, out of the box? Core Plot is free.

    EDIT: Core Plot is 2D only, but you can produce a 3D effect by using shadows and/or overlay fill. See also the accepted answer here.

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

Sidebar

Related Questions

I have used to draw pie chart using canvas.. There are approximately 10 arcs
I want to draw a stock chart using Google Chart Tools. My self-written webservice
i want to create one app which draw different charts like pie chart, line
i am using core plot to draw pie chart and following text Error 10
I want to draw dynamic Pie Chart in Ipad which takes values from database
I want to draw something like a pie chart segment filled with a certain
I want to draw some lines and rectangles on a panel. Sometimes it does
I want to draw some listview items disabled and would like to mimic the
I want to draw this in my view to draw this line, I have
I want to draw UIButton in following shape : I have cut the image,

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.