diff --git a/CHANGELOG b/CHANGELOG index b3f4d5d..13d6fd4 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ V 1.5.0 UNRELEASED Add per serie configuration Add half pie (thanks philt2001) + Add render_table (WIP) V 1.4.6 Add support for \n separated multiline titles (thanks sirlark) diff --git a/demo/moulinrouge/__init__.py b/demo/moulinrouge/__init__.py index 3963523..359a63b 100644 --- a/demo/moulinrouge/__init__.py +++ b/demo/moulinrouge/__init__.py @@ -96,6 +96,13 @@ def create_app(): graph.add(title, values) return graph.render_response() + @app.route("/table///") + def table(type, series, config): + graph = getattr(pygal, type)(pickle.loads(b64decode(str(config)))) + for title, values in pickle.loads(b64decode(str(series))): + graph.add(title, values) + return graph.render_table() + @app.route("/sparkline/