function hook_chart_views_alter in Google Chart Tools: Image Charts 7
Alter a views chart before it is rendered.
This hook is executed before chart_alter() so additional changes may be made in chart_alter()
Parameters
$chart: An associative array defining a chart.
$view: The name of the view to which the chart belongs.
$display: The name of the display to which the chart belongs.
See also
chart_alter()
1 invocation of hook_chart_views_alter()
- chart_views_plugin_style_chart::render in chart_views/
views/ chart_views_plugin_style_chart.inc - Render the display in this style.
File
- chart_views/
chart_views.api.php, line 23 - Provides API documentation.
Code
function hook_chart_views_alter(&$chart, $view, $display) {
$chart['#title'] .= ' (altered)';
}