diff --git a/docs/documentation/basic_customizations.rst b/docs/documentation/basic_customizations.rst index 8bd6817..f39ba5f 100644 --- a/docs/documentation/basic_customizations.rst +++ b/docs/documentation/basic_customizations.rst @@ -2,9 +2,6 @@ Basic customizations ==================== -.. contents:: - - How to customize: ----------------- @@ -615,5 +612,3 @@ Text to display instead of the graph when no data is supplied: chart = pygal.Line(no_data_text='No result found') chart.add('line', []) - -Next: `Interpolations `_ diff --git a/docs/documentation/builtin_styles.rst b/docs/documentation/builtin_styles.rst index 6106bac..b1356bb 100644 --- a/docs/documentation/builtin_styles.rst +++ b/docs/documentation/builtin_styles.rst @@ -3,8 +3,6 @@ Built-in Styles pygal provides 14 built-in styles: -.. contents:: - Default ------- diff --git a/docs/documentation/chart_types.rst b/docs/documentation/chart_types.rst index 9a2dd9c..8dbd9e8 100644 --- a/docs/documentation/chart_types.rst +++ b/docs/documentation/chart_types.rst @@ -1,9 +1,8 @@ Chart types =========== -pygal provides 10 kinds of charts: +pygal provides various kinds of charts: -.. contents:: Line charts ----------- @@ -813,4 +812,3 @@ You can also specify a number for a region and use a department to region aggreg '976': 212645 })) -Next: `Styles `_ diff --git a/docs/documentation/custom_styles.rst b/docs/documentation/custom_styles.rst index 35cdfc2..7d4a367 100644 --- a/docs/documentation/custom_styles.rst +++ b/docs/documentation/custom_styles.rst @@ -3,8 +3,6 @@ Custom Styles pygal provides 2 ways to customize styles: -.. contents:: - Using Style class ----------------- @@ -107,5 +105,3 @@ NB: Now the css rules are prefixed by an unique id, to prevent collisions when i chart.add('E', [7, 4, 2, 1, 2, 10, 0]) -Next: `Basic customizations `_ - diff --git a/docs/documentation/first_steps.rst b/docs/documentation/first_steps.rst index 3d5043e..69f6cf2 100644 --- a/docs/documentation/first_steps.rst +++ b/docs/documentation/first_steps.rst @@ -59,5 +59,3 @@ And finally add a title and some labels: bar_chart.add('Fibonacci', [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55]) bar_chart.add('Padovan', [1, 1, 1, 2, 2, 3, 4, 5, 7, 9, 12]) - -Next: `Charts types `_ diff --git a/docs/documentation/index.rst b/docs/documentation/index.rst index a561a80..6f2e0c5 100644 --- a/docs/documentation/index.rst +++ b/docs/documentation/index.rst @@ -12,7 +12,4 @@ User documentation sparks metadata other_customizations - builtin_styles - parametric_styles - custom_styles web diff --git a/docs/documentation/interpolations.rst b/docs/documentation/interpolations.rst index 0d45e63..1abf9d8 100644 --- a/docs/documentation/interpolations.rst +++ b/docs/documentation/interpolations.rst @@ -2,9 +2,6 @@ Interpolations ============== -.. contents:: - - Without interpolation: ---------------------- @@ -111,5 +108,3 @@ You can change the resolution of the interpolation with the help of `interpolati chart = pygal.Line(interpolate='quadratic', interpolation_precision=3) chart.add('line', [1, 5, 17, 12, 5, 10]) - -Next: `Sparklines `_ diff --git a/docs/documentation/metadata.rst b/docs/documentation/metadata.rst index f44df5b..7886b0b 100644 --- a/docs/documentation/metadata.rst +++ b/docs/documentation/metadata.rst @@ -1,8 +1,6 @@ Metadata ======== -.. contents:: - Labels ------ @@ -90,5 +88,3 @@ You can specify a dictionary to xlink with all links attributes: 'target': '_self'} }]) - -Next: `Other customizations `_ diff --git a/docs/documentation/other_customizations.rst b/docs/documentation/other_customizations.rst index 30ce8e9..f312185 100644 --- a/docs/documentation/other_customizations.rst +++ b/docs/documentation/other_customizations.rst @@ -1,8 +1,6 @@ Other customizations ==================== -.. contents:: - Logarithmic ----------- diff --git a/docs/documentation/parametric_styles.rst b/docs/documentation/parametric_styles.rst index 60e7816..57e1321 100644 --- a/docs/documentation/parametric_styles.rst +++ b/docs/documentation/parametric_styles.rst @@ -3,8 +3,6 @@ Parametric Styles pygal provides 5 parametric styles: -.. contents:: - Usage ----- diff --git a/docs/documentation/sparks.rst b/docs/documentation/sparks.rst index dbb8578..82db1b3 100644 --- a/docs/documentation/sparks.rst +++ b/docs/documentation/sparks.rst @@ -4,9 +4,6 @@ Sparklines pygal provides a simple way to get beautiful sparklines. -.. contents:: - - Basic ----- @@ -59,7 +56,7 @@ If you want to get a simple spartext, use the render_sparktext function: chart.add('', [1, 3, 5, 16, 13, 3, 7]) chart.render_sparktext() -→ `▁▁▂█▆▁▃` +→ ``▁▁▂█▆▁▃`` You can also specify an explicit minimum for the values: @@ -69,7 +66,6 @@ You can also specify an explicit minimum for the values: chart.add('', [1, 3, 5, 16, 13, 3, 7]) chart.render_sparktext(relative_to=0) -→ `▁▂▃█▆▂▄` +→ ``▁▂▃█▆▂▄`` -Next: `Metadata `_ diff --git a/docs/documentation/styles.rst b/docs/documentation/styles.rst index 93c9e6c..345773a 100644 --- a/docs/documentation/styles.rst +++ b/docs/documentation/styles.rst @@ -3,6 +3,9 @@ Styles There are three ways to style the charts: -- Using `built-in themes `_ -- Using `parametric themes `_ -- Using `custom themes `_ +.. toctree:: + :maxdepth: 2 + + builtin_styles + parametric_styles + custom_styles diff --git a/docs/documentation/web.rst b/docs/documentation/web.rst index d31bf98..45e791a 100644 --- a/docs/documentation/web.rst +++ b/docs/documentation/web.rst @@ -1,8 +1,6 @@ Embedding in a web page ======================= -.. contents:: - Within an embed tag ------------------- diff --git a/pygal/css/graph.css b/pygal/css/graph.css index 4144104..d6b1e9d 100644 --- a/pygal/css/graph.css +++ b/pygal/css/graph.css @@ -66,7 +66,7 @@ stroke-dasharray: 6,6; } {{ id }}.axis text.major { - font-weight: bold; + stroke-width: .25px; } {{ id }}.horizontal .axis.y .guide.line, diff --git a/pygal/style.py b/pygal/style.py index 33ca6e3..26f4b1f 100644 --- a/pygal/style.py +++ b/pygal/style.py @@ -304,13 +304,13 @@ SolidColorStyle = Style( RTDStyle = Style( background='#fcfcfc', plot_background='#ffffff', - foreground='#404040', - foreground_light='#202020', - foreground_dark='#606060', + foreground='#707070', + foreground_light='#404040', + foreground_dark='#a0a0a0', opacity='.8', opacity_hover='.9', transition='400ms ease-in', - colors=[colors.rotate('#2980b9', i * 30) for i in range(16)]) + colors=[colors.rotate('#2980b9', i * 50) for i in range(16)]) styles = {'default': DefaultStyle,