From 8793b71004fb37b051d3edcabef77892f5ad02db Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 7 Dec 2014 21:15:29 +1000 Subject: [PATCH] Add ability to edit single margins --- pygal/config.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pygal/config.py b/pygal/config.py index 2de0aa4..0f7c09b 100644 --- a/pygal/config.py +++ b/pygal/config.py @@ -242,6 +242,22 @@ class Config(CommonConfig): 20, int, "Look", "Margin around chart") + margin_top = Key( + 20, int, "Look", + "Margin around top of chart") + + margin_right = Key( + 20, int, "Look", + "Margin around right of chart") + + margin_bottom = Key( + 20, int, "Look", + "Margin around bottom of chart") + + margin_left = Key( + 20, int, "Look", + "Margin around left of chart") + tooltip_border_radius = Key(0, int, "Look", "Tooltip border radius") inner_radius = Key(