diff --git a/pygal/css/graph.css b/pygal/css/graph.css index d8e1297..78bfa25 100644 --- a/pygal/css/graph.css +++ b/pygal/css/graph.css @@ -54,11 +54,11 @@ } {{ id }}.axis .guide.line { - stroke-dasharray: 4,4; + stroke-dasharray: {{ style.guide_stroke_dasharray }}; } {{ id }}.axis .major.guide.line { - stroke-dasharray: 6,6; + stroke-dasharray: {{ style.major_guide_stroke_dasharray }}; } {{ id }}.horizontal .axis.y .guide.line, diff --git a/pygal/style.py b/pygal/style.py index 2545a7f..263169d 100644 --- a/pygal/style.py +++ b/pygal/style.py @@ -33,6 +33,7 @@ class Style(object): foreground = 'rgba(0, 0, 0, .87)' foreground_strong = 'rgba(0, 0, 0, 1)' foreground_subtle = 'rgba(0, 0, 0, .54)' + # Monospaced font is highly encouraged font_family = 'Consolas, "Liberation Mono", Menlo, Courier, ' 'monospace' @@ -53,6 +54,9 @@ class Style(object): legend_font_size = 14 no_data_font_size = 64 + # Guide line stroke style + guide_stroke_dasharray = '4,4' + major_guide_stroke_dasharray = '6,6' opacity = '.7' opacity_hover = '.8'