Skip to content

Commit

Permalink
Merge pull request #389 from smalawi/dot-alpha
Browse files Browse the repository at this point in the history
Added dot_opacity style option; fixes #387
  • Loading branch information
paradoxxxzero committed Feb 6, 2018
2 parents a42cf70 + 63ba301 commit 1594807
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygal/css/graph.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@

{{ id }}.dot {
stroke-width: 1px;
fill-opacity: 1;
fill-opacity: {{ style.dot_opacity }};
stroke-opacity: {{ style.dot_opacity }};
}

{{ id }}.dot.active {
Expand Down
2 changes: 2 additions & 0 deletions pygal/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ class Style(object):
stroke_opacity_hover = '.9'
stroke_width_hover = '4'

dot_opacity = '1'

transition = '150ms'
colors = (
'#F44336', # 0
Expand Down

0 comments on commit 1594807

Please sign in to comment.