'Build all the variables that will be passed into the renderer.'

def _build_render_vars(self, config, trans=None, **kwargs):

    render_vars = {}
    render_vars.update(visualization_name=self.name, visualization_display_name=self.config['name'], title=kwargs.get('title', None), saved_visualization=None, visualization_id=None, query=kwargs)
    config = self._build_config(config, trans=trans, **kwargs)
    render_vars['config'] = config
    resources = self._config_to_resources(trans, config)
    render_vars.update(resources)
    return render_vars
