From 034f42775a90c421c4ac9fa3fe8cfd7612d8ce1e Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Mon, 20 Jul 2015 10:20:22 +0200 Subject: [PATCH] Minor style tweaks --- demo/moulinrouge/tests.py | 6 +++--- pygal/css/graph.css | 3 ++- pygal/css/style.css | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/demo/moulinrouge/tests.py b/demo/moulinrouge/tests.py index 203b870..49192c6 100644 --- a/demo/moulinrouge/tests.py +++ b/demo/moulinrouge/tests.py @@ -48,7 +48,7 @@ def get_test_routes(app): @app.route('/test/bar_links') def test_bar_links(): - bar = Bar(style=styles['default']( + bar = StackedLine(style=styles['default']( font_family='googlefont:Raleway')) bar.js = ('http://l:2343/2.0.x/pygal-tooltips.js',) bar.title = 'Wow ! Such Chart !' @@ -59,8 +59,8 @@ def get_test_routes(app): {'value': 10, 'label': 'Ten', 'xlink': 'http://google.com?q=10'}, - {'value': 25, - 'label': 'Twenty is a good number yada yda yda yada yada', + {'value': 20, + 'label': 'Twenty is a good number yada yda yda yada yadaaaaaaaaaaaaaaaaaaaaaa', 'xlink': 'http://google.com?q=20'}, 30, {'value': 40, diff --git a/pygal/css/graph.css b/pygal/css/graph.css index d8e1297..54d556b 100644 --- a/pygal/css/graph.css +++ b/pygal/css/graph.css @@ -112,7 +112,8 @@ } {{ id }}.tooltip rect { - fill-opacity: 0.8; + fill-opacity: .95; + stroke-width: .5; } {{ id }}.tooltip text { diff --git a/pygal/css/style.css b/pygal/css/style.css index 97ad81c..a6749c1 100644 --- a/pygal/css/style.css +++ b/pygal/css/style.css @@ -131,7 +131,7 @@ } {{ id }}.tooltip .value { - font-size: 2em; + font-size: 1.5em; } {{ id }}.map-element {