def render(self, **kwargs):
vegalite_major_version = self._get_vegalite_major_versions(self.data)<EOL>self._parent.html.add_child(Element(Template("""<STR_LIT>""").render(this=self, kwargs=kwargs)), name=self.get_name())<EOL>figure = self.get_root()<EOL>assert isinstance(figure, Figure), ('<STR_LIT>'<EOL>'<STR_LIT>')<EOL>figure.header.add_child(Element(Template("""<STR_LIT>""").render(this=self, **kwargs)), name=self.get_name())<EOL>if vegalite_major_version == '<STR_LIT:1>':<EOL><INDENT>self._embed_vegalite_v1(figure)<EOL><DEDENT>elif vegalite_major_version == '<STR_LIT:2>':<EOL><INDENT>self._embed_vegalite_v2(figure)<EOL><DEDENT>elif vegalite_major_version == '<STR_LIT:3>':<EOL><INDENT>self._embed_vegalite_v3(figure)<EOL><DEDENT>else:<EOL><INDENT>self._embed_vegalite_v2(figure)<EOL><DEDENT>
Renders the HTML representation of the element.