def gen(self, slug, name, dataobj, xfield, yfield, time_unit=None,<EOL>chart_type="<STR_LIT>", width=<NUM_LIT>,<EOL>height=<NUM_LIT>, color=Color(), size=Size(),<EOL>scale=Scale(zero=False), shape=Shape(), filepath=None,<EOL>html_before="<STR_LIT>", html_after="<STR_LIT>"):
chart_obj = self.serialize(dataobj, xfield, yfield, time_unit,<EOL>chart_type, width, height, color, size, scale, shape)<EOL>html = self.html(slug, name, chart_obj, filepath,<EOL>html_before, html_after)<EOL>return html<EOL>
Generates an html chart from either a pandas dataframe, a dictionnary,
a list or an Altair Data object and optionally write it to a file