public function d3_views_plugin_style_d3::getVis in d3.js 7
Get the current visualization by reference.
3 calls to d3_views_plugin_style_d3::getVis()
- d3_views_plugin_style_d3::aggregate in modules/
d3_views/ views/ plugins/ d3_views_plugin_style_d3.inc - Wrapper function to determine the methods to use, and execute it.
- d3_views_plugin_style_d3::draw in modules/
d3_views/ views/ plugins/ d3_views_plugin_style_d3.inc - Send the vis to d3's theme handlers.
- d3_views_plugin_style_d3::process in modules/
d3_views/ views/ plugins/ d3_views_plugin_style_d3.inc - Additional functionality on data before it is passed to d3_draw.
File
- modules/
d3_views/ views/ plugins/ d3_views_plugin_style_d3.inc, line 327 - Contains the d3 style plugin.
Class
- d3_views_plugin_style_d3
- Style plugin to render a d3 visualization
Code
public function &getVis() {
if (!$this->vis) {
$libraries = $this
->getLibraries();
$this->vis = array(
'id' => 'view-d3-vis-' . $this->view->dom_id,
'type' => $libraries[$this->options['library']]['js callback'],
);
}
return $this->vis;
}