|
|
@ -23,7 +23,6 @@ from __future__ import division |
|
|
|
from pygal.adapters import none_to_zero, positive |
|
|
|
from pygal.adapters import none_to_zero, positive |
|
|
|
from pygal.graph.graph import Graph |
|
|
|
from pygal.graph.graph import Graph |
|
|
|
from pygal.util import alter, cut, decorate |
|
|
|
from pygal.util import alter, cut, decorate |
|
|
|
from pygal._compat import to_str |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Funnel(Graph): |
|
|
|
class Funnel(Graph): |
|
|
@ -95,7 +94,7 @@ class Funnel(Graph): |
|
|
|
def _compute_x_labels(self): |
|
|
|
def _compute_x_labels(self): |
|
|
|
self._x_labels = list( |
|
|
|
self._x_labels = list( |
|
|
|
zip(self.x_labels and |
|
|
|
zip(self.x_labels and |
|
|
|
map(to_str, self.x_labels) or [ |
|
|
|
map(self._x_format, self.x_labels) or [ |
|
|
|
serie.title['title'] |
|
|
|
serie.title['title'] |
|
|
|
if isinstance(serie.title, dict) |
|
|
|
if isinstance(serie.title, dict) |
|
|
|
else serie.title for serie in self.series], |
|
|
|
else serie.title for serie in self.series], |
|
|
|