pygal.graph.public module

pygal public api functions

class pygal.graph.public.PublicApi(config=None, **kwargs)[source]

Bases: pygal.graph.base.BaseGraph

Chart public functions

add(title, values, **kwargs)[source]

Add a serie to this graph

add_xml_filter(callback)[source]

Add an xml filter for in tree post processing

render(is_unicode=False, **kwargs)[source]

Render the graph, and return the svg string

render_data_uri(**kwargs)[source]

Output a base 64 encoded data uri

render_django_response(**kwargs)[source]

Render the graph, and return a Django response

render_in_browser(**kwargs)[source]

Render the graph, open it in your browser with black magic

render_pyquery(**kwargs)[source]

Render the graph, and return a pyquery wrapped tree

render_response(**kwargs)[source]

Render the graph, and return a Flask response

render_sparkline(**kwargs)[source]

Render a sparkline

render_sparktext(relative_to=None)[source]

Make a mini text sparkline from chart

render_table(**kwargs)[source]

Render the data as a html table

render_to_file(filename, **kwargs)[source]

Render the graph, and write it to filename

render_to_png(filename=None, dpi=72, **kwargs)[source]

Render the graph, convert it to png and write it to filename

render_tree(**kwargs)[source]

Render the graph, and return (l)xml etree