You are here

function chart_url in Google Chart Tools: Image Charts 6

Same name and namespace in other branches
  1. 7 chart.module \chart_url()

Returns the chart URL.

Parameters

array $chart:

Return value

mixed

  • Success: Chart image markup

    • Failure: FALSE

File

./chart.module, line 156
Provides Google chart API integration.

Code

function chart_url($chart) {
  if ($chart_query_string = chart_build($chart)) {
    return CHART_URI . '?' . $chart_query_string;
  }
  else {
    return FALSE;
  }
}