function webform_charts_component_chart in Webform Charts 7
Public function for rendering a chart for a particular Webform component.
Parameters
object $node: The node whose components are being analyzed.
array $component: The component whose data is being analyzed.
Return value
array A renderable chart array.
1 call to webform_charts_component_chart()
- webform_charts_tokens in ./
webform_charts.tokens.inc - Implements hook_tokens().
File
- ./
webform_charts.module, line 82 - Enhances the "Analyze" section of Webform nodes with customizable charts.
Code
function webform_charts_component_chart($node, $component) {
module_load_include('inc', 'webform_charts', 'includes/webform_charts.pages');
$analysis_data = webform_component_invoke($component['type'], 'analysis', $component);
return _webform_charts_component_chart($node, $component, $analysis_data);
}