def render(self, **kwargs):
self.json = json.dumps(self.data)<EOL>self._parent.html.add_child(Element(Template("""<STR_LIT>""").render(this=self, kwargs=kwargs)), name=self.get_name())<EOL>self._parent.script.add_child(Element(Template("""<STR_LIT>""").render(this=self)), 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>figure.header.add_child(<EOL>JavascriptLink('<STR_LIT>'),  <EOL>name='<STR_LIT>')<EOL>figure.header.add_child(<EOL>JavascriptLink('<STR_LIT>'),  <EOL>name='<STR_LIT>')<EOL>figure.header.add_child(<EOL>JavascriptLink('<STR_LIT>'),<EOL>name='<STR_LIT>')<EOL>figure.script.add_child(<EOL>Template("""<STR_LIT>"""),  <EOL>name='<STR_LIT>')<EOL>
Renders the HTML representation of the element.