@@ -42,14 +42,14 @@ class Sparkline(displayio.Group):
42
42
# pylint: disable=too-many-arguments
43
43
""" A sparkline graph.
44
44
45
- : param width: Width of the sparkline graph in pixels
46
- : param height: Height of the sparkline graph in pixels
47
- : param max_items: Maximum number of values housed in the sparkline
48
- : param y_min: Lower range for the y-axis. Set to None for autorange.
49
- : param y_max: Upper range for the y-axis. Set to None for autorange.
50
- : param x: X-position on the screen, in pixels
51
- : param y: Y-position on the screen, in pixels
52
- : param color: Line color, the default value is 0xFFFFFF (WHITE)
45
+ :param width: Width of the sparkline graph in pixels
46
+ :param height: Height of the sparkline graph in pixels
47
+ :param max_items: Maximum number of values housed in the sparkline
48
+ :param y_min: Lower range for the y-axis. Set to None for autorange.
49
+ :param y_max: Upper range for the y-axis. Set to None for autorange.
50
+ :param x: X-position on the screen, in pixels
51
+ :param y: Y-position on the screen, in pixels
52
+ :param color: Line color, the default value is 0xFFFFFF (WHITE)
53
53
"""
54
54
55
55
def __init__ (
@@ -87,7 +87,7 @@ def __init__(
87
87
88
88
def add_value (self , value ):
89
89
""" Add a value to the sparkline.
90
- : param value: The value to be added to the sparkline
90
+ :param value: The value to be added to the sparkline
91
91
"""
92
92
93
93
if value is not None :
@@ -212,7 +212,6 @@ def update(self):
212
212
last_value = value # store value for the next iteration
213
213
214
214
def values (self ):
215
- """Returns the values displayed on the sparkline
216
- """
215
+ """Returns the values displayed on the sparkline"""
217
216
218
217
return self ._spark_list
0 commit comments