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

  • Home
  • SEARCH
  • 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 7730985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:21:59+00:00 2026-06-01T06:21:59+00:00

Hi every body i am new in iPhone application development. In my application need

  • 0

Hi every body i am new in iPhone application development. In my application need Piechart so i am used google chart api i got that piechart image. but it displayed static only. how to give value in this url for creating dynamic piechart.

How to pass the value for chart, in this below url.

NSString* myurl=@"http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300x225&cht=p&chd=s:Uf9a&chdl=30°|40°|50°|60°";
NSString *theurl=[myurl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

Below is my corresponding code:

NSMutableURLRequest *theRequest=[NSMutableURLRequest requestWithURL:[NSURL URLWithString:theurl] cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                    timeoutInterval:60.0];                                              

NSURLResponse* response;
NSError* error;
NSData *imageData=[NSURLConnection sendSynchronousRequest:theRequest returningResponse:&response error:&error];
NSLog(@"%@",error); 
NSLog(@"%@",response);
NSLog(@"%@",imageData); 

UIImage *myimage = [[UIImage alloc] initWithData:imageData];

graphimage.image=myimage;
  • 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-01T06:22:01+00:00Added an answer on June 1, 2026 at 6:22 am

    Hey you have to put your own input in the url itself but you need to know the parameters and what for it is used. check this API doc to know about that parameters
    http://code.google.com/apis/chart/image/docs/making_charts.html

    http://chart.apis.google.com/chart?chf=bg,s,67676700&chs=300×225&cht=p&chd=s:Uf9a&chdl=30°|40°|50°|60°

    In this url change the chf chs value whichever you want.

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

Sidebar

Related Questions

hi every body I'm trying to open an image in a new window ,using
Hi every body iam working with an Android application which contains a Google Map
every body! I am new to zend framework, I am working on ajax based
Every sample that I've seen for nServiceBus has used concrete class for IOC property
In my game every 2 seconds I create a new body and then I
I'm creating an API that is primarily accessed by JavaScript clients, so every action
hi every body i'm new to xercses C++dom parser.can anyone tell me can we
Every page on my site has multiple body classes that I use CSS selectors
I have a rabbitmq queue subscriber that spins up a new thread every time
I want to report sth every new month via email. How can i do

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.