You are here

function hook_chart_alter in Google Chart Tools: Image Charts 7

Same name and namespace in other branches
  1. 6 chart.api.php \hook_chart_alter()

Alter a chart before it is rendered.

Parameters

$chart: An associative array defining a chart.

See also

chart_build()

1 invocation of hook_chart_alter()
chart_build in ./chart.module
Build chart query data.

File

./chart.api.php, line 16
Provides API documentation.

Code

function hook_chart_alter(&$chart) {
  $chart['#title'] .= ' (altered)';
}