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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:36:24+00:00 2026-05-24T05:36:24+00:00

My PHP web-site generates (among other things) a pie-chart which is built with Google

  • 0

My PHP web-site generates (among other things) a pie-chart which is built with Google Chart API. I would like to give the user an option to tweet a picture with the pie chart. These are the steps I thought I should take:
1. Taking a snapshot of the div I’m displaying the pie chart in
2. U/L it to a picture sharing service.
3. twitting that link through twitter API

How can I achieve step (1)?
Would you maybe recommend a different method to implement the task I’m after?

  • 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-24T05:36:24+00:00Added an answer on May 24, 2026 at 5:36 am

    With FGC:

    <?php
    $image = file_get_contents('http://chart.googleapis.com/chart?chs=320x200&cht=bvs&chd=t:30,-60,50,140,80,-90&chds=-80,140&chxt=y');
    file_put_contents('temp.png',$image);
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use MySQL in a fairly complex web site (PHP driven). Ideally, there would
I'm working on a fairly large web site built in PHP that will potentially
I've a web site that generates kml files. An uri like this: /tokml?gid=2846 Generates
I have a Web site (PHP) that generates a CSV file (text/csv) with the
On my web site I would like to have several sub-domains. Files that create
I'm trying to host a PHP web site that was given to me. I
On various pages throughout my PHP web site and in various nested directories I
I've replaced an old PHP web site with a new ASP.NET MVC web site.
On a PHP-based web site, I want to send users a download package after
I've rewritten my family web site using JavaScript (JQuery) making Ajax calls to PHP

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.