From a2a3135bf88483fb147f495242d7746346dc46ab Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Tue, 23 Feb 2016 14:44:59 +0100 Subject: [PATCH] Reduce ci stroke width when reactive --- pygal/css/style.css | 4 ++++ pygal/svg.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pygal/css/style.css b/pygal/css/style.css index d2016a3..0aa5c15 100644 --- a/pygal/css/style.css +++ b/pygal/css/style.css @@ -104,6 +104,10 @@ stroke-width: 4; } +{{ id }}.ci .reactive.active { + stroke-width: 1.5; +} + {{ id }}.series text { fill: {{ style.foreground_strong }}; } diff --git a/pygal/svg.py b/pygal/svg.py index f567912..cd93fc8 100644 --- a/pygal/svg.py +++ b/pygal/svg.py @@ -16,7 +16,6 @@ # # You should have received a copy of the GNU Lesser General Public License # along with pygal. If not, see . - """Svg helper""" from __future__ import division @@ -309,13 +308,14 @@ class Svg(object): bottom = (x, low) ci = self.node(node, class_="ci") + self.node( ci, 'path', d="M%s L%s M%s L%s M%s L%s L%s M%s L%s" % tuple( map(coord_format, ( top, shr(top), top, shl(top), top, bottom, shr(bottom), bottom, shl(bottom) )) - ), class_='nofill' + ), class_='nofill reactive' ) def pre_render(self):