mirror of https://github.com/Kozea/pygal.git
Browse Source
An XML filter can be defined as a function taking a single argument, supplied as the 'svg' atribute of the graph (an lxml etree?) and returning a modified version/copy thereof. XML filters can be added to a plot using the new plot method add_xml_filter(func). The hook that executes any filters added to the plot, executes them in order immediately prior to conversion to a string, in the class method svg.render, and also immediately prior to returning a copy of the tree in BaseGraph.render_treepull/78/head
James Dominy
11 years ago
3 changed files with 14 additions and 3 deletions
Loading…
Reference in new issue