Changeset 217767
- Timestamp:
- 03/15/2010 04:32:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cyclopress/branches/cp2/classes/cy_google_charts.php
r217765 r217767 85 85 */ 86 86 function build_chart(&$chart) { 87 87 88 echo 'build_chart: ' . memory_get_usage() . '</br >'; 89 88 90 global $wpdb; 89 91 $table_name = $wpdb->prefix . "cy_rides"; … … 120 122 // send off to google and cache the images 121 123 // check if it's a line chart or a bar chart and retrieve the right one 124 122 125 $chart->url = $this->get_line_chart($x_data, $y_data, false, true); 123 126 $chart->thumb_url = $this->get_line_chart($x_data, $y_data, true, true); … … 125 128 // save the chart's new hash and url 126 129 $chart->save(); 130 131 echo 'build_chart done: ' . memory_get_usage() . '</br >'; 127 132 128 133 return $chart->url; … … 141 146 */ 142 147 public function get_line_chart(&$x_data, &$y_data, $is_thumb=false, $is_by_date=true) { 148 149 echo 'get_line_chart: ' . memory_get_usage() . '</br >'; 143 150 144 151 // no data? get out of here...
Note: See TracChangeset
for help on using the changeset viewer.