function d3_views_plugin_style_d3::render in d3.js 7
Render the display in this style.
Overrides views_plugin_style::render
See also
template_preprocess_d3_views_view_d3().
File
- modules/
d3_views/ views/ plugins/ d3_views_plugin_style_d3.inc, line 299 - Contains the d3 style plugin.
Class
- d3_views_plugin_style_d3
- Style plugin to render a d3 visualization
Code
function render() {
if ($this
->uses_row_plugin() && empty($this->row_plugin)) {
debug('views_plugin_style_default: Missing row plugin');
return;
}
$library = $this
->getLibrary();
$this->controller
->setLibrary($library);
// This is views theming, send this over to views preprocess.
return theme($this
->theme_functions(), array(
'view' => $this->view,
'options' => $this->options,
'rows' => $this
->render_fields($this->view->result),
));
}