diff --git a/pygal/config.py b/pygal/config.py index 8521cda..127432f 100644 --- a/pygal/config.py +++ b/pygal/config.py @@ -112,6 +112,8 @@ class Config(object): show_dots = Key(True, bool, "Look", "Set to false to remove dots") + dots_size = Key(2.5, float, "Look", "Radius of the dots") + stroke = Key( True, bool, "Look", "Line dots (set it to false to get a scatter plot)") diff --git a/pygal/graph/line.py b/pygal/graph/line.py index 1c2f9b9..ec75a32 100644 --- a/pygal/graph/line.py +++ b/pygal/graph/line.py @@ -69,7 +69,7 @@ class Line(Graph): self.svg.node(serie_node['overlay'], class_="dots"), metadata) val = self._get_value(serie.points, i) - self.svg.node(dots, 'circle', cx=x, cy=y, r=2.5, + self.svg.node(dots, 'circle', cx=x, cy=y, r=self.dots_size, class_='dot reactive tooltip-trigger') self._tooltip_data(dots, val, x, y) self._static_value(