@@ -51,15 +51,15 @@ class Sparkline(displayio.Group):
5151 # pylint: disable=too-many-arguments
5252 """A sparkline graph.
5353
54- :param width: Width of the sparkline graph in pixels
55- :param height: Height of the sparkline graph in pixels
56- :param max_items: Maximum number of values housed in the sparkline
57- :param dyn_xpitch: dynamically change xpitch (True)
58- :param y_min: Lower range for the y-axis. Set to None for autorange.
59- :param y_max: Upper range for the y-axis. Set to None for autorange.
60- :param x: X-position on the screen, in pixels
61- :param y: Y-position on the screen, in pixels
62- :param color: Line color, the default value is 0xFFFFFF (WHITE)
54+ :param int width: Width of the sparkline graph in pixels
55+ :param int height: Height of the sparkline graph in pixels
56+ :param int max_items: Maximum number of values housed in the sparkline
57+ :param bool dyn_xpitch: (Optional) Dynamically change xpitch (True)
58+ :param int|None y_min: Lower range for the y-axis. Set to None for autorange.
59+ :param int|None y_max: Upper range for the y-axis. Set to None for autorange.
60+ :param int x: X-position on the screen, in pixels
61+ :param int y: Y-position on the screen, in pixels
62+ :param int color: Line color, the default value is 0xFFFFFF (WHITE)
6363
6464 Note: If dyn_xpitch is True (default), the sparkline will allways span
6565 the complete width. Otherwise, the sparkline will grow when you
@@ -113,8 +113,8 @@ def clear_values(self) -> None:
113113 def add_value (self , value : float , update : bool = True ) -> None :
114114 """Add a value to the sparkline.
115115
116- :param value: The value to be added to the sparkline
117- :param update: trigger recreation of primitives
116+ :param float value: The value to be added to the sparkline
117+ :param bool update: trigger recreation of primitives
118118
119119 Note: when adding multiple values it is more efficient to call
120120 this method with parameter 'update=False' and then to manually
0 commit comments