Skip to content

Commit

Permalink
Merge pull request #419 from eetuko/guide_stroke_color
Browse files Browse the repository at this point in the history
Added parametric guide lines colors
  • Loading branch information
paradoxxxzero committed Feb 6, 2018
2 parents 9feda56 + 34364f1 commit 6c93e5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pygal/css/graph.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@

{{ id }}.axis .guide.line {
stroke-dasharray: {{ style.guide_stroke_dasharray }};
stroke: {{ style.guide_stroke_color }};
}

{{ id }}.axis .major.guide.line {
stroke-dasharray: {{ style.major_guide_stroke_dasharray }};
stroke: {{ style.major_guide_stroke_color }};
}

{{ id }}.horizontal .axis.y .guide.line,
Expand Down
2 changes: 2 additions & 0 deletions pygal/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class Style(object):
# Guide line dash array style
guide_stroke_dasharray = '4,4'
major_guide_stroke_dasharray = '6,6'
guide_stroke_color = 'black'
major_guide_stroke_color = 'black'

opacity = '.7'
opacity_hover = '.8'
Expand Down

0 comments on commit 6c93e5e

Please sign in to comment.