From 978cf2cd47786a16cd25b5d41b74acfb0b4cf5ac Mon Sep 17 00:00:00 2001 From: Florian Mounier Date: Fri, 23 Mar 2012 17:50:54 +0100 Subject: [PATCH] Minor fixes --- pages/basic_customizations.rst | 16 ++-------------- pages/documentation.rst | 4 ++-- pages/other_customizations.rst | 3 +++ 3 files changed, 7 insertions(+), 16 deletions(-) diff --git a/pages/basic_customizations.rst b/pages/basic_customizations.rst index 0363ed4..259621c 100644 --- a/pages/basic_customizations.rst +++ b/pages/basic_customizations.rst @@ -99,21 +99,9 @@ You can also set `explicit_size` to True to add size attributes to the svg tag. Scaling ------- -``x_scale, y_scale, include_x_axis`` - - -Indicate a hint for the scale computation: - -.. pygal-code:: - - chart = pygal.Line() - chart.add('line', [.0002, .0005, .00035]) - -.. pygal-code:: - - chart = pygal.Line(y_scale=.0001) - chart.add('line', [.0002, .0005, .00035]) +``include_x_axis`` +Scales are computed automaticaly between the min and the max values. You may want to always have the absissa in your graph: diff --git a/pages/documentation.rst b/pages/documentation.rst index c413a32..ae7004a 100644 --- a/pages/documentation.rst +++ b/pages/documentation.rst @@ -14,7 +14,7 @@ User documentation - `Other customizations `_ - customize all the things. -Developper documentation -======================== +Developer documentation +======================= - `Create a chart type `_ - extend pygal. diff --git a/pages/other_customizations.rst b/pages/other_customizations.rst index 7b8c20b..a4c955a 100644 --- a/pages/other_customizations.rst +++ b/pages/other_customizations.rst @@ -23,6 +23,9 @@ You can set the scale to be logarithmic: chart.x_labels = map(str, values) chart.add('log example', values) +.. caution:: +Negative values are ignored, interpolation might be broken if it goes below zero... + Custom css and js -----------------