From 63ba3014f77a86cc3483591cc37e163055256970 Mon Sep 17 00:00:00 2001 From: smalawi Date: Sat, 15 Jul 2017 18:56:23 +0300 Subject: [PATCH] Added dot_opacity style option; fixes #387 --- pygal/css/graph.css | 3 ++- pygal/style.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pygal/css/graph.css b/pygal/css/graph.css index a638fb7..3bf1006 100644 --- a/pygal/css/graph.css +++ b/pygal/css/graph.css @@ -105,7 +105,8 @@ {{ id }}.dot { stroke-width: 1px; - fill-opacity: 1; + fill-opacity: {{ style.dot_opacity }}; + stroke-opacity: {{ style.dot_opacity }}; } {{ id }}.dot.active { diff --git a/pygal/style.py b/pygal/style.py index 1b01984..7f83886 100644 --- a/pygal/style.py +++ b/pygal/style.py @@ -69,6 +69,8 @@ class Style(object): stroke_opacity = '.8' stroke_opacity_hover = '.9' + dot_opacity = '1' + transition = '150ms' colors = ( '#F44336', # 0