We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0439003 commit afbb2c2Copy full SHA for afbb2c2
adafruit_display_shapes/sparkline.py
@@ -89,7 +89,11 @@ def __init__(
89
) # self is a group of lines
90
91
def clear_values(self):
92
- self._spark_list = []
+ """Removes all values from the _spark_list list and removes all lines in the group"""
93
+
94
+ for _ in range(len(self)): # remove all items from the current group
95
+ self.pop()
96
+ self._spark_list = [] # empty the list
97
98
def add_value(self, value):
99
"""Add a value to the sparkline.
0 commit comments