diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index 555fe629..c4104edb 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -539,13 +539,13 @@ def all_series(self): def _x_format(self): """Return the value formatter for this graph""" return self.x_value_formatter or ( - humanize if self.human_readable else str) + humanize if self.human_readable else to_str) @property def _format(self): """Return the value formatter for this graph""" return self.value_formatter or ( - humanize if self.human_readable else str) + humanize if self.human_readable else to_str) def _compute(self): """Initial computations to draw the graph"""