Trying the methods and updates in
http://code.google.com/apis/chart/docs/post_requests.html

Also trying the dynamic data method here
http://stotastic.com/wordpress/2010/06/yahoo-finance-and-google-charts-mashup-using-php/

In both cases I can get the chart to work w/ STATIC data. However,
whenever I try to include () another php script and then hand an array
to this part of described php

include (myscript.php);
//myscript.php calcuates a 1-D array called $mydata

  $chd = 't:';
  for ($i = 0; $i < 150; ++$i) {
    $data =$mydata[i];
    $chd .= $data . ',';
  }
  $chd = substr($chd, 0, -1);

 // Add data, chart type, chart size, and scale to params.
  $chart = array(
    'cht' => 'lc',
    'chs' => '600x200',
    'chds' => '0,100000',
    'chd' => $chd);

  // Send the request, and print out the returned bytes.
  $context = stream_context_create(
    array('http' => array(
      'method' => 'POST',
      'content' => http_build_query($chart))));
  fpassthru(fopen($url, 'r', false, $context));

I strike out...I get nothing back.

If I try to pull in data directly from say Yahoo Finance, same thing.
print_r shows the *subsequent* arrays $chd to be empty

What am I doing wrong?

Thanx!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en.

Reply via email to